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] |
Hi, hope that is the right group for my problem: I compiled a cross toolchain with crosstools 0.38 (thx Dan !) - gcc 3.3.3 - glibc 3.2.3 - binutils 2.15 - host&build: i686-cygwin-linux - target : i386-linux-gnu Under WinXP with cygwin an it runs without problems. After the compilation I was a little confused about the output path structure (C:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\i3 86-unknown-linux-gnu\bin -> contained the tools from cygwin C:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\bin -> contained the new toolchain C:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\inc lude was nearly empty but some includefiles where needed so I copied them to C:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\i38 6-unknown-linux-gnu\inlcude and so on...) However, I successfully compile my hello world program with the toolchain and it runs on my target system. Here is the log of compilation: ----------------------------------------------------------------------- make -k clean all rm -rf ./main.o ./main.d ChainTest Building file: ../main.cpp Invoking: GCC C++ Compiler i386-unknown-linux-gnu-g++.exe -nostdinc -IC:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\i 386-unknown-linux-gnu\include -O0 -g3 -Wall -c -fmessage-length=0 -omain.o ../main.cpp Finished building: ../main.cpp Building target: ChainTest Invoking: GCC C++ Linker i386-unknown-linux-gnu-g++.exe -LC:\cygwin\opt\crosstool\gcc-3.3.3-glibc-2.3.2\i386-unknown-linux-gnu\i 386-unknown-linux-gnu\lib -oChainTest ./main.o Finished building target: ChainTest Build complete for project ChainTest ------------------------------------------------------------------------ ---- Now my problem: If I want to debug my application with gdbserver on the target and gdb 6.0 on my cygwin host I get several errors: ------------------------------------------------------------------------ ---- warning: Unable to find dynamic linker breakpoint function. GDB will be unable to debug shared library initializers and track explicitly loaded dynamic code. Error while mapping shared library sections: /lib/libstdc++.so.5: No such file or directory. Error while mapping shared library sections: /lib/libm.so.6: No such file or directory. Error while mapping shared library sections: /lib/libgcc_s.so.1: No such file or directory. Error while mapping shared library sections: /lib/libc.so.6: No such file or directory. Error while mapping shared library sections: /lib/ld-linux.so.2: No such file or directory. Error while reading shared library symbols: /lib/libstdc++.so.5: No such file or directory. Error while reading shared library symbols: /lib/libm.so.6: No such file or directory. Error while reading shared library symbols: /lib/libgcc_s.so.1: No such file or directory. Error while reading shared library symbols: /lib/libc.so.6: No such file or directory. Error while reading shared library symbols: Stopped due to shared library event /lib/ld-linux.so.2: No such file or directory. Reply contains invalid hex digit 78 Reply contains invalid hex digit 78 Reply contains invalid hex digit 78 Reply contains invalid hex digit 78 ------------------------------------------------------------------------ -- Seems that it can not find those libs although they are present (and I added the path to them to the linker options) I tried to copy them around, for example to cygwin/usr/lib, but this doesn't help. If I do : i386-unknown-linux-gnu-ld --verbose | grep SEARCH The answer is: SEARCH_DIR("=usr/local/lib"); SEARCH_DIOR("=/lib"); SEARCH_DIOR("=usr/lib") Although I can step-trough my program at termination of it, gdb always return the "Reply contains invalid hex digit 78" and aborts. Any help is REALLY appreciated, I tried 3 days until know solving this problem... Thanks, Thomas ------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |