[Clfs-support] clfs 1.2.0 powerpc 5.14 configure: error: cannot compute suffix of object files: cannot compile

Tobi Ipaye tipaye at gmail.com
Tue Sep 4 04:36:16 PDT 2012


Ah, I should have spotted the different path when looking for
config.log :-) Here's the error from
/mnt/clfs/sources/gcc-build/powerpc-unknown-linux-gnu/libgcc/config.log:

configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    --version >&5
xgcc (GCC for Cross-LFS 4.6.0.20110517) 4.6.0
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:3039: $? = 0
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -v >&5
Reading specs from /mnt/clfs/sources/gcc-build/./gcc/specs
COLLECT_GCC=/mnt/clfs/sources/gcc-build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/mnt/clfs/sources/gcc-build/./gcc/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.6.0/configure --prefix=/cross-tools
--build=i486-cross-linux-gnu --host=i486-cross-linux-gnu
--target=powerpc-unknown-linux-gnu --with-sysroot=/mnt/clfs
--with-local-prefix=/tools --disable-nls --disable-shared
--with-mpfr=/cross-tools --with-gmp=/cross-tools
--with-ppl=/cross-tools --with-cloog=/cross-tools --without-headers
--with-newlib --disable-decimal-float --disable-libgomp
--disable-libmudflap --disable-libssp --disable-threads
--enable-languages=c --disable-multilib
Thread model: single
gcc version 4.6.0 (GCC for Cross-LFS 4.6.0.20110517)
configure:3039: $? = 0
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -o conftest -g
-O2   conftest.c  >&5
/mnt/clfs/sources/gcc-build/./gcc/as: line 87: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -c -g -O2
conftest.c >&5
/mnt/clfs/sources/gcc-build/./gcc/as: line 87: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
configure:3272: $? = 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:3286: error: in
`/mnt/clfs/sources/gcc-build/powerpc-unknown-linux-gnu/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.


The entire content is below:

clfs at ubuntu:/mnt/clfs/sources$ cat
gcc-build/powerpc-unknown-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/clfs/sources/gcc-4.6.0/libgcc/configure
--cache-file=./config.cache --with-cross-host=i486-cross-linux-gnu
--prefix=/cross-tools --with-sysroot=/mnt/clfs
--with-local-prefix=/tools --disable-nls --disable-shared
--without-headers --with-newlib --disable-decimal-float
--disable-libgomp --disable-libmudflap --disable-libssp
--disable-threads --disable-multilib --enable-languages=c,lto
--program-transform-name=s&^&powerpc-unknown-linux-gnu-&
--disable-option-checking
--with-target-subdir=powerpc-unknown-linux-gnu
--build=i486-cross-linux-gnu --host=powerpc-unknown-linux-gnu
--target=powerpc-unknown-linux-gnu --srcdir=../../../gcc-4.6.0/libgcc

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

hostname = ubuntu
uname -m = i686
uname -r = 2.6.32-42-generic
uname -s = Linux
uname -v = #95-Ubuntu SMP Wed Jul 25 15:57:54 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: /cross-tools/bin
PATH: /bin
PATH: /usr/bin


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

configure:1742: creating cache ./config.cache
configure:1903: checking for --enable-version-specific-runtime-libs
configure:1916: result: no
configure:1964: checking for a BSD-compatible install
configure:2032: result: /usr/bin/install -c
configure:2048: checking for gawk
configure:2075: result: gawk
configure:2095: checking build system type
configure:2109: result: i486-cross-linux-gnu
configure:2129: checking host system type
configure:2142: result: powerpc-unknown-linux-gnu
configure:2245: checking for powerpc-unknown-linux-gnu-ar
configure:2272: result: powerpc-unknown-linux-gnu-ar
configure:2337: checking for powerpc-unknown-linux-gnu-lipo
configure:2364: result: powerpc-unknown-linux-gnu-lipo
configure:2429: checking for powerpc-unknown-linux-gnu-nm
configure:2456: result: /mnt/clfs/sources/gcc-build/./gcc/nm
configure:2521: checking for powerpc-unknown-linux-gnu-ranlib
configure:2548: result: powerpc-unknown-linux-gnu-ranlib
configure:2613: checking for powerpc-unknown-linux-gnu-strip
configure:2640: result: powerpc-unknown-linux-gnu-strip
configure:2702: checking whether ln -s works
configure:2706: result: yes
configure:2723: checking for powerpc-unknown-linux-gnu-gcc
configure:2750: result:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include
configure:3019: checking for C compiler version
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    --version >&5
xgcc (GCC for Cross-LFS 4.6.0.20110517) 4.6.0
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:3039: $? = 0
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -v >&5
Reading specs from /mnt/clfs/sources/gcc-build/./gcc/specs
COLLECT_GCC=/mnt/clfs/sources/gcc-build/./gcc/xgcc
COLLECT_LTO_WRAPPER=/mnt/clfs/sources/gcc-build/./gcc/lto-wrapper
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.6.0/configure --prefix=/cross-tools
--build=i486-cross-linux-gnu --host=i486-cross-linux-gnu
--target=powerpc-unknown-linux-gnu --with-sysroot=/mnt/clfs
--with-local-prefix=/tools --disable-nls --disable-shared
--with-mpfr=/cross-tools --with-gmp=/cross-tools
--with-ppl=/cross-tools --with-cloog=/cross-tools --without-headers
--with-newlib --disable-decimal-float --disable-libgomp
--disable-libmudflap --disable-libssp --disable-threads
--enable-languages=c --disable-multilib
Thread model: single
gcc version 4.6.0 (GCC for Cross-LFS 4.6.0.20110517)
configure:3039: $? = 0
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -V >&5
xgcc: error: unrecognized option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3028:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -qversion >&5
xgcc: error: unrecognized option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3039: $? = 1
configure:3055:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -o conftest -g
-O2   conftest.c  >&5
/mnt/clfs/sources/gcc-build/./gcc/as: line 87: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
configure:3058: $? = 1
configure:3246: checking for suffix of object files
configure:3268:  /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include    -c -g -O2
conftest.c >&5
/mnt/clfs/sources/gcc-build/./gcc/as: line 87: exec: -m: invalid option
exec: usage: exec [-cl] [-a name] [command [arguments ...]] [redirection ...]
configure:3272: $? = 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:3286: error: in
`/mnt/clfs/sources/gcc-build/powerpc-unknown-linux-gnu/libgcc':
configure:3289: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

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

