public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
* Re: Windows Error when I want to start arm-elf-gdb
@ 2001-10-08  7:55 kyle Loudon
  2001-10-09  8:02 ` Fernando Nasser
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: kyle Loudon @ 2001-10-08  7:55 UTC (permalink / raw)
  To: 'insight@sources.redhat.com'

Keith,

I too am running into the same problem as described in the mailing list
about the Windows error when starting arm-elf-gdb. This is using Insight 5.0
with the insight-tcl.pat patch applied. As instructed in the preceding
emails, I went to check the version number under /src/gdb/gdbtk/ChangeLog,
but I do not have this file, nor the gdbtk directory off the gdb or
insight-5.0 directories. Here are the offending lines in the version of
main.tcl that I have, if this is of any help:

if {![find_iwidgets_library]} {
  tk_messageBox -title Error -message "Could not find the Iwidgets
libraries.
Got nameofexec: [info nameofexecutable]
Error(s) were: \n$errMsg" \
      -icon error -type ok
  exit
}

Thanks,
Kyle Loudon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-08  7:55 Windows Error when I want to start arm-elf-gdb kyle Loudon
@ 2001-10-09  8:02 ` Fernando Nasser
  2001-12-05  6:51   ` Fernando Nasser
  2001-10-09  8:15 ` Keith Seitz
  2001-12-04 16:01 ` kyle Loudon
  2 siblings, 1 reply; 12+ messages in thread
From: Fernando Nasser @ 2001-10-09  8:02 UTC (permalink / raw)
  To: kyle Loudon; +Cc: 'insight@sources.redhat.com'

kyle Loudon wrote:
> 
> Keith,
> 
> I too am running into the same problem as described in the mailing list
> about the Windows error when starting arm-elf-gdb. This is using Insight 5.0
> with the insight-tcl.pat patch applied. As instructed in the preceding
> emails, I went to check the version number under /src/gdb/gdbtk/ChangeLog,
> but I do not have this file, nor the gdbtk directory off the gdb or
> insight-5.0 directories. Here are the offending lines in the version of
> main.tcl that I have, if this is of any help:
> 

Folks,  

The Insight in GDB 5.0 has many, many bugs.   This code is from before
I got involved and fixed many bugs ages ago.

There are also bugs in the ARM target handling that were fixed at 
approx. the same time period.

Please switch to a recent snapshot.  Try GDB 5.1 for instance,
which is a stable version
.
People who had similar problems and did so have reported that
their problems had gone away.

Regards to all,
Fernando








> if {![find_iwidgets_library]} {
>   tk_messageBox -title Error -message "Could not find the Iwidgets
> libraries.
> Got nameofexec: [info nameofexecutable]
> Error(s) were: \n$errMsg" \
>       -icon error -type ok
>   exit
> }
> 
> Thanks,
> Kyle Loudon

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-08  7:55 Windows Error when I want to start arm-elf-gdb kyle Loudon
  2001-10-09  8:02 ` Fernando Nasser
@ 2001-10-09  8:15 ` Keith Seitz
  2001-12-05  8:48   ` Keith Seitz
  2001-12-04 16:01 ` kyle Loudon
  2 siblings, 1 reply; 12+ messages in thread
From: Keith Seitz @ 2001-10-09  8:15 UTC (permalink / raw)
  To: kyle Loudon; +Cc: 'insight@sources.redhat.com'

On Tue, 4 Dec 2001, kyle Loudon wrote:

> I too am running into the same problem as described in the mailing list
> about the Windows error when starting arm-elf-gdb. This is using Insight 5.0
> with the insight-tcl.pat patch applied.

What is "insight-tcl.pat"?

> if {![find_iwidgets_library]} {
>   tk_messageBox -title Error -message "Could not find the Iwidgets
> libraries.
> Got nameofexec: [info nameofexecutable]
> Error(s) were: \n$errMsg" \
>       -icon error -type ok
>   exit
> }

Make sure that errMsg is defined as a global in find_iwidgets_library in
util.tcl. That should at least fix your immediate problem with displaying
the error dialog.

After that, we'll tackle why your copy of Insight cannot find the iwidgets
library...

Keith


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-08  7:55 Windows Error when I want to start arm-elf-gdb kyle Loudon
  2001-10-09  8:02 ` Fernando Nasser
  2001-10-09  8:15 ` Keith Seitz
@ 2001-12-04 16:01 ` kyle Loudon
  2 siblings, 0 replies; 12+ messages in thread
