[lfs-support] Error while compilating GCC (6.1.0) Pass 1

spiky martynvidler at aol.com
Sun May 22 03:27:03 PDT 2016



On 22/05/16 10:28, Patrick Roncagliolo wrote:
> Hello,
> I'm facing some problems while trying to compile GCC (version 6.1.0) 
> in LFS pass 1 (toolchain). Here are the information that I've collected:
>
> >>>../configure --target=$LFS_TGT --prefix=/tools 
> --with-glibc-version=2.11 --with-sysroot=$LFS --with-newlib 
> --without-headers --with-local-prefix=/tools 
> --with-native-system-header-dir=/tools/include --disable-nls 
> --disable-shared --disable-multilib --disable-decimal-float 
> --disable-threads --disable-libatomic --disable-libgomp 
> --disable-libquadmath --disable-libssp --disable-libvtv 
> --disable-libstdcxx --enable-languages=c,c++ | grep no
>
> checking for a sed that does not truncate output... /bin/sed
> checking whether we are cross compiling... no
> checking for gcc option to accept ISO C89... none needed
> checking for gnatbind... no
> checking for gnatmake... no
> checking whether compiler driver understands Ada... no
> checking how to compare bootstrapped objects... cmp 
> --ignore-initial=16 $$f1 $$f2
> *** This configuration is not supported in the following subdirectories:
>      target-libquadmath target-libstdc++-v3 gnattools gotools 
> target-libada target-libgfortran target-libbacktrace target-libgo 
> target-libffi target-zlib target-libjava target-libobjc target-libgomp 
> target-liboffloadmic target-libatomic target-libvtv target-libssp 
> target-boehm-gc target-libcilkrts target-libitm target-libsanitizer
>     (Any other directories should still work fine.)
> checking for --enable-vtable-verify... no
> *** removing build-x86_64-pc-linux-gnu/libiberty/Makefile to force 
> reconfigure
> *** removing build-x86_64-pc-linux-gnu/libcpp/Makefile to force 
> reconfigure
> *** removing build-x86_64-pc-linux-gnu/fixincludes/Makefile to force 
> reconfigure
> *** removing intl/Makefile to force reconfigure
> *** removing libiberty/Makefile to force reconfigure
> *** removing zlib/Makefile to force reconfigure
> *** removing libbacktrace/Makefile to force reconfigure
> *** removing libcpp/Makefile to force reconfigure
> *** removing libdecnumber/Makefile to force reconfigure
> *** removing gmp/Makefile to force reconfigure
> *** removing mpfr/Makefile to force reconfigure
> *** removing mpc/Makefile to force reconfigure
> *** removing fixincludes/Makefile to force reconfigure
> *** removing gcc/Makefile to force reconfigure
> *** removing libcc1/Makefile to force reconfigure
> *** removing lto-plugin/Makefile to force reconfigure
> *** removing x86_64-lfs-linux-gnu/libgcc/Makefile to force reconfigure
> checking for gm4... no
> checking for gnum4... no
> checking for runtest... no
> checking for dlltool... no
> checking for lipo... no
> checking for windres... no
> checking for windmc... no
> checking for x86_64-lfs-linux-gnu-cc... no
> checking for x86_64-lfs-linux-gnu-gcc... no
> checking for x86_64-lfs-linux-gnu-c++... no
> checking for x86_64-lfs-linux-gnu-g++... no
> checking for x86_64-lfs-linux-gnu-cxx... no
> checking for x86_64-lfs-linux-gnu-gxx... no
> checking for x86_64-lfs-linux-gnu-gcc... no
> checking for x86_64-lfs-linux-gnu-gcj... no
> checking for x86_64-lfs-linux-gnu-gfortran... no
> checking for x86_64-lfs-linux-gnu-gccgo... no
> checking for dlltool... no
> checking for x86_64-lfs-linux-gnu-dlltool... no
> checking for lipo... no
> checking for x86_64-lfs-linux-gnu-lipo... no
> checking for windres... no
> checking for x86_64-lfs-linux-gnu-windres... no
> checking for windmc... no
> checking for x86_64-lfs-linux-gnu-windmc... no
> checking whether to enable maintainer-specific portions of Makefiles... no
>
>
> >>> make -j4
>
> checking whether to enable maintainer-specific portions of Makefiles... no
> checking for x86_64-lfs-linux-gnu-gcc... 
> /home/patrick/LFSROOT/src/gcc-6.1.0/build/./gcc/xgcc 
> -B/home/patrick/LFSROOT/src/gcc-6.1.0/build/./gcc/ 
> -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ 
> -isystem /tools/x86_64-lfs-linux-gnu/include -isystem 
> /tools/x86_64-lfs-linux-gnu/sys-include
> checking for C compiler default output file name...
> configure: error: in 
> `/home/patrick/LFSROOT/src/gcc-6.1.0/build/x86_64-lfs-linux-gnu/libmpx':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> Makefile:11381: recipe for target 'configure-target-libmpx' failed
> make[1]: *** [configure-target-libmpx] Error 1
> make[1]: Leaving directory '/home/patrick/LFSROOT/src/gcc-6.1.0/build'
> Makefile:864: recipe for target 'all' failed
> make: *** [all] Error 2
>
>
> >>> for i in $(find . | grep config.log); do cat $i; done | grep cannot
>
> configure:24912: WARNING: cannot check for properly working vsnprintf 
> when cross compiling, will assume it's ok
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file 
> or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file 
> or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crtbegin.o: No such 
> file or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find -lgcc
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find -lc
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find -lgcc
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crtend.o: No such file 
> or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file 
> or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file 
> or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file 
> or directory
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find -lc
> /tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file 
> or directory
> configure:3324: error: C compiler cannot create executables
> /usr/bin/ld: cannot find -lld
> /usr/bin/ld: cannot find -lmld
> /usr/bin/ld: cannot find -lmld
> /usr/bin/ld: cannot find -lmld
> /usr/bin/ld: cannot find -lexc
> /usr/bin/ld: cannot find -lkstat
>
> I figured to solve those ld errors but I wasn't able to find them in 
> Ubuntu repos (there were other ld errors but I already solved them).
> Could you help me?
>
> Patrick
>
>
>
>
Post the output from the version-script, from host system requirments
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-support/attachments/20160522/75cc30fe/attachment.html>


More information about the lfs-support mailing list