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. */ |
_______________________________________________ Clfs-dev mailing list [email protected] http://lists.cross-lfs.org/listinfo.cgi/clfs-dev-cross-lfs.org