From: kyle Loudon @ 2001-12-04 16:01 UTC (permalink / raw)
  To: 'insight@sources.redhat.com'

Keith,

I too am running into the same problem as described in the mailing list
about the Windows error when starting arm-elf-gdb. This is using Insight 5.0
with the insight-tcl.pat patch applied. As instructed in the preceding
emails, I went to check the version number under /src/gdb/gdbtk/ChangeLog,
but I do not have this file, nor the gdbtk directory off the gdb or
insight-5.0 directories. Here are the offending lines in the version of
main.tcl that I have, if this is of any help:

if {![find_iwidgets_library]} {
  tk_messageBox -title Error -message "Could not find the Iwidgets
libraries.
Got nameofexec: [info nameofexecutable]
Error(s) were: \n$errMsg" \
      -icon error -type ok
  exit
}

Thanks,
Kyle Loudon

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-09  8:02 ` Fernando Nasser
@ 2001-12-05  6:51   ` Fernando Nasser
  0 siblings, 0 replies; 12+ messages in thread
From: Fernando Nasser @ 2001-12-05  6:51 UTC (permalink / raw)
  To: kyle Loudon; +Cc: 'insight@sources.redhat.com'

kyle Loudon wrote:
> 
> Keith,
> 
> I too am running into the same problem as described in the mailing list
> about the Windows error when starting arm-elf-gdb. This is using Insight 5.0
> with the insight-tcl.pat patch applied. As instructed in the preceding
> emails, I went to check the version number under /src/gdb/gdbtk/ChangeLog,
> but I do not have this file, nor the gdbtk directory off the gdb or
> insight-5.0 directories. Here are the offending lines in the version of
> main.tcl that I have, if this is of any help:
> 

Folks,  

The Insight in GDB 5.0 has many, many bugs.   This code is from before
I got involved and fixed many bugs ages ago.

There are also bugs in the ARM target handling that were fixed at 
approx. the same time period.

Please switch to a recent snapshot.  Try GDB 5.1 for instance,
which is a stable version
.
People who had similar problems and did so have reported that
their problems had gone away.

Regards to all,
Fernando








> if {![find_iwidgets_library]} {
>   tk_messageBox -title Error -message "Could not find the Iwidgets
> libraries.
> Got nameofexec: [info nameofexecutable]
> Error(s) were: \n$errMsg" \
>       -icon error -type ok
>   exit
> }
> 
> Thanks,
> Kyle Loudon

-- 
Fernando Nasser
Red Hat - Toronto                       E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-09  8:15 ` Keith Seitz
@ 2001-12-05  8:48   ` Keith Seitz
  0 siblings, 0 replies; 12+ messages in thread
From: Keith Seitz @ 2001-12-05  8:48 UTC (permalink / raw)
  To: kyle Loudon; +Cc: 'insight@sources.redhat.com'

On Tue, 4 Dec 2001, kyle Loudon wrote:

> I too am running into the same problem as described in the mailing list
> about the Windows error when starting arm-elf-gdb. This is using Insight 5.0
> with the insight-tcl.pat patch applied.

What is "insight-tcl.pat"?

> if {![find_iwidgets_library]} {
>   tk_messageBox -title Error -message "Could not find the Iwidgets
> libraries.
> Got nameofexec: [info nameofexecutable]
> Error(s) were: \n$errMsg" \
>       -icon error -type ok
>   exit
> }

Make sure that errMsg is defined as a global in find_iwidgets_library in
util.tcl. That should at least fix your immediate problem with displaying
the error dialog.

After that, we'll tackle why your copy of Insight cannot find the iwidgets
library...

Keith


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-07 14:33   ` Keith Seitz
@ 2001-12-04 11:13     ` Keith Seitz
  0 siblings, 0 replies; 12+ messages in thread
From: Keith Seitz @ 2001-12-04 11:13 UTC (permalink / raw)
  To: Stephane Aubert
  Cc: Darren Addicott, binutils, ecos-cvs, Insight Maling List, irox

On Tue, 4 Dec 2001, Alan Lehotsky wrote:

