[Clfs-dev] Building cross tools for PPC (big endian) from x86 fails. (GCC PR41818)

code monkey lfscodemonkey at gmail.com
Fri Feb 12 19:28:50 PST 2010


Using the current development version...

The cross tools gcc-final step fails when building for PPC (or SPARC) from
an X86.       This appears to be due to gcc bug PR41818:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818

There is a patch attached to that PR.   I applied the patch and the build
then succeeded and the resulting system was functional.   (I also updated to
GCC 4.4.3 at the same time although probably not required..).

Can this patch get added to the book?



FYI: the error in the gcc-final log is:
===========================================================
checking for C compiler default output file name... configure: error: in
`/mnt/clfsdev/sources/gcc-build/sparc-unknown-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[2]: *** [configure-target-libgomp] Error 1
make[2]: Leaving directory `/mnt/clfsdev/sources/gcc-build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/mnt/clfsdev/sources/gcc-build'


But the libgomp gives a better failure description:
 ============================= error excerpt from libgomp/config.log:

/gcc-build/./gcc/ -B/cross-tools/sparc-unknown-linux-gnu/bin/
-B/cross-tools/sparc-unknown-linux-gnu/lib/ -isystem
/cross-tools/sparc-unknown-linux-gnu/include -isystem
/cross-tools/sparc-unknown-linux-gnu/sys-include -g -O2     conftest.c  >&5
/mnt/clfsdev/sources/gcc-build/./gcc/cc1: error while loading shared
libraries: /mnt/clfsdev/sources/gcc-build/./gcc/libgcc_s.so.1: ELF file data
encoding not little-endian
configure:2575: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-dev-clfs.org/attachments/20100212/a7a478bd/attachment.html>


More information about the Clfs-dev mailing list