Problem building tool-chain for amd64->powerpc64

Christoph Baumann c.baumann@ppc-ag.de
Mon Feb 21 17:30:00 GMT 2011


Hi,

> It's hard to tell what the problem is without the build log. It
> happens that the build log is too big for this list, so if you could
> post the build log to pastebin or host it on a website somewhere. Then
> we can better diagnose the issue.
> 
> The config would also prove helpful.

the config is attached. Meanwhile I solved the original problem.
I switched from the default glibc version to 2.9. Now the toolchain is build and 
installed without error (for test purposes I installed to /tmp). But when compiling 
"Hello world" I get this linker error:
"
baumann@baumann-laptop:~/Projekte/Power7_GCC$ powerpc64-ibm-linux-gnu-gcc -o hello hello.c
/tmp/usr/local/x-tools/powerpc64-ibm-linux-gnu/lib/gcc/powerpc64-ibm-linux-gnu/4.4.5/../../../../powerpc64-ibm-linux-gnu/bin/ld: skipping incompatible /lib64/libc.so.6 when searching for /lib64/libc.so.6
/tmp/usr/local/x-tools/powerpc64-ibm-linux-gnu/lib/gcc/powerpc64-ibm-linux-gnu/4.4.5/../../../../powerpc64-ibm-linux-gnu/bin/ld: cannot find /lib64/libc.so.6
collect2: ld returned 1 exit status
"

It seems that some linker scripts expect the target libs (PowerPC64) in /lib64 which contain the libs of the host system (AMD64).


Regards,
Christoph


-- 
Christoph Baumann 
Software Development 



Power Plus Communications AG | Am Exerzierplatz 2 | 68167 Mannheim | Germany 
Tel.: +49 621 40165-232 | Fax: +49 621 40165-111 
E-Mai l: c.baumann@ppc-ag.de | http://www.ppc-ag.de 

Handelsregister-Nr.: HRB 8853 | Sitz und Registergericht: Mannheim 
Vorstand: Ingo Schönberg (Vorsitzender), Eugen Mayer | Vorsitzender des Aufsichtsrates: Univ.-Prof. Dr. Torsten Gerpott 



-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config
Type: application/octet-stream
Size: 9749 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/crossgcc/attachments/20110221/a1d650b3/attachment.obj>
-------------- next part --------------
--
For unsubscribe information see http://sourceware.org/lists.html#faq


More information about the crossgcc mailing list