ac_cv_build=i486-cross-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=' /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-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=i486-cross-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=powerpc-unknown-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=powerpc-unknown-linux-gnu
ac_cv_host=powerpc-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=powerpc-unknown-linux-gnu-ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=' /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include   '
ac_cv_prog_LIPO=powerpc-unknown-linux-gnu-lipo
ac_cv_prog_NM=/mnt/clfs/sources/gcc-build/./gcc/nm
ac_cv_prog_RANLIB=powerpc-unknown-linux-gnu-ranlib
ac_cv_prog_STRIP=powerpc-unknown-linux-gnu-strip

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

AR='powerpc-unknown-linux-gnu-ar'
AWK='gawk'
CC=' /mnt/clfs/sources/gcc-build/./gcc/xgcc
-B/mnt/clfs/sources/gcc-build/./gcc/
-B/cross-tools/powerpc-unknown-linux-gnu/bin/
-B/cross-tools/powerpc-unknown-linux-gnu/lib/ -isystem
/cross-tools/powerpc-unknown-linux-gnu/include -isystem
/cross-tools/powerpc-unknown-linux-gnu/sys-include   '
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='powerpc-unknown-linux-gnu-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/mnt/clfs/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=':'
RANLIB='powerpc-unknown-linux-gnu-ranlib'
SHELL='/bin/sh'
STRIP='powerpc-unknown-linux-gnu-strip'
ac_ct_CC=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i486-cross-linux-gnu'
build_alias='i486-cross-linux-gnu'
build_cpu='i486'
build_libsubdir='build-i486-cross-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i486-cross-linux-gnu'
build_vendor='cross'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
enable_decimal_float='no'
enable_shared='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
host='powerpc-unknown-linux-gnu'
host_alias='powerpc-unknown-linux-gnu'
host_cpu='powerpc'
host_noncanonical='powerpc-unknown-linux-gnu'
host_os='linux-gnu'
host_subdir='.'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../gcc-4.6.0/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/cross-tools'
program_transform_name='s&^&powerpc-unknown-linux-gnu-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='powerpc-unknown-linux-gnu'
target_noncanonical='powerpc-unknown-linux-gnu'
target_subdir='powerpc-unknown-linux-gnu'
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
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






>
> On Sep 4, 2012, at 05:02 AM, Tobi Ipaye wrote:
>
>> `/mnt/clfs/sources/gcc-build/powerpc-unknown-linux-gnu/libgcc':
>> configure: error: cannot compute suffix of object files: cannot compile
>> See `config.log' for more details.
>> make: *** [configure-target-libgcc] Error 1
>
>
> What's in $CLFS/gcc-build/libgcc/config.log ?
>
> Sincerely,
>
> William Harrington
> _______________________________________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.org
> http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org



More information about the Clfs-support mailing list