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] |
Zvi, all, On Friday 30 October 2009 05:20:10 Zvi Vered wrote: > I used ct-ng-1.4.2 to build a toolchain for x86-64. [--SNIP--] > The toolchain was build OK. When I ran "x86_64-unknown-linux-gnu --v" I got: > Using built-in specs. > Target: x86_64-unknown-linux-gnu > Configured with: > /home/zvivered/GNU/ct-ng-1.4.2/working/src/gcc-4.3.2/configure > --build=i386-build_redhat-linux-gnu --host=i386-build_redhat-linux-gnu > --target=x86_64-unknown-linux-gnu So, your host is an x86, not an x86_64, right? > But when I tried: ldd ld-2.9.so I suppose you're talking about the ld-2.9.so in the sysroot of the toolchain, right? > I got: not a dynamic executable That's what I would expect: ldd tries to _run_ the executable you pass as argument. Because your host is x86, and the ld-2.9.so was built for x86_64, it won't run on the host! Run "file ld-2.9.so" : what does it tell you? You should use "x86_64-unknown-linux-gnu-readelf -d" and look at the 'NEEDED' entries. > I also tried ldd myapp.out which is a very simple executable I created > and got the same response. Ditto. > Then I looked at build.log and saw some errors starting from line 25150 : > [ALL ] objdump: init-first.o: File format not recognized > What is the reason for those errors ? glibc tries to use the host objdump (x86) on a target .o (x86_64). It fails, which is understandable... glibc is wrong, here :-( > By the way, ct-ng is a great tool !!!. > I built a toolchain for i686 and it works great. Thanks! Regards, Yann E. MORIN. -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | `------------------------------^-------^------------------^--------------------' -- 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] |