> I had this very same problem and it was terribly hard to find (I finally ran gdb under a gdb with the -nw flag
> and discovered that it was due to having a bad gdbtk initialization file in my home directory.
> (can't remember if it's named gdbtk.ini or .gdbtk on windows)
>
> There were apparently "commands" in that file that just made tcl/tk miserable....

This should not happen. If it does, it's a bug. The preference file is
automatically regenerated when you run Insight. It is not for user
modification.

> >But when I want to use the Insight GDB, I have a big Windows Error (see attach : error arm-elf-gdb.gif).

The error message is that errMsg is undefined in main.tcl when running
tk_messageBox about not finding the Iwidgets library.

What version of Insight are you using? (What's the last ChangeLog entry in
src/gdb/gdbtk/ChangeLog?)

You're installation of Insight is complaining about two things...

1) There is an error in your main.tcl concerning some code which looks
something like:

    if {[catch {package require Iwidgets 3.0} msg]} {
       tk_messageBox -title Error -message $errMsg ;# blah blah blah
    }

You must be using an older version of Insight, since this bug is long
since gone. If you can post either the date of your snapshot or dig up
this bit from your main.tcl, that would help me pin your problem down.

2) Insight is failing to find the Iwidgets library
Does INSTALLDIR/share/iwidgets3* exist (what is the exact folder name)? Do
you have the function "find_iwidgets_library" in utils.tcl? What does it say?

Keith

PS. Oddly, I've only seen Alan's reply to your message. It has not yet
arrived from the mailing list in my inbox...


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-07 13:46 ` Alan Lehotsky
  2001-10-07 14:33   ` Keith Seitz
@ 2001-12-04  4:55   ` Alan Lehotsky
  1 sibling, 0 replies; 12+ messages in thread
From: Alan Lehotsky @ 2001-12-04  4:55 UTC (permalink / raw)
  To: Stephane Aubert; +Cc: Darren Addicott, binutils, ecos-cvs, insight, irox

I had this very same problem and it was terribly hard to find (I finally ran gdb under a gdb with the -nw flag
and discovered that it was due to having a bad gdbtk initialization file in my home directory.
(can't remember if it's named gdbtk.ini or .gdbtk on windows)

There were apparently "commands" in that file that just made tcl/tk miserable....


At 5:55 PM +0100 12/3/01, Stephane Aubert wrote:

> 
> 
>But when I want to use the Insight GDB, I have a big Windows Error (see attach : error arm-elf-gdb.gif).
> 
>-> NOK !!!!
> 
>I don't know what I must to do.
>I have already check the version of the tcl (version 8.0). This is the good version.
>So if somebody can help me!!! I will apreciate.
> 
-- 
------------------------------------------------------------------------

		    Quality Software Management
		http://home.earthlink.net/~qsmgmt
			apl@alum.mit.edu
			(978)287-0435 Voice
			(978)808-6836 Cell
			(978)287-0436 Fax

	Software Process Improvement and Management Consulting
	     Language Design and Compiler Implementation

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Windows Error when I want to start arm-elf-gdb
  2001-10-05 18:42 Stephane Aubert
  2001-10-07 13:46 ` Alan Lehotsky
@ 2001-12-03  8:56 ` Stephane Aubert
  1 sibling, 0 replies; 12+ messages in thread
From: Stephane Aubert @ 2001-12-03  8:56 UTC (permalink / raw)
  To: Darren Addicott, binutils, ecos-cvs, crossgcc, gcc,
	'GNUTeam',
	insight, irox

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2211 bytes --]

I'm working on 
W98 and I'm trying to install the ARM development tools for Ecos (with 
Cygwin).  Im following the instruction on the internet page "Building 
the ARM development tools for 
Wondows" (sources.redhat.com/ecos/tools/win-arm-elf.html).  So, I 
configure the GNU Binary Utilities (binutils-2.10.1.tar.bz2) with 
the following cmds:     mkdir -p 
/tmp/build/binutils     cd 
/tmp/build/binutils     
/src/binutils/binutils-2.10.1/configure --target=arm-elf 
\       --prefix=/tools 
\       --exec-prefix=/tools/H-i686-pc-cygwin 
\       -v 2>&1 | tee 
configure.out  -> OK And I Build and install the GNU 
Binary Utilities: make -w all install 2>&1 | tee 
make.out -> OK Then I configure GCC 
(gcc-core-2.95.2.tar.bz2 & gcc-g++-2.95.2.tar.bz2):   
PATH=/tools/H-i686-pc-cygwin/bin:$PATH ; export PATH     mkdir 
-p /tmp/build/gcc     cd /tmp/build/gcc     
/src/gcc/gcc-2.95.2/configure --target=arm-elf 
\       --prefix=/tools 
\       --exec-prefix=/tools/H-i686-pc-cygwin 
\       --with-gnu-as --with-gnu-ld --with-newlib 
\       -v 2>&1 | tee 
configure.out -> OK And I Build and install GCC: make -w 
all-gcc install-gcc \ LANGUAGES="c c++" 2>&1 | tee 
make.out -> OK
 
Then I configure the Insight 
GDB (insight-5.0.tar.bz2):     mkdir -p 
/tmp/build/gdb     cd /tmp/build/gdb     
/src/gcc/insight-5.0/configure --target=arm-elf 
\       --prefix=/tools 
\       --exec-prefix=/tools/H-i686-pc-cygwin 
\       -v 2>&1 | tee 
configure.out -> OK And I Build and install GDB: make -w 
all install CC='gcc -mwin32' 2>&1 | tee make.out
 
-> OK
 
 
But when I want to use the Insight GDB, I have a big Windows 
Error (see attach : error arm-elf-gdb.gif).
 
-> NOK !!!!
 
I don't know what I must to do.
I have already check the version of the tcl (version 8.0). This is the good 
version.
So if somebody can help me!!! I will apreciate.
 
Stephane. 
 
Attachment:
error arm-elf-gdb.gif
Description: GIF image

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-07 13:46 ` Alan Lehotsky
@ 2001-10-07 14:33   ` Keith Seitz
  2001-12-04 11:13     ` Keith Seitz
  2001-12-04  4:55   ` Alan Lehotsky
  1 sibling, 1 reply; 12+ messages in thread
From: Keith Seitz @ 2001-10-07 14:33 UTC (permalink / raw)
  To: Stephane Aubert
  Cc: Darren Addicott, binutils, ecos-cvs, Insight Maling List, irox

On Tue, 4 Dec 2001, Alan Lehotsky wrote:

> I had this very same problem and it was terribly hard to find (I finally ran gdb under a gdb with the -nw flag
> and discovered that it was due to having a bad gdbtk initialization file in my home directory.
> (can't remember if it's named gdbtk.ini or .gdbtk on windows)
>
> There were apparently "commands" in that file that just made tcl/tk miserable....

This should not happen. If it does, it's a bug. The preference file is
automatically regenerated when you run Insight. It is not for user
modification.

> >But when I want to use the Insight GDB, I have a big Windows Error (see attach : error arm-elf-gdb.gif).

The error message is that errMsg is undefined in main.tcl when running
tk_messageBox about not finding the Iwidgets library.

What version of Insight are you using? (What's the last ChangeLog entry in
src/gdb/gdbtk/ChangeLog?)

You're installation of Insight is complaining about two things...

1) There is an error in your main.tcl concerning some code which looks
something like:

    if {[catch {package require Iwidgets 3.0} msg]} {
       tk_messageBox -title Error -message $errMsg ;# blah blah blah
    }

You must be using an older version of Insight, since this bug is long
since gone. If you can post either the date of your snapshot or dig up
this bit from your main.tcl, that would help me pin your problem down.

2) Insight is failing to find the Iwidgets library
Does INSTALLDIR/share/iwidgets3* exist (what is the exact folder name)? Do
you have the function "find_iwidgets_library" in utils.tcl? What does it say?

Keith

PS. Oddly, I've only seen Alan's reply to your message. It has not yet
arrived from the mailing list in my inbox...


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: Windows Error when I want to start arm-elf-gdb
  2001-10-05 18:42 Stephane Aubert
@ 2001-10-07 13:46 ` Alan Lehotsky
  2001-10-07 14:33   ` Keith Seitz
  2001-12-04  4:55   ` Alan Lehotsky
  2001-12-03  8:56 ` Stephane Aubert
  1 sibling, 2 replies; 12+ messages in thread
From: Alan Lehotsky @ 2001-10-07 13:46 UTC (permalink / raw)
  To: Stephane Aubert; +Cc: Darren Addicott, binutils, ecos-cvs, insight, irox

I had this very same problem and it was terribly hard to find (I finally ran gdb under a gdb with the -nw flag
and discovered that it was due to having a bad gdbtk initialization file in my home directory.
(can't remember if it's named gdbtk.ini or .gdbtk on windows)

There were apparently "commands" in that file that just made tcl/tk miserable....


At 5:55 PM +0100 12/3/01, Stephane Aubert wrote:

> 
> 
>But when I want to use the Insight GDB, I have a big Windows Error (see attach : error arm-elf-gdb.gif).
> 
>-> NOK !!!!
> 
>I don't know what I must to do.
>I have already check the version of the tcl (version 8.0). This is the good version.
>So if somebody can help me!!! I will apreciate.
> 
-- 
------------------------------------------------------------------------

		    Quality Software Management
		http://home.earthlink.net/~qsmgmt
			apl@alum.mit.edu
			(978)287-0435 Voice
			(978)808-6836 Cell
			(978)287-0436 Fax

	Software Process Improvement and Management Consulting
	     Language Design and Compiler Implementation

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Windows Error when I want to start arm-elf-gdb
@ 2001-10-05 18:42 Stephane Aubert
  2001-10-07 13:46 ` Alan Lehotsky
  2001-12-03  8:56 ` Stephane Aubert
  0 siblings, 2 replies; 12+ messages in thread
From: Stephane Aubert @ 2001-10-05 18:42 UTC (permalink / raw)
  To: Darren Addicott, binutils, ecos-cvs, crossgcc, gcc,
	'GNUTeam',
	insight, irox


[-- Attachment #1.1: Type: text/plain, Size: 1915 bytes --]

I'm working on W98 and I'm trying to install the ARM development tools for
Ecos (with Cygwin).
 Im following the instruction on the internet page "Building the ARM
development tools for Wondows"
(sources.redhat.com/ecos/tools/win-arm-elf.html).
 So, I configure the GNU Binary Utilities (binutils-2.10.1.tar.bz2) with the
following cmds:

    mkdir -p /tmp/build/binutils
    cd /tmp/build/binutils
    /src/binutils/binutils-2.10.1/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      -v 2>&1 | tee configure.out


 -> OK

And I Build and install the GNU Binary Utilities:

make -w all install 2>&1 | tee make.out

-> OK


Then I configure GCC (gcc-core-2.95.2.tar.bz2 & gcc-g++-2.95.2.tar.bz2):

  PATH=/tools/H-i686-pc-cygwin/bin:$PATH ; export PATH
    mkdir -p /tmp/build/gcc
    cd /tmp/build/gcc
    /src/gcc/gcc-2.95.2/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      --with-gnu-as --with-gnu-ld --with-newlib \
      -v 2>&1 | tee configure.out

-> OK

And I Build and install GCC:

make -w all-gcc install-gcc \
LANGUAGES="c c++" 2>&1 | tee make.out

-> OK

Then I configure the Insight GDB (insight-5.0.tar.bz2):

    mkdir -p /tmp/build/gdb
    cd /tmp/build/gdb
    /src/gcc/insight-5.0/configure --target=arm-elf \
      --prefix=/tools \
      --exec-prefix=/tools/H-i686-pc-cygwin \
      -v 2>&1 | tee configure.out

-> OK

And I Build and install GDB:

make -w all install CC='gcc -mwin32' 2>&1 | tee make.out

-> OK


But when I want to use the Insight GDB, I have a big Windows Error (see attach : error arm-elf-gdb.gif).

-> NOK !!!!

I don't know what I must to do.
I have already check the version of the tcl (version 8.0). This is the good version.
So if somebody can help me!!! I will apreciate.

Stephane. 


[-- Attachment #1.2: Type: text/html, Size: 3546 bytes --]

[-- Attachment #2: error arm-elf-gdb.gif --]
[-- Type: image/gif, Size: 11074 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2001-12-05 16:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-08  7:55 Windows Error when I want to start arm-elf-gdb kyle Loudon
2001-10-09  8:02 ` Fernando Nasser
2001-12-05  6:51   ` Fernando Nasser
2001-10-09  8:15 ` Keith Seitz
2001-12-05  8:48   ` Keith Seitz
2001-12-04 16:01 ` kyle Loudon
  -- strict thread matches above, loose matches on Subject: below --
2001-10-05 18:42 Stephane Aubert
2001-10-07 13:46 ` Alan Lehotsky
2001-10-07 14:33   ` Keith Seitz
2001-12-04 11:13     ` Keith Seitz
2001-12-04  4:55   ` Alan Lehotsky
2001-12-03  8:56 ` Stephane Aubert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).