ct-ng 1.4.2: problem in creating x86_64 toolchain
Yann E. MORIN
yann.morin.1998@anciens.enib.fr
Sat Oct 31 10:53:00 GMT 2009
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
More information about the crossgcc
mailing list