LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Ch 5.9 Binutils Pass 2 Error: Cannot run C compiled programs (https://www.linuxquestions.org/questions/linux-from-scratch-13/ch-5-9-binutils-pass-2-error-cannot-run-c-compiled-programs-807747/)

strungmind 05-14-2010 12:49 AM

Ch 5.9 Binutils Pass 2 Error: Cannot run C compiled programs
 
Hello everyone,

I am currently trying to get through the Binutils Pass 2 of LFS book version 6.6. I am getting an error stating:
"configure: error: cannot run C compiled programs"

I have tried searching Google for answers, and while I have found similar problems, nothing has seemed to be directly correlating to my problem.

I am attempting to do this on Virtual Box v. 3.1.6, running LFS Live v.6.2-5. The exact output when trying to run:

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../binutils-2.19.1/configure --prefix=/tools \
--disable-nls --with-lib-path=/tools/lib

in the binutils-build directory, I get:

checking whether the C compiler works.. configure: error: in `/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host`.

I have not posted any information from config.log, but if I am told to do so, I will.

Thanks in advance for any help or suggestions posted in reply,
Strungmind

crts 05-14-2010 07:48 AM

Hi,

it seems like your cross-compiler did not compile properly or the toolchain adjustment might have gone wrong. The information about the error you provided is a bit sparse. Can you post the last ~20 lines before the error occurred? Also post the output of
Code:

echo $LFS_TGT

strungmind 05-15-2010 12:45 AM

Quote:

Can you post the last ~20 lines before the error occurred?
Code:

CC="$LFS_TGT-gcc -B/$LFS/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../binutils-2.19.1/configure --prefix=$LFS/tools \
--disable-nls --with-lib-path=$LFS/tools/lib

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for gcc... i686-lfs-linux-gnu-gcc -B/tools/lib/
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.

Code:

echo $LFS_TGT
i686-lfs-linux-gnu


strungmind 05-15-2010 12:53 AM

Sorry for putting this in another reply, had to attend to a few issues. The first lines of the config.log look like this...


Code:

hostname = lfslivecd
uname -m = i686
uname -r = 2.6.16.38
uname -s = Linux
uname -v = #2 SMP Mon Jan 29 14:40:26 GMT 2007

/usr/bin/uname -p = unknown
/bin/uname -X    = unknown

/bin/arch              = i686
/usr/bin/arch -k      = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine          = unknown
/usr/bin/oslevel      = unknown
/bin/universe          = unknown

PATH: /mnt/lfs/tools/bin
PATH: /bin
PATH: /usr/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2173: checking build system type
configure:2187: result: i686-pc-linux-gnu
configure:2234: checking host system type
configure:2247: result: i686-pc-linux-gnu
configure:2267: checking target system type
configure:2280: result: i686-pc-linux-gnu

And the interesting lines that seem to reference my problem are here:

Code:

configure:4040: $? = 0
configure:4029: i686-lfs-linux-gnu-gcc -B/tools/lib/ -v >&5
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/specs
Target: i686-lfs-linux-gnu
Configured with: ../gcc-4.4.3/configure --target=i686-lfs-linux-gnu --prefix=/mnt/lfs/tools/ --disable-nls --disable-shared --disable-multilib --disable-decimal-float --disable-threads --disable-libmudflap --disable-libssp --disable-libgomp --enable-languages=c
Thread model: single
gcc version 4.4.3 (GCC)
configure:4040: $? = 0
configure:4029: i686-lfs-linux-gnu-gcc -B/tools/lib/ -V >&5
i686-lfs-linux-gnu-gcc: '-V' must come at the start of the command line
configure:4040: $? = 1
configure:4029: i686-lfs-linux-gnu-gcc -B/tools/lib/ -qversion >&5
i686-lfs-linux-gnu-gcc: unrecognized option '-qversion'
i686-lfs-linux-gnu-gcc: no input files
configure:4040: $? = 1
configure:4060: checking for C compiler default output file name
configure:4082: i686-lfs-linux-gnu-gcc -B/tools/lib/    conftest.c  >&5
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linu
x-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:4086: $? = 1
configure:4123: result:
configure: failed program was:

Thank you for taking your time in reading this and contributing any suggestions or help.

crts 05-15-2010 01:57 PM

Was the compilation in 5.8 ok? What was the requested program interpreter?
Code:

echo 'main(){}' > dummy.c
$LFS_TGT-gcc -B/tools/lib dummy.c
readelf -l a.out | grep ': /tools'


rlaybourn 09-17-2010 01:26 PM

I have this same problem . the dummy.c file compiled without a problem but it appears for some reason it will not compile this file.

corbis_demon 09-18-2010 01:50 AM

This mostly occurs when glibc didn't build properly. The file crt1.o that you are missing is installed by glibc. I suggest since you are not too far from having started off, try rebuilding. That ways if the error repeats, you'll be able to better isolate it.

duskxiv 12-15-2010 11:34 AM

Hmm that was strange. I had this same error after having mistakenly decided that I could correctly hand-type the SPECS="..." bit in the glibc section (5.8). I also noted that, after running
Code:

readelf -l a.out | grep ': /tools'
, instead of the desired output
Code:

[Requesting program interpreter: /tools/lib/ld-linux.so.2]
i had something of the form
Code:

[Requesting program interpreter: /tools/usr/lds/lib/ld-linux.so.2]
(I'm sorry I have to go from memory there, the directory mysteriously disappeared.)

After simply re-running the SPECS='...' command (pasted this time), I was able to enter CC="..." and it ran fine.

I'm now continuing with 5.9 (CC="...") without observable error, though I'll repost if this f***s something up further down the track.

focushu 02-08-2011 02:22 AM

@strungmind :I have this same problem . the dummy.c file compiled without a problem but it appears for some reason it will not compile this file.Did you solve the problem now?

@duskxiv :I re-running the
Quote:

SPECS=`dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/specs
$LFS_TGT-gcc -dumpspecs | sed \
-e 's@/lib\(64\)\?/ld@/tools&@g' \
-e "/^\*cpp:$/{n;s,$, -isystem /tools/include,}" > $SPECS
echo "New specs file is: $SPECS"
unset SPECS
and re-running CC="..." but it didn't run fine.with the same error:

Quote:

checking whether the C compiler works.. configure: error: in `/mnt/lfs/sources/binutils-build':
configure: error: cannot run C compiled programs.

linux_tales 07-23-2011 09:08 PM

Ch 5.9 Binutils Pass 2 Error: configure is WRONG.. DO THIS!
 
Ch 5.9 Binutils Pass 2 Error: Cannot run C compiled programs ## CONFIGURE SCRIPT IS WRONG

after beating my head against the wall for 3 days I finally figured out HOW to get the ./configure script to make a Makefile that will use a newly compiled gcc.. ie: the new cross-compiled gcc built from directions at the Linux From Scratch website..

I got hung up on Binutils (2nd pass).. at this point you MUST get the compiler to use the new gcc.. your new gcc should be here: /tools/bin/i686-lfs-linux-gnu=gcc

trying to do the configure as Linux From Scratch (on the Binutils 2nd pass) says WON'T WORK.. trust me! I have tried everything..

... sorry, but I am still have problems.. will post as soon as I work the issues out..

sorry, Bob

druuna 07-24-2011 02:50 AM

@linux_tales: Hi and welcome to LQ!

Can you start a new thread when you have an LFS issue. This one is rather old and I doubt you are trying to build LFS 6.6.

Quote:

trying to do the configure as Linux From Scratch (on the Binutils 2nd pass) says WON'T WORK.. trust me! I have tried everything..
Dumping a statement like this without any useful information isn't the way to go. Please tell us a bit more:

- Which LFS version are you trying to build,
- What are you using as host for building LFS,
- If you do not use the LFS livsCD, did you make your host compliant,
- What are the error messages you are seeing (10-15 lines before the Cannot run C compiled programs message).

I seriously doubt that the book doesn't work. Many have successfully build an LFS system, including me on different hardware platforms. Don't get me wrong, your hardware might be the exception to the rule, but in almost all the cases the builder did something wrong in the step they are working on or one of the previous steps.

Hope this helps.

linux_tales 07-24-2011 06:05 AM

I apologize about the previous posting.. I had planned to come back and finish the post.. and be more clear.. what I was trying to say was this:

On the 2nd pass of Binutils (where the fun really starts) the ./configure does not work.. can't find the C compiler, gcc? right?

CC="$LFS_TGT-gcc -B/tools/lib/" \
AR=$LFS_TGT-ar RANLIB=$LFS_TGT-ranlib \
../binutils-2.21/configure --prefix=/tools \
--disable-nls --with-lib-path=/tools/lib

I believe the problem is the configure script above which uses this statement: CC="$LFS_TGT-gcc -B/tools/lib/" is not correct.. {{ by the way the binary is in the bin, not the lib directory }}

I got this to work on the first pass but not the second.. it really is a PATH problem I believe.. the ./configure script finds the gcc binary but upon testing calls an error.. it keeps trying to use the default "host" binary..

Cheers,
Bob

linux_tales 07-24-2011 06:18 AM

by the way, if I gave the impression that there is something wrong with the LFS website, that is incorrect and I apologize.. I believe the guy that created the LFS concept and the website is brilliant.. I am sure most of the problems we peons have in creating Linux distros are because of our own making, NOT from LFS.

Cheers,
Bob

bucovaina78 07-24-2011 02:48 PM

I'm having the same kind of issue here. I'm using the book 6.8 with corresponding packages/patches.

The adjusting the toolchain chapter went all fine. No errors and it generated a dummy.c file (which I couldn't run by the way) and an a.out file.

Second pass of binutils went wrong at configuring.




Contents 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

  $ ../binutils-2.21/configure --prefix=/tools --disable-nls --with-lib-path=/tools/lib

## --------- ##
## Platform. ##
## --------- ##

hostname = lfslivecd
uname -m = i686
uname -r = 2.6.22.5
uname -s = Linux
uname -v = #1 SMP Thu Nov 29 16:24:21 GMT 2007

/usr/bin/uname -p = unknown
/bin/uname -X    = unknown

/bin/arch              = i686
/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:2197: checking build system type
configure:2211: result: i686-pc-linux-gnu
configure:2258: checking host system type
configure:2271: result: i686-pc-linux-gnu
configure:2291: checking target system type
configure:2304: result: i686-pc-linux-gnu
configure:2358: checking for a BSD-compatible install
configure:2426: result: /usr/bin/install -c
configure:2437: checking whether ln works
configure:2459: result: yes
configure:2463: checking whether ln -s works
configure:2467: result: yes
configure:2474: checking for a sed that does not truncate output
configure:2538: result: /bin/sed
configure:2547: checking for gawk
configure:2563: found /usr/bin/gawk
configure:2574: result: gawk
configure:3858: checking for gcc
configure:3885: result: i686-lfs-linux-gnu-gcc -B/tools/lib/
configure:4114: checking for C compiler version
configure:4123: i686-lfs-linux-gnu-gcc -B/tools/lib/ --version >&5
i686-lfs-linux-gnu-gcc (GCC) 4.5.2
Copyright (C) 2010 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:4134: $? = 0
configure:4123: i686-lfs-linux-gnu-gcc -B/tools/lib/ -v >&5
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.5.2/specs
COLLECT_GCC=i686-lfs-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/mnt/lfs/tools/bin/../libexec/gcc/i686-lfs-linux-gnu/4.5.2/lto-wrapper
Target: i686-lfs-linux-gnu
Configured with: ../gcc-4.5.2/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 --enable-languages=c --with-gmp-include=/mnt/lfs/sources/gcc-build/gmp --with-gmp-lib=/mnt/lfs/sources/gcc-build/gmp/.libs --without-ppl --without-cloog
Thread model: single
gcc version 4.5.2 (GCC)
configure:4134: $? = 0
configure:4123: i686-lfs-linux-gnu-gcc -B/tools/lib/ -V >&5
i686-lfs-linux-gnu-gcc: '-V' must come at the start of the command line
configure:4134: $? = 1
configure:4123: i686-lfs-linux-gnu-gcc -B/tools/lib/ -qversion >&5
i686-lfs-linux-gnu-gcc: unrecognized option '-qversion'
i686-lfs-linux-gnu-gcc: no input files
configure:4134: $? = 1
configure:4154: checking for C compiler default output file name
configure:4176: i686-lfs-linux-gnu-gcc -B/tools/lib/    conftest.c  >&5
configure:4180: $? = 0
configure:4217: result: a.out
configure:4233: checking whether the C compiler works
configure:4242: ./a.out
../binutils-2.21/configure: line 4244:  9294 Illegal instruction    ./$ac_file
configure:4246: $? = 132
configure:4253: error: in `/mnt/lfs/sources/binutils-build':
configure:4257: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i686-pc-linux-gnu
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_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_path_SED=/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC='i686-lfs-linux-gnu-gcc -B/tools/lib/'
ac_cv_target=i686-pc-linux-gnu
acx_cv_prog_LN=ln

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR='i686-lfs-linux-gnu-ar'
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
AWK='gawk'
BISON=''
BUILD_CONFIG=''
CC='i686-lfs-linux-gnu-gcc -B/tools/lib/'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
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=''
RAW_CXX_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED='/bin/sed'
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../binutils-2.21/configure --prefix=/tools --disable-nls --with-lib-path=/tools/lib'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='i686-lfs-linux-gnu-gcc -B/tools/lib/'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-texinfo build-byacc build-flex build-bison build-m4 build-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=''
build_vendor='pc'
clooginc=''
clooglibs=''
compare_exclusions=''
config_shell='/bin/sh'
configdirs='intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host='i686-pc-linux-gnu'
host_alias=''
host_configargs=''
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=''
poststage1_libs=''
pplinc=''
ppllibs=''
prefix='/tools'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias=''
target_configargs=''
target_configdirs='target-libgcc target-libiberty target-libgloss target-newlib target-libgomp target-libstdc++-v3 target-libmudflap target-libssp target-libgfortran target-boehm-gc target-libffi target-zlib target-qthreads target-libjava target-libobjc target-libada target-examples target-groff target-gperf target-rda'
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'
tooldir=''

## ------------------- ##
## File substitutions. ##
## ------------------- ##

alphaieee_frag=''
host_makefile_frag='config/mh-x86omitfp'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1


Contents of the specs file which can be found under: /mnt/lfs/tools/lib/gcc/i686-lfs-linux-gnu/4.5.2

Code:

*asm:
%{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} --32  %{!mno-sse2avx:%{mavx:-msse2avx}} %{msse2avx:%{!mavx:-msse2avx}}

*asm_debug:
%{!g0:%{gstabs*:--gstabs}%{!gstabs*:%{g*:--gdwarf2}}} %{fdebug-prefix-map=*:--debug-prefix-map %*}

*asm_final:


*asm_options:
%{--target-help:%:print-asm-header()} %a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}

*invoke_as:
%{!fwpa:  %{fcompare-debug=*|fdump-final-insns=*:%:compare-debug-dump-opt()}  %{!S:-o %|.s |
 as %(asm_options) %|.s %A }  }

*cpp:
%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} -isystem /tools/include

*cpp_options:
%(cpp_unique_options) %1 %{m*} %{std*&ansi&trigraphs} %{W*&pedantic*} %{w} %{f*} %{g*:%{!g0:%{g*} %{!fno-working-directory:-fworking-directory}}} %{O*} %{undef} %{save-temps*:-fpch-preprocess}

*cpp_debug_options:
%{d*}

*cpp_unique_options:
%{C|CC:%{!E:%eGCC does not support -C or -CC without -E}} %{!Q:-quiet} %{nostdinc*} %{C} %{CC} %{v} %{I*&F*} %{P} %I %{MD:-MD %{!o:%b.d}%{o*:%.d%*}} %{MMD:-MMD %{!o:%b.d}%{o*:%.d%*}} %{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{!MT:%{!MQ:%{MD|MMD:%{o*:-MQ %*}}}}}}} %{remap} %{g3|ggdb3|gstabs3|gcoff3|gxcoff3|gvms3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{fmudflap:-D_MUDFLAP -include mf-runtime.h} %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h} %{E|M|MM:%W{o*}}

*trad_capable_cpp:
cc1 -E %{traditional|ftraditional|traditional-cpp:-traditional-cpp}

*cc1:
%(cc1_cpu) %{profile:-p}

*cc1_options:
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are incompatible}} %1 %{!Q:-quiet} %{!dumpbase:-dumpbase %B} %{d*} %{m*} %{a*} %{fcompare-debug-second:%:compare-debug-auxbase-opt(%b)}  %{!fcompare-debug-second:%{c|S:%{o*:-auxbase-strip %*}%{!o*:-auxbase %b}}}%{!c:%{!S:-auxbase %b}}  %{g*} %{O*} %{W*&pedantic*} %{w} %{std*&ansi&trigraphs} %{v:-version} %{pg:-p} %{p} %{f*} %{undef} %{Qn:-fno-ident} %{--help:--help} %{--target-help:--target-help} %{--help=*:--help=%(VALUE)} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o %b.s}}} %{fsyntax-only:-o %j} %{-param*} %{fmudflap|fmudflapth:-fno-builtin -fno-merge-constants} %{coverage:-fprofile-arcs -ftest-coverage}

*cc1plus:


*link_gcc_c_sequence:
%{static:--start-group} %G %L %{static:--end-group}%{!static:%G}

*link_ssp:
%{fstack-protector|fstack-protector-all:-lssp_nonshared -lssp}

*endfile:
%{ffast-math|funsafe-math-optimizations:crtfastmath.o%s}    %{mpc32:crtprec32.o%s}    %{mpc64:crtprec64.o%s}    %{mpc80:crtprec80.o%s}    %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s

*link:
%{!static:--eh-frame-hdr} -m %(link_emulation) %{shared:-shared}  %{!shared:    %{!ibcs:      %{!static:        %{rdynamic:-export-dynamic}        %{!dynamic-linker:-dynamic-linker %(dynamic_linker)}}        %{static:-static}}}

*lib:
%{pthread:-lpthread}    %{shared:-lc}    %{!shared:%{mieee-fp:-lieee} %{profile:-lc_p}%{!profile:-lc}}

*mfwrap:
 %{static: %{fmudflap|fmudflapth:  --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc --wrap=mmap --wrap=munmap --wrap=alloca} %{fmudflapth: --wrap=pthread_create}} %{fmudflap|fmudflapth: --wrap=main}

*mflib:
%{fmudflap|fmudflapth: -export-dynamic}

*link_gomp:


*libgcc:
-lgcc

*startfile:
%{!shared: %{pg|p|profile:gcrt1.o%s;pie:Scrt1.o%s;:crt1.o%s}}    crti.o%s %{static:crtbeginT.o%s;shared|pie:crtbeginS.o%s;:crtbegin.o%s}

*switches_need_spaces:
o

*cross_compile:
1

*version:
4.5.2

*multilib:
. ;

*multilib_defaults:


*multilib_extra:


*multilib_matches:


*multilib_exclusions:


*multilib_options:


*linker:
collect2

*linker_plugin_file:


*lto_wrapper:


*lto_gcc:


*lto_libgcc:


*link_libgcc:
%D

*md_exec_prefix:


*md_startfile_prefix:


*md_startfile_prefix_1:


*startfile_prefix_spec:


*sysroot_spec:
--sysroot=%R

*sysroot_suffix_spec:


*sysroot_hdrs_suffix_spec:


*cc1_cpu:
%{mcpu=*:-mtune=%* %n`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
} %<mcpu=* %{mintel-syntax:-masm=intel %n`-mintel-syntax' is deprecated. Use `-masm=intel' instead.
} %{msse5:-mavx %n'-msse5' was removed.
} %{mno-intel-syntax:-masm=att %n`-mno-intel-syntax' is deprecated. Use `-masm=att' instead.
}%{march=native:%<march=native %:local_cpu_detect(arch)  %{!mtune=*:%<mtune=native %:local_cpu_detect(tune)}} %{mtune=native:%<mtune=native %:local_cpu_detect(tune)}

*link_emulation:
elf_i386

*dynamic_linker:
%{muclibc:%{mglibc:%e-mglibc and -muclibc used together}/tools/lib/ld-uClibc.so.0;:/tools/lib/ld-linux.so.2}

*link_command:
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker)    %{fuse-linker-plugin:    -plugin %(linker_plugin_file)    -plugin-opt=%(lto_wrapper)    -plugin-opt=%(lto_gcc)    %{static|static-libgcc:-plugin-opt=-pass-through=%(lto_libgcc)}            %{static:-plugin-opt=-pass-through=-lc}            %{O*:-plugin-opt=-O%*}    %{w:-plugin-opt=-w}    %{f*:-plugin-opt=-f%*}    %{m*:-plugin-opt=-m%*}    %{v:-plugin-opt=-v}    }    %{flto} %{fwhopr} %l %{pie:-pie} %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r}    %{s} %{t} %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}    %{static:} %{L*} %(mfwrap) %(link_libgcc) %o    %{fopenmp|ftree-parallelize-loops=*:%:include(libgomp.spec)%(link_gomp)} %(mflib)    %{fprofile-arcs|fprofile-generate*|coverage:-lgcov}    %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %(link_gcc_c_sequence)}}    %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}


bucovaina78 07-24-2011 02:50 PM

Oh by the way, I'm using a very old Via epia M100000 board with a Via Nehemiah C3 CPU. One SBU is about 14 mins :).

If there's anything of info that 's useful give me a shout.


All times are GMT -5. The time now is 08:00 PM.