This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: linking gdbserver fails for a glibc2.1.3 (rh62) with crosstool-0.43


Tnx for your suggestion Dimitry!

I am trying with gdb62 as we speak.

Dan, if you are reading this, you might want to make the glibc-2.1.3
entry reference gdb-6.2 (assuming that I am successful)

-----Original Message-----
From: John Utz 
Sent: Wednesday, December 27, 2006 12:56 PM
To: 'crossgcc@sourceware.org'
Subject: linking gdbserver fails for a glibc2.1.3 (rh62) with
crosstool-0.43

I am trying to remotely debug an app that runs on a box that uses a rh62
filesystem with a 2.6.9 kernel.

My crosstool arguments are thus:

 eval `cat i386.dat gcc-2.95.3-glibc-2.1.3.dat` sh all.sh --notest -gdb


The link error is thus:

i386-unknown-linux-gnu-gcc -c -Wall -g -O2    -I.
-I/home/jutz/Compile/crosstool-0.43/build/i386-unknown-linux-gnu/gcc-2.9
5.3-glibc-2.1.3/gdb-6.5/gdb/gdbserver
-I/home/jutz/Compile/crosstool-0.43/build/i386-unknown-linux-gnu/gcc-2.9
5.3-glibc-2.1.3/gdb-6.5/gdb/gdbserver/../regformats
-I/home/jutz/Compile/crosstool-0.43/build/i386-unknown-linux-gnu/gcc-2.9
5.3-glibc-2.1.3/gdb-6.5/gdb/gdbserver/../../include -I../../bfd
-I/home/jutz/Compile/crosstool-0.43/build/i386-unknown-linux-gnu/gcc-2.9
5.3-glibc-2.1.3/gdb-6.5/gdb/gdbserver/../../bfd
/home/jutz/Compile/crosstool-0.43/build/i386-unknown-linux-gnu/gcc-2.95.
3-glibc-2.1.3/gdb-6.5/gdb/gdbserver/proc-service.c
rm -f gdbserver
i386-unknown-linux-gnu-gcc    -rdynamic -o gdbserver inferiors.o
regcache.o remote-utils.o server.o signals.o target.o utils.o version.o
mem-break.o reg-i386-linux.o linux-low.o linux-i386-low.o i387-fp.o
thread-db.o proc-service.o \
          -lthread_db 
thread-db.o(.text+0x3f9): In function `thread_db_look_up_symbols':
/home/jutz/Compile/crosstool-0.43/build/i386-unknown-linux-gnu/gcc-2.95.
3-glibc-2.1.3/gdb-6.5/gdb/gdbserver/thread-db.c:315: undefined reference
to `td_symbol_list'
thread-db.o(.text+0x3fe):/home/jutz/Compile/crosstool-0.43/build/i386-un
known-linux-gnu/gcc-2.95.3-glibc-2.1.3/gdb-6.5/gdb/gdbserver/thread-db.c
:318: undefined reference to `td_symbol_list'
collect2: ld returned 1 exit status
make: *** [gdbserver] Error 1
+ test '' = 1

I noted that Mr. Kegel posted a very similar link error to the gdb
mailing list in 2005, but I saw no responses to his post other than his
own.


Has anybody dealt with this successfully?

Tnx for any help y'all can provide.

johnu




--
For unsubscribe information see http://sourceware.org/lists.html#faq


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]