> The gcc dev's caught you out ;-) I think that what you have > attached is the top-level config.log. That runs before 'make', but > then make runs configure in various directories. In this case, it > seems to have failed in the libgcc directory. > > The attached file shows error(s) which are normal. For example, > configure creates a tiny test program to see if libisl exists and > the long output shows an apparent error, but the screen output from > the initial configure would have been: > > checking for objdir... .libs > checking for version 0.10 of ISL... no > checking for version 0.11 of ISL... no > checking for version 0.12 of ISL... no > *** This configuration is not supported in the following subdirectories: > target-libquadmath gnattools target-libada target-libgfortran > target-libgo target-libffi target-libbacktrace target-zlib target-libjava > target-libobjc target-libgomp target-libcilkrts target-libatomic > target-libitm target-libstdc++-v3 target-libsanitizer target-libvtv > target-libssp target-boehm-gc > (Any other directories should still work fine.) > > So, what you now need to do is check the newest config.log (in > libgcc, I think), then search for 'cannot compute suffix of object > files:' e.g. in view or less, use the command > /cannot\ compute > > and then look at the lines above, probably a screen or two earlier. > You should see the 'checking for suffix' message, a program > fragment, and a more-detailed error, probably from gcc. That error > message should identify the problem. > > Ken you were correct that the config.log I need is in libgcc and that the error is there as well. Here is the snippet I believe that causes a problem. Unfortunately I can't figure out what it means. Just in case I'm also posting the contents of /mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc/config.log. Any help is appreciated.
Snippet the causes the problem (at least this is what I believe) configure:3362: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -V >&5 xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3362: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -qversion >&5 xgcc: error: unrecognized command line option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3389: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -o conftest -g -O2 conftest.c >&5 /mnt/lfs/sources/gcc-build/./gcc/as: line 106: exec: --: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] configure:3392: $? = 1 configure:3580: checking for suffix of object files configure:3602: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -c -g -O2 conftest.c >&5 /mnt/lfs/sources/gcc-build/./gcc/as: line 106: exec: --: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] configure:3606: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3620: error: in `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc': configure:3623: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. Full contents of /mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc/config.log This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by GNU C Runtime Library configure 1.0, which was generated by GNU Autoconf 2.64. Invocation command line was $ /mnt/lfs/sources/gcc-4.9.2/libgcc/configure --cache-file=./config.cache --with-cross-host=x86_64-unknown-linux-gnu --prefix=/tools --with-sysroot=/mnt/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-libitm --disable-libquadmath --disable-libsanitizer --disable-libssp --disable-libvtv --disable-libcilkrts --disable-libstdc++-v3 --enable-languages=c,c++,lto --program-transform-name=s&^&x86_64-lfs-linux-gnu-& --disable-option-checking --with-target-subdir=x86_64-lfs-linux-gnu --build=x86_64-unknown-linux-gnu --host=x86_64-lfs-linux-gnu --target=x86_64-lfs-linux-gnu --srcdir=../../../gcc-4.9.2/libgcc ## --------- ## ## Platform. ## ## --------- ## hostname = rail-VirtualBox uname -m = x86_64 uname -r = 3.13.0-48-generic uname -s = Linux uname -v = #80-Ubuntu SMP Thu Mar 12 11:16:15 UTC 2015 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/hostinfo = unknown /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /tools/bin PATH: /bin PATH: /usr/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:1980: creating cache ./config.cache configure:2163: checking build system type configure:2177: result: x86_64-unknown-linux-gnu configure:2197: checking host system type configure:2210: result: x86_64-lfs-linux-gnu configure:2307: checking for --enable-version-specific-runtime-libs configure:2320: result: no configure:2368: checking for a BSD-compatible install configure:2436: result: /usr/bin/install -c configure:2452: checking for gawk configure:2479: result: gawk configure:2579: checking for x86_64-lfs-linux-gnu-ar configure:2606: result: x86_64-lfs-linux-gnu-ar configure:2671: checking for x86_64-lfs-linux-gnu-lipo configure:2698: result: x86_64-lfs-linux-gnu-lipo configure:2763: checking for x86_64-lfs-linux-gnu-nm configure:2790: result: /mnt/lfs/sources/gcc-build/./gcc/nm configure:2855: checking for x86_64-lfs-linux-gnu-ranlib configure:2882: result: x86_64-lfs-linux-gnu-ranlib configure:2947: checking for x86_64-lfs-linux-gnu-strip configure:2974: result: x86_64-lfs-linux-gnu-strip configure:3036: checking whether ln -s works configure:3040: result: yes configure:3057: checking for x86_64-lfs-linux-gnu-gcc configure:3084: result: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 configure:3353: checking for C compiler version configure:3362: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 --version >&5 xgcc (GCC) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:3373: $? = 0 configure:3362: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -v >&5 Reading specs from /mnt/lfs/sources/gcc-build/./gcc/specs COLLECT_GCC=/mnt/lfs/sources/gcc-build/./gcc/xgcc COLLECT_LTO_WRAPPER=/mnt/lfs/sources/gcc-build/./gcc/lto-wrapper Target: x86_64-lfs-linux-gnu Configured with: ../gcc-4.9.2/configure --target=x86_64-lfs-linux-gnu --prefix=/tools --with-sysroot=/mnt/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-libitm --disable-libquadmath --disable-libsanitizer --disable-libssp --disable-libvtv --disable-libcilkrts --disable-libstdc++-v3 --enable-languages=c,c++ Thread model: single gcc version 4.9.2 (GCC) configure:3373: $? = 0 configure:3362: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -V >&5 xgcc: error: unrecognized command line option '-V' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3362: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -qversion >&5 xgcc: error: unrecognized command line option '-qversion' xgcc: fatal error: no input files compilation terminated. configure:3373: $? = 1 configure:3389: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -o conftest -g -O2 conftest.c >&5 /mnt/lfs/sources/gcc-build/./gcc/as: line 106: exec: --: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] configure:3392: $? = 1 configure:3580: checking for suffix of object files configure:3602: /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 -c -g -O2 conftest.c >&5 /mnt/lfs/sources/gcc-build/./gcc/as: line 106: exec: --: invalid option exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...] configure:3606: $? = 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:3620: error: in `/mnt/lfs/sources/gcc-build/x86_64-lfs-linux-gnu/libgcc': configure:3623: error: cannot compute suffix of object files: cannot compile See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=x86_64-unknown-linux-gnu ac_cv_env_CC_set=set ac_cv_env_CC_value='/mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 ' ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value='-g -O2' ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value= ac_cv_env_CPP_set= ac_cv_env_CPP_value= ac_cv_env_LDFLAGS_set=set ac_cv_env_LDFLAGS_value= ac_cv_env_LIBS_set= ac_cv_env_LIBS_value= ac_cv_env_build_alias_set=set ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu ac_cv_env_host_alias_set=set ac_cv_env_host_alias_value=x86_64-lfs-linux-gnu ac_cv_env_target_alias_set=set ac_cv_env_target_alias_value=x86_64-lfs-linux-gnu ac_cv_host=x86_64-lfs-linux-gnu ac_cv_prog_AR=x86_64-lfs-linux-gnu-ar ac_cv_prog_AWK=gawk ac_cv_prog_CC='/mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 ' ac_cv_prog_LIPO=x86_64-lfs-linux-gnu-lipo ac_cv_prog_NM=/mnt/lfs/sources/gcc-build/./gcc/nm ac_cv_prog_RANLIB=x86_64-lfs-linux-gnu-ranlib ac_cv_prog_STRIP=x86_64-lfs-linux-gnu-strip ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='x86_64-lfs-linux-gnu-ar' AWK='gawk' CC='/mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-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 ' CFLAGS='-g -O2' CPP='' CPPFLAGS='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' EXEEXT='' INSTALL_DATA='/usr/bin/install -c -m 644' INSTALL_PROGRAM='/usr/bin/install -c' INSTALL_SCRIPT='/usr/bin/install -c' LDFLAGS='' LIBOBJS='' LIBS='' LIPO='x86_64-lfs-linux-gnu-lipo' LN_S='ln -s' LTLIBOBJS='' MAINT='#' NM='/mnt/lfs/sources/gcc-build/./gcc/nm' OBJEXT='' PACKAGE_BUGREPORT='' PACKAGE_NAME='GNU C Runtime Library' PACKAGE_STRING='GNU C Runtime Library 1.0' PACKAGE_TARNAME='libgcc' PACKAGE_URL='http://www.gnu.org/software/libgcc/' PACKAGE_VERSION='1.0' PATH_SEPARATOR=':' PICFLAG='-fpic' RANLIB='x86_64-lfs-linux-gnu-ranlib' SHELL='/bin/sh' STRIP='x86_64-lfs-linux-gnu-strip' ac_ct_CC='' asm_hidden_op='' bindir='${exec_prefix}/bin' build='x86_64-unknown-linux-gnu' build_alias='x86_64-unknown-linux-gnu' build_cpu='x86_64' build_libsubdir='build-x86_64-unknown-linux-gnu' build_os='linux-gnu' build_subdir='build-x86_64-unknown-linux-gnu' build_vendor='unknown' cpu_type='' datadir='${datarootdir}' datarootdir='${prefix}/share' decimal_float='' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' double_type_size='' dvidir='${docdir}' enable_decimal_float='no' enable_shared='no' enable_vtable_verify='no' exec_prefix='NONE' extra_parts='' fixed_point='' host='x86_64-lfs-linux-gnu' host_alias='x86_64-lfs-linux-gnu' host_cpu='x86_64' host_noncanonical='x86_64-lfs-linux-gnu' host_os='linux-gnu' host_subdir='.' host_vendor='lfs' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' libgcc_topdir='../../../gcc-4.9.2/libgcc/..' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' long_double_type_size='' mandir='${datarootdir}/man' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/tools' program_transform_name='s&^&x86_64-lfs-linux-gnu-&' psdir='${docdir}' sbindir='${exec_prefix}/sbin' set_have_cc_tls='' set_use_emutls='' sfp_machine_header='' sharedstatedir='${prefix}/com' slibdir='$(exec_prefix)/$(host_noncanonical)/lib' sysconfdir='${prefix}/etc' target_alias='x86_64-lfs-linux-gnu' target_noncanonical='x86_64-lfs-linux-gnu' target_subdir='x86_64-lfs-linux-gnu' thread_header='' tm_defines='' tm_file='' tmake_file='' toolexecdir='$(exec_prefix)/$(target_noncanonical)' toolexeclibdir='$(toolexecdir)/lib/../lib64' vis_hide='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "GNU C Runtime Library" #define PACKAGE_TARNAME "libgcc" #define PACKAGE_VERSION "1.0" #define PACKAGE_STRING "GNU C Runtime Library 1.0" #define PACKAGE_BUGREPORT "" #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" configure: exit 1
-- http://lists.linuxfromscratch.org/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page Do not top post on this list. A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? http://en.wikipedia.org/wiki/Posting_style
