I am trying to build a CLFS system for a Marvell/ARM system and have made several attempts over the past weeks with no success. I tried CLFS-arm-embedded and failed, then tried to modify CLFS-powerPC and failed and now I am trying CLFS-arm-sysroot with no success.<br>
<br>Before I describe the latest problem, let me first ask if I am following the best route. I am following:<br><h4 style="font-weight: normal;">Cross-Compiled Linux From Scratch - Sysroot - Version 
SVN-0.0.1-20090726-ARM</h4>Is there something else I should be using? If so, I'll start from there and get back when/if I have a problem.<br><br>The specific problem I am having with the above is building gcc final (5.12). It fails as follows:<br>
..............<br>checking for arm-unknown-linux-gnu-strip... /mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/strip<br>checking for arm-unknown-linux-gnu-gcc... /mnt/clfs/work/gcc-build/./gcc/xgcc -B/mnt/clfs/work/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem /mnt/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem /mnt/clfs/cross-tools/arm-unknown-linux-gnu/sys-include<br>
checking for C compiler default output file name... configure: error: in `/mnt/clfs/work/gcc-build/arm-unknown-linux-gnu/libgomp':<br>configure: error: C compiler cannot create executables<br>See `config.log' for more details.<br>
make[1]: *** [configure-target-libgomp] Error 1<br>make[1]: Leaving directory `/mnt/clfs/work/gcc-build'<br>make: *** [all] Error 2<br>...............<br><br>Looking at config.log from libgomp I find:<br><br>...............<br>
configure:2543: /mnt/clfs/work/gcc-build/./gcc/xgcc -B/mnt/clfs/work/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem /mnt/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem /mnt/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -V </dev/null >&5<br>
xgcc: '-V' must come at the start of the command line<br>configure:2546: $? = 1<br>configure:2569: checking for C compiler default output file name<br>configure:2572: /mnt/clfs/work/gcc-build/./gcc/xgcc -B/mnt/clfs/work/gcc-build/./gcc/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/bin/ -B/mnt/clfs/cross-tools/arm-unknown-linux-gnu/lib/ -isystem /mnt/clfs/cross-tools/arm-unknown-linux-gnu/include -isystem /mnt/clfs/cross-tools/arm-unknown-linux-gnu/sys-include -g -O2     conftest.c  >&5<br>
/mnt/clfs/work/gcc-build/./gcc/cc1: error while loading shared libraries: /mnt/clfs/work/gcc-build/./gcc/libgcc_s.so.1: ELF file OS ABI invalid<br>configure:2575: $? = 1<br>configure: failed program was:<br>| /* confdefs.h.  */<br>
......................<br><br>This is exactly the same symptom posted in at least two other threads, but I can't find a <font size="2">solution. One looked like it had a solution by giving this link:<br></font><br><a href="http://archives.free.net.ph/message/20091005.172315.9c92afe5.ca.html">http://archives.free.net.ph/message/20091005.172315.9c92afe5.ca.html</a><br>
<br>but that server appears to be down.<br><br>I am not a complete Linux noob (although I am new to CLFS) having successfully built an LFS system for an embedded x86 about a year ago.  Still I am no expert on the tool building process.<br>
<br>Any help/advice will be appreciated.<br>