Problem on LFS 7.0 with 5.10 - GCC pass 2 - Cannot run C compiled programs
Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Problem on LFS 7.0 with 5.10 - GCC pass 2 - Cannot run C compiled programs
I'm on Backtrack Linux R51. I've checked all my software versions with version-check.sh and it all checks out. I am on section 5.10 of LFS 7.0. I am running kernel 2.6.29.4.
I've read a number of similar threads with the same problem I'm having, but on Glibc pass 2, which went with no issue for me. My problem when compiling gcc on pass 2 is this error.
Code:
checking for i686-pc-linux-gnu-gcc... /mnt/lfs/sources/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/gcc-build/./gcc/ -B/tools/i686-pc-linux-gnu/bin/ -B/tools/i686-pc-linux-gnu/lib/ -isystem /tools/i686-pc-linux-gnu/include -isystem /tools/i686-pc-linux-gnu/sys-include
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: in `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libstdc++-v3':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [configure-target-libstdc++-v3] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build'
make: *** [all] Error 2
[Requesting program interpreter: /tools/lib/ld-linux.so.2]
The output of config.log:
Code:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ ../gcc-4.6.1/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
## --------- ##
## Platform. ##
## --------- ##
hostname = bt
uname -m = i686
uname -r = 2.6.39.4
uname -s = Linux
uname -v = #1 SMP Thu Aug 18 13:38:02 NZST 2011
/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:2222: checking build system type
configure:2236: result: i686-pc-linux-gnu
configure:2283: checking host system type
configure:2296: result: i686-pc-linux-gnu
configure:2316: checking target system type
configure:2329: result: i686-pc-linux-gnu
configure:2383: checking for a BSD-compatible install
configure:2451: result: /usr/bin/install -c
configure:2462: checking whether ln works
configure:2484: result: yes
configure:2488: checking whether ln -s works
configure:2492: result: yes
configure:2499: checking for a sed that does not truncate output
configure:2563: result: /bin/sed
configure:2572: checking for gawk
configure:2588: found /usr/bin/gawk
configure:2599: result: gawk
configure:3919: checking for gcc
configure:3946: result: i686-lfs-linux-gnu-gcc -B/tools/lib/
configure:4175: checking for C compiler version
configure:4184: i686-lfs-linux-gnu-gcc -B/tools/lib/ --version >&5
i686-lfs-linux-gnu-gcc (GCC) 4.6.1
Copyright (C) 2011 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:4195: $? = 0
configure:4184: i686-lfs-linux-gnu-gcc -B/tools/lib/ -v >&5
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.1/specs
COLLECT_GCC=i686-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.6.1/lto-wrapper
Target: i686-lfs-linux-gnu
Configured with: ../gcc-4.6.1/configure --target=i686-lfs-linux-gnu --prefix=/tools --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --disable-libquadmath --disable-target-libiberty --disable-target-zlib --enable-languages=c --without-ppl --without-cloog --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.6.1 (GCC)
configure:4195: $? = 0
configure:4184: i686-lfs-linux-gnu-gcc -B/tools/lib/ -V >&5
i686-lfs-linux-gnu-gcc: error: unrecognized option '-V'
i686-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4195: $? = 1
configure:4184: i686-lfs-linux-gnu-gcc -B/tools/lib/ -qversion >&5
i686-lfs-linux-gnu-gcc: error: unrecognized option '-qversion'
i686-lfs-linux-gnu-gcc: fatal error: no input files
compilation terminated.
configure:4195: $? = 1
configure:4215: checking for C compiler default output file name
configure:4237: i686-lfs-linux-gnu-gcc -B/tools/lib/ conftest.c >&5
configure:4241: $? = 0
configure:4278: result: a.out
configure:4294: checking whether the C compiler works
configure:4303: ./a.out
configure:4307: $? = 0
configure:4322: result: yes
configure:4329: checking whether we are cross compiling
configure:4331: result: no
configure:4334: checking for suffix of executables
configure:4341: i686-lfs-linux-gnu-gcc -B/tools/lib/ -o conftest conftest.c >&5
configure:4345: $? = 0
configure:4367: result:
configure:4373: checking for suffix of object files
configure:4395: i686-lfs-linux-gnu-gcc -B/tools/lib/ -c conftest.c >&5
configure:4399: $? = 0
configure:4420: result: o
configure:4424: checking whether we are using the GNU C compiler
configure:4443: i686-lfs-linux-gnu-gcc -B/tools/lib/ -c conftest.c >&5
configure:4443: $? = 0
configure:4452: result: yes
configure:4461: checking whether i686-lfs-linux-gnu-gcc -B/tools/lib/ accepts -g
configure:4481: i686-lfs-linux-gnu-gcc -B/tools/lib/ -c -g conftest.c >&5
configure:4481: $? = 0
configure:4522: result: yes
configure:4539: checking for i686-lfs-linux-gnu-gcc -B/tools/lib/ option to accept ISO C89
configure:4603: i686-lfs-linux-gnu-gcc -B/tools/lib/ -c -g -O2 conftest.c >&5
configure:4603: $? = 0
configure:4616: result: none needed
configure:4694: checking for g++
configure:4710: found /usr/bin/g++
configure:4721: result: g++
configure:4748: checking for C++ compiler version
configure:4757: g++ --version >&5
g++ (Ubuntu 4.4.3-4ubuntu5) 4.4.3
Copyright (C) 2009 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:4768: $? = 0
configure:4757: g++ -v >&5
Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5' --with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --enable-multiarch --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls --enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic --enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu --target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5)
configure:4768: $? = 0
configure:4757: g++ -V >&5
g++: '-V' option must have argument
configure:4768: $? = 1
configure:4757: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:4768: $? = 1
configure:4772: checking whether we are using the GNU C++ compiler
configure:4791: g++ -c conftest.cpp >&5
configure:4791: $? = 0
configure:4800: result: yes
configure:4809: checking whether g++ accepts -g
configure:4829: g++ -c -g conftest.cpp >&5
configure:4829: $? = 0
configure:4870: result: yes
configure:4959: checking for gnatbind
configure:4989: result: no
configure:5051: checking for gnatmake
configure:5081: result: no
configure:5100: checking whether compiler driver understands Ada
configure:5123: result: no
configure:5132: checking how to compare bootstrapped objects
configure:5157: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5173: checking for objdir
configure:5188: result: .libs
configure:7245: checking for default BUILD_CONFIG
configure:7277: result:
configure:7767: checking for bison
configure:7783: found /usr/bin/bison
configure:7794: result: bison -y
configure:7815: checking for bison
configure:7831: found /usr/bin/bison
configure:7842: result: bison
configure:7862: checking for gm4
configure:7892: result: no
configure:7862: checking for gnum4
configure:7892: result: no
configure:7862: checking for m4
configure:7878: found /usr/bin/m4
configure:7889: result: m4
configure:7909: checking for flex
configure:7925: found /usr/bin/flex
configure:7936: result: flex
configure:7957: checking for flex
configure:7973: found /usr/bin/flex
configure:7984: result: flex
configure:8004: checking for makeinfo
configure:8020: found /usr/bin/makeinfo
configure:8031: result: makeinfo
configure:8065: checking for expect
configure:8095: result: no
configure:8114: checking for runtest
configure:8144: result: no
configure:8178: checking for ar
configure:8205: result: i686-lfs-linux-gnu-ar
configure:8400: checking for as
configure:8416: found /tools/bin/as
configure:8427: result: as
configure:8541: checking for dlltool
configure:8571: result: no
configure:8601: checking for ld
configure:8628: result: /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.1/../../../../i686-lfs-linux-gnu/bin/ld
configure:8823: checking for lipo
configure:8853: result: no
configure:8964: checking for nm
configure:8980: found /tools/bin/nm
configure:8991: result: nm
configure:9024: checking for ranlib
configure:9051: result: i686-lfs-linux-gnu-ranlib
configure:9241: checking for strip
configure:9257: found /tools/bin/strip
configure:9268: result: strip
configure:9377: checking for windres
configure:9407: result: no
configure:9518: checking for windmc
configure:9548: result: no
configure:9659: checking for objcopy
configure:9675: found /tools/bin/objcopy
configure:9686: result: objcopy
configure:9800: checking for objdump
configure:9816: found /tools/bin/objdump
configure:9827: result: objdump
configure:9980: checking for cc
configure:9996: found /usr/bin/cc
configure:10007: result: cc
configure:10141: checking for c++
configure:10157: found /usr/bin/c++
configure:10168: result: c++
configure:10302: checking for gcc
configure:10318: found /usr/bin/gcc
configure:10329: result: gcc
configure:10458: checking for gcj
configure:10488: result: no
configure:10619: checking for gfortran
configure:10649: result: no
configure:10780: checking for gccgo
configure:10810: result: no
configure:10871: checking for ar
configure:10889: found /tools/i686-pc-linux-gnu/bin/ar
configure:10901: result: /tools/i686-pc-linux-gnu/bin/ar
configure:11101: checking for as
configure:11119: found /tools/i686-pc-linux-gnu/bin/as
configure:11131: result: /tools/i686-pc-linux-gnu/bin/as
configure:11331: checking for dlltool
configure:11364: result: no
configure:11481: checking for dlltool
configure:11511: result: no
configure:11561: checking for ld
configure:11579: found /tools/i686-pc-linux-gnu/bin/ld
configure:11591: result: /tools/i686-pc-linux-gnu/bin/ld
configure:11791: checking for lipo
configure:11824: result: no
configure:11941: checking for lipo
configure:11971: result: no
configure:12021: checking for nm
configure:12039: found /tools/i686-pc-linux-gnu/bin/nm
configure:12051: result: /tools/i686-pc-linux-gnu/bin/nm
configure:12251: checking for objdump
configure:12269: found /tools/i686-pc-linux-gnu/bin/objdump
configure:12281: result: /tools/i686-pc-linux-gnu/bin/objdump
configure:12481: checking for ranlib
configure:12499: found /tools/i686-pc-linux-gnu/bin/ranlib
configure:12511: result: /tools/i686-pc-linux-gnu/bin/ranlib
configure:12711: checking for strip
configure:12729: found /tools/i686-pc-linux-gnu/bin/strip
configure:12741: result: /tools/i686-pc-linux-gnu/bin/strip
configure:12941: checking for windres
configure:12974: result: no
configure:13091: checking for windres
configure:13121: result: no
configure:13171: checking for windmc
configure:13204: result: no
configure:13321: checking for windmc
configure:13351: result: no
configure:13379: checking where to find the target ar
configure:13407: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:13421: checking where to find the target as
configure:13449: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:13463: checking where to find the target cc
configure:13486: result: just compiled
configure:13505: checking where to find the target c++
configure:13531: result: just compiled
configure:13550: checking where to find the target c++ for libstdc++
configure:13576: result: just compiled
configure:13595: checking where to find the target dlltool
configure:13628: result: host tool
configure:13637: checking where to find the target gcc
configure:13660: result: just compiled
configure:13679: checking where to find the target gcj
configure:13715: result: host tool
configure:13724: checking where to find the target gfortran
configure:13760: result: host tool
configure:13769: checking where to find the target gccgo
configure:13805: result: host tool
configure:13814: checking where to find the target ld
configure:13842: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:13856: checking where to find the target lipo
configure:13878: result: host tool
configure:13887: checking where to find the target nm
configure:13915: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:13929: checking where to find the target objdump
configure:13957: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:13971: checking where to find the target ranlib
configure:13999: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:14013: checking where to find the target strip
configure:14041: result: pre-installed in /tools/i686-pc-linux-gnu/bin
configure:14055: checking where to find the target windres
configure:14088: result: host tool
configure:14097: checking where to find the target windmc
configure:14130: result: host tool
configure:14167: checking whether to enable maintainer-specific portions of Makefiles
configure:14176: result: no
configure:14209: checking whether -fkeep-inline-functions is supported
configure:14228: i686-lfs-linux-gnu-gcc -B/tools/lib/ -c -g -O2 -fkeep-inline-functions conftest.c >&5
configure:14228: $? = 0
configure:14229: result: yes
configure:14426: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by config.status, which was
generated by GNU Autoconf 2.64. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on bt
config.status:980: creating Makefile
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=set
ac_cv_env_AR_value=i686-lfs-linux-gnu-ar
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value='i686-lfs-linux-gnu-gcc -B/tools/lib/'
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=set
ac_cv_env_RANLIB_value=i686-lfs-linux-gnu-ranlib
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_objext=o
ac_cv_path_AR_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/ar
ac_cv_path_AS_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/as
ac_cv_path_LD_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/ld
ac_cv_path_NM_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/nm
ac_cv_path_OBJDUMP_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/objdump
ac_cv_path_RANLIB_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/ranlib
ac_cv_path_SED=/bin/sed
ac_cv_path_STRIP_FOR_TARGET=/tools/i686-pc-linux-gnu/bin/strip
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=i686-lfs-linux-gnu-ar
ac_cv_prog_AS=as
ac_cv_prog_AWK=gawk
ac_cv_prog_BISON=bison
ac_cv_prog_CC_FOR_TARGET=cc
ac_cv_prog_CXX_FOR_TARGET=c++
ac_cv_prog_FLEX=flex
ac_cv_prog_GCC_FOR_TARGET=gcc
ac_cv_prog_LD=/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.1/../../../../i686-lfs-linux-gnu/bin/ld
ac_cv_prog_LEX=flex
ac_cv_prog_M4=m4
ac_cv_prog_MAKEINFO=makeinfo
ac_cv_prog_NM=nm
ac_cv_prog_OBJCOPY=objcopy
ac_cv_prog_OBJDUMP=objdump
ac_cv_prog_RANLIB=i686-lfs-linux-gnu-ranlib
ac_cv_prog_STRIP=strip
ac_cv_prog_YACC='bison -y'
ac_cv_prog_ac_ct_CC='i686-lfs-linux-gnu-gcc -B/tools/lib/'
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
ac_cv_target=i686-pc-linux-gnu
acx_cv_cc_gcc_supports_ada=no
acx_cv_prog_LN=ln
gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
gcc_cv_tool_dirs=/tools/libexec/gcc/i686-pc-linux-gnu/4.6.1:/tools/libexec/gcc/i686-pc-linux-gnu:/usr/lib/gcc/i686-pc-linux-gnu/4.6.1:/usr/lib/gcc/i686-pc-linux-gnu:/tools/i686-pc-linux-gnu/bin/i686-pc-linux-gnu/4.6.1:/tools/i686-pc-linux-gnu/bin:
gcc_cv_tool_prefix=/tools
lt_cv_objdir=.libs
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='i686-lfs-linux-gnu-ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/ar'
AS='as'
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/as'
AWK='gawk'
BISON='bison'
BUILD_CONFIG=''
CC='i686-lfs-linux-gnu-gcc -B/tools/lib/'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
CFLAGS='-g -O2'
CFLAGS_FOR_BUILD='-g -O2'
CFLAGS_FOR_TARGET='-g -O2'
COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXXFLAGS_FOR_BUILD='-g -O2'
CXXFLAGS_FOR_TARGET='-g -O2'
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/g++ -B$$r/$(HOST_SUBDIR)/gcc/ -nostdinc++ `if test -f $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags; then $(SHELL) $$r/$(TARGET_SUBDIR)/libstdc++-v3/scripts/testsuite_flags --build-includes; else echo -funconfigured-libstdc++-v3 ; fi` -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS='-DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DLT_OBJDIR=\".libs/\"'
DLLTOOL='dlltool'
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET='$(DLLTOOL)'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT='expect'
FLAGS_FOR_TARGET=' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
FLEX='flex'
GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET='$(GCJ)'
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET='$(GFORTRAN)'
GNATBIND='no'
GNATMAKE='no'
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET='$(GOC)'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD='/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.6.1/../../../../i686-lfs-linux-gnu/bin/ld'
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/ld'
LEX='flex'
LIBOBJS=''
LIBS=''
LIPO='lipo'
LIPO_FOR_TARGET='$(LIPO)'
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4='m4'
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo'
NM='nm'
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/nm'
OBJCOPY='objcopy'
OBJDUMP='objdump'
OBJDUMP_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/objdump'
OBJEXT='o'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB='i686-lfs-linux-gnu-ranlib'
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/ranlib'
RAW_CXX_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -shared-libgcc -B$$r/$(HOST_SUBDIR)/gcc -nostdinc++ -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src -L$$r/$(TARGET_SUBDIR)/libstdc++-v3/src/.libs'
RPATH_ENVVAR='LD_LIBRARY_PATH'
RUNTEST='runtest'
SED='/bin/sed'
SHELL='/bin/sh'
STRIP='strip'
STRIP_FOR_TARGET='/tools/i686-pc-linux-gnu/bin/strip'
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../gcc-4.6.1/configure --prefix=/tools --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --without-ppl --without-cloog --with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs'
WINDMC='windmc'
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET='$(WINDMC)'
WINDRES='windres'
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET='$(WINDRES)'
YACC='bison -y'
ac_ct_CC='i686-lfs-linux-gnu-gcc -B/tools/lib/'
ac_ct_CXX='g++'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=' --cache-file=../config.cache '\''--prefix=/tools'\'' '\''--with-local-prefix=/tools'\'' '\''--enable-clocale=gnu'\'' '\''--enable-shared'\'' '\''--enable-threads=posix'\'' '\''--enable-__cxa_atexit'\'' '\''--disable-libstdcxx-pch'\'' '\''--disable-multilib'\'' '\''--disable-bootstrap'\'' '\''--disable-libgomp'\'' '\''--without-ppl'\'' '\''--without-cloog'\'' '\''--with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src'\'' '\''--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
build_configdirs=' libiberty fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_noncanonical='i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_tooldir='${exec_prefix}/i686-pc-linux-gnu'
build_vendor='pc'
clooginc=''
clooglibs=''
compare_exclusions='gcc/cc*-checksum$(objext) | gcc/ada/*tools/*'
config_shell='/bin/sh'
configdirs=' intl libiberty zlib libcpp libdecnumber gmp mpfr mpc fixincludes gcc lto-plugin'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare='cmp --ignore-initial=16 $$f1 $$f2'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='${prefix}'
extra_host_libiberty_configure_flags='--enable-shared'
extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/.libs'
gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp -I/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src -I$$s/mpc/src '
gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/.libs -L/mnt/lfs/sources/gcc-build/mpfr/src/.libs -L$$r/$(HOST_SUBDIR)/mpc/src/.libs -lmpc -lmpfr -lgmp'
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=' --cache-file=./config.cache '\''--prefix=/tools'\'' '\''--with-local-prefix=/tools'\'' '\''--enable-clocale=gnu'\'' '\''--enable-shared'\'' '\''--enable-threads=posix'\'' '\''--enable-__cxa_atexit'\'' '\''--disable-libstdcxx-pch'\'' '\''--disable-multilib'\'' '\''--disable-bootstrap'\'' '\''--disable-libgomp'\'' '\''--without-ppl'\'' '\''--without-cloog'\'' '\''--with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src'\'' '\''--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
host_cpu='i686'
host_noncanonical='i686-pc-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags='-static-libstdc++ -static-libgcc'
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/tools'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags='-g -fkeep-inline-functions'
stage1_checking='--enable-checking=yes,types'
stage1_languages='c,lto'
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_configargs='--cache-file=./config.cache '\''--prefix=/tools'\'' '\''--with-local-prefix=/tools'\'' '\''--enable-clocale=gnu'\'' '\''--enable-shared'\'' '\''--enable-threads=posix'\'' '\''--enable-__cxa_atexit'\'' '\''--disable-libstdcxx-pch'\'' '\''--disable-multilib'\'' '\''--disable-bootstrap'\'' '\''--disable-libgomp'\'' '\''--without-ppl'\'' '\''--without-cloog'\'' '\''--with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.1/mpfr/src'\'' '\''--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs'\'' '\''--enable-languages=c,c++,lto'\'' --program-transform-name='\''s,y,y,'\'' --disable-option-checking'
target_configdirs=' libgcc libiberty libstdc++-v3 libmudflap libssp libquadmath'
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir='${exec_prefix}/i686-pc-linux-gnu'
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag='/dev/null'
host_makefile_frag='../gcc-4.6.1/config/mh-x86omitfp'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='../gcc-4.6.1/config/mt-gnu'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"
configure: exit 0
Glibc compiled without any problems, so I can't really figure out what I'm doing wrong here. If any more info is needed, tell me what to post and I'll post it. Thanks.
I've gone over the posted information a few times looking for clues, but too be honest I can't find any. The only thing that noticed is the kernel version, which is quite a bit higher than the on mentioned in the LFS requirements (2.6.25 vs 2.6.39). But this is a long shot at best and probably not the cause.
You probably want to avoid it, but have you tried starting from scratch again? A typo is easily made and you are at a very early stage in the build......
Note : the libgcc.a directory is now /mnt/lfs/tools/lib/gcc/i686-pc-linux-gnu/4.6.1/ instead of /mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.6.1/ and there is no specs file there to override the compiler's built in specs.
Ah, I went ahead and restarted the build, this time cut and pasting especially long commands and I got past that part with no issue. I'm now stuck on something else. If I can't figure it out, I'll probably make a new thread. Thanks for your help, though.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.