<br><br><br><br>Using the current development version...<br><br>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:<br><br><a href="http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818">http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41818</a><br>
<br>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..).<br><br>
Can this patch get added to the book? <br><br><br><br>FYI: the error in the gcc-final log is:<br>===========================================================<br>checking for C compiler default output file name... configure: error: in `/mnt/clfsdev/sources/gcc-build/sparc-unknown-linux-gnu/libgomp':<br>
configure: error: C compiler cannot create executables<br>See `config.log' for more details.<br>make[2]: *** [configure-target-libgomp] Error 1<br>make[2]: Leaving directory `/mnt/clfsdev/sources/gcc-build'<br>make[1]: *** [all] Error 2<br>
make[1]: Leaving directory `/mnt/clfsdev/sources/gcc-build'<br><br><br>But the libgomp gives a better failure description:<br> ============================= error excerpt from libgomp/config.log: <br><br>/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<br>
/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<br>configure:2575: $? = 1<br>configure: failed program was:<br>
| /* confdefs.h. */<br>|<br><br>