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: Problem building tool-chain for amd64->powerpc64


Solved this one too:

> "
> 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).

During building the tool-chain the target path contains symbolic links from "lib64" to "lib". 
These seem to get removed after the build. When I created them again manually, compiling "Hello world" worked.
Also the resulting executable ran as expected on the target machine.


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 




--
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]