[lfs-support] Help with GCC Compile Pass 1 errors

Keiran keiranamor at hotmail.com
Sun Aug 12 13:37:02 PDT 2012


On 12/08/12 21:34, William Harrington wrote:
> On Aug 12, 2012, at 15:16 PM, Keiran wrote:
>
>> Hello, I'm not sure if this is the correct place to mail with this, if
>> not could you please point me in the right direction?
>>
>> When trying to compile GCC at Chapter 5.5, I get this error, and no
>> amount of Googling has been able to solve it.
>>
>> configure: error: in `/mnt/lfs/sources/gcc-build/lto-plugin':
>> configure: error: C compiler cannot create executables
> What is the contents of your /mnt/lfs/sources/gcc-build/lto-plugin/
> config.log ?
>
> Sincerely,
>
> William Harrington
>
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by LTO plugin for ld configure 0.1, which was
generated by GNU Autoconf 2.64.  Invocation command line was

   $ /mnt/lfs/sources/gcc-4.6.2/lto-plugin/configure 
--cache-file=./config.cache --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 --without-ppl --without-cloog 
--with-mpfr-include=/mnt/lfs/sources/gcc-build/../gcc-4.6.2/mpfr/src 
--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs 
--enable-languages=c,lto --program-transform-name=s,y,y, 
--disable-option-checking --build=i686-pc-linux-gnu 
--host=i686-pc-linux-gnu --target=i686-pc-linux-gnu 
--srcdir=../../gcc-4.6.2/lto-plugin --with-build-libsubdir=. --enable-shared

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

hostname = ubuntu
uname -m = i686
uname -r = 3.2.0-29-generic-pae
uname -s = Linux
uname -v = #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012

/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: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin


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

configure:2134: creating cache ./config.cache
configure:2237: checking build system type
configure:2251: result: i686-pc-linux-gnu
configure:2271: checking host system type
configure:2284: result: i686-pc-linux-gnu
configure:2304: checking target system type
configure:2317: result: i686-pc-linux-gnu
configure:2405: checking for a BSD-compatible install
configure:2473: result: /usr/bin/install -c
configure:2484: checking whether build environment is sane
configure:2534: result: yes
configure:2675: checking for a thread-safe mkdir -p
configure:2714: result: /bin/mkdir -p
configure:2727: checking for gawk
configure:2754: result: gawk
configure:2765: checking whether make sets $(MAKE)
configure:2787: result: yes
configure:2868: checking whether to enable maintainer-specific portions 
of Makefiles
configure:2877: result: no
configure:2898: checking for i686-pc-linux-gnu-gcc
configure:2925: result:  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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
configure:3194: checking for C compiler version
configure:3203:  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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    --version >&5
xgcc (GCC) 4.6.2
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:3214: $? = 0
configure:3203:  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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    -v >&5
Reading specs from /mnt/lfs/sources/gcc-build/./prev-gcc/specs
COLLECT_GCC=/mnt/lfs/sources/gcc-build/./prev-gcc/xgcc
COLLECT_LTO_WRAPPER=/mnt/lfs/sources/gcc-build/./prev-gcc/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.6.2/configure --target= --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.2/mpfr/src 
--with-mpfr-lib=/mnt/lfs/sources/gcc-build/mpfr/src/.libs
Thread model: single
gcc version 4.6.2 (GCC)
configure:3214: $? = 0
configure:3203:  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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    -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3214: $? = 1
configure:3203:  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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    -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3214: $? = 1
configure:3234: checking for C compiler default output file name
configure:3256:  /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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    -g -O2 -fomit-frame-pointer 
-gtoggle  -static-libstdc++ -static-libgcc  conftest.c  >&5
/tools/i686-pc-linux-gnu/bin/ld: cannot find crt1.o: No such file or 
directory
/tools/i686-pc-linux-gnu/bin/ld: cannot find crti.o: No such file or 
directory
/tools/i686-pc-linux-gnu/bin/ld: cannot find -lc
/tools/i686-pc-linux-gnu/bin/ld: cannot find crtn.o: No such file or 
directory
collect2: ld returned 1 exit status
configure:3260: $? = 1
configure:3297: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "LTO plugin for ld"
| #define PACKAGE_TARNAME "lto-plugin"
| #define PACKAGE_VERSION "0.1"
| #define PACKAGE_STRING "LTO plugin for ld 0.1"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "lto-plugin"
| #define VERSION "0.1"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:3303: error: in `/mnt/lfs/sources/gcc-build/lto-plugin':
configure:3307: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=' /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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   '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2 -fomit-frame-pointer -gtoggle'
ac_cv_env_CPPFLAGS_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='-static-libstdc++ -static-libgcc '
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-pc-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-pc-linux-gnu
ac_cv_host=i686-pc-linux-gnu
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=' /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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   '
ac_cv_prog_make_make_set=yes
ac_cv_target=i686-pc-linux-gnu

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

ACLOCAL='${SHELL} /mnt/lfs/sources/gcc-4.6.2/missing --run aclocal-1.11'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='${SHELL} /mnt/lfs/sources/gcc-4.6.2/missing --run tar'
AR='ar'
AUTOCONF='${SHELL} /mnt/lfs/sources/gcc-4.6.2/missing --run autoconf'
AUTOHEADER='${SHELL} /mnt/lfs/sources/gcc-4.6.2/missing --run autoheader'
AUTOMAKE='${SHELL} /mnt/lfs/sources/gcc-4.6.2/missing --run automake-1.11'
AWK='gawk'
CC=' /mnt/lfs/sources/gcc-build/./prev-gcc/xgcc 
-B/mnt/lfs/sources/gcc-build/./prev-gcc/ -B/tools/i686-pc-linux-gnu/bin/ 
-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   '
CCDEPMODE=''
CFLAGS='-g -O2 -fomit-frame-pointer -gtoggle'
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='/usr/bin/install -c -m 644'
INSTALL_PROGRAM='/usr/bin/install -c'
INSTALL_SCRIPT='/usr/bin/install -c'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='ld'
LDFLAGS='-static-libstdc++ -static-libgcc '
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='makeinfo --split-size=5000000 --split-size=5000000'
MKDIR_P='/bin/mkdir -p'
NM='nm'
NMEDIT=''
OBJDUMP='objdump'
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='lto-plugin'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='LTO plugin for ld'
PACKAGE_STRING='LTO plugin for ld 0.1'
PACKAGE_TARNAME='lto-plugin'
PACKAGE_URL=''
PACKAGE_VERSION='0.1'
PATH_SEPARATOR=':'
RANLIB='ranlib'
SED='/bin/sed'
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION='0.1'
ac_ct_CC=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=' -I$(srcdir)'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='.'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i686-pc-linux-gnu'
host_alias='i686-pc-linux-gnu'
host_cpu='i686'
host_os='linux-gnu'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /mnt/lfs/sources/gcc-4.6.2/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
lt_host_flags=''
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/tools'
program_transform_name='s,y,y,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target='i686-pc-linux-gnu'
target_alias='i686-pc-linux-gnu'
target_cpu='i686'
target_noncanonical='i686-pc-linux-gnu'
target_os='linux-gnu'
target_subdir='i686-pc-linux-gnu'
target_vendor='pc'

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

/* confdefs.h */
#define PACKAGE_NAME "LTO plugin for ld"
#define PACKAGE_TARNAME "lto-plugin"
#define PACKAGE_VERSION "0.1"
#define PACKAGE_STRING "LTO plugin for ld 0.1"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "lto-plugin"
#define VERSION "0.1"

configure: exit 77

Thank you

Keiran



More information about the lfs-support mailing list