UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 25515

10.1 EDK - Unable to launch GDB; the following error occurs: "Tk_Init failed: Can't find a usable tk.tcl in the following directories:"

Description

When I try to launch GDB from within an XPS project (i.e., Debug -> Launch Software Debugger), it fails to launch the GNU debugger.

This problem occurs for PowerPC projects when GDB is launched from XPS, and XPS is launched from ISE. The following error message occurs:

"Tk_Init failed: Can't find a usable tk.tcl in the following directories:"

Solution

This issue occurs because ISE sets the environment variable: TCL_LIBRARY. You can resolve this issue by opening XPS standalone and launching GDB. Also check that the TCL_LIBRARY or TK_LIBRARY environment variables are not set from another third-party tool.

ISE no longer sets the TCL_LIBRARY environment variable in the latest 10.1 Service Pack available at:

http://www.xilinx.com/support/download/index.htm

The first service pack containing the fix is 10.1 Service Pack 2.

AR# 25515
Date Created 09/04/2007
Last Updated 12/15/2012
Status Active
Type General Article