gcc-4.0.2 chapter 6 compilation error

Max Hegele max-hegele at datenstau2004.de
Sun Dec 11 05:14:57 PST 2005


Am Sonntag, den 11.12.2005, 13:01 +0000 schrieb Ken Moffat:

> like it says, see 'config.log' for details - use the config.log in 
> libiberty/ if there is one.  This should contain the exact error 
> message, which will point you to what is wrong.
> 
> Ken

Hello,

config.log doesn't give more information, I just can see that configure
was invoked with --host=x86_64-cross-linux-gnu, that is the difference
beetween the other config.log-files where it was invoked with
--host=x86_64-pc-linux-gnu, and of course the errors!

 This is the config.log in build-x86_64-cross-linux-gnu/libiberty/:

------------------------
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.59.  Invocation command line was

  $ /mnt/lfs/sources/gcc-4.0.2/libiberty/configure
--cache-file=../config.cache --build=x86_64-cross-linux-gnu
--host=x86_64-cross-linux-gnu --target=x86_64-pc-linux-gnu
--prefix=/tools --libdir=/tools/lib64 --with-local-prefix=/tools
--enable-long-long --enable-c99 --enable-shared --enable-threads=posix
--enable-__cxa_atexit --disable-nls --disable-libstdcxx-pch
--with-gcc-version-trigger=/mnt/lfs/sources/gcc-4.0.2/gcc/version.c
--enable-languages=c,c++ --program-transform-name=s,y,y,
--srcdir=../../../gcc-4.0.2/libiberty
--with-build-subdir=build-x86_64-cross-linux-gnu

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

hostname = rhodos
uname -m = x86_64
uname -r = 2.6.12-10-amd64-generic
uname -s = Linux
uname -v = #1 Fri Nov 18 11:51:07 UTC 2005

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

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

PATH: /cross-tools/bin
PATH: /tools/bin
PATH: /bin
PATH: /usr/bin


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

configure:1227: creating cache ../config.cache
configure:1384: checking whether to enable maintainer-specific portions
of Makefiles
configure:1394: result: no
configure:1409: checking for makeinfo
configure:1435: result: /mnt/lfs/sources/gcc-4.0.2/missing makeinfo
configure:1451: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
configure:1474: checking for perl
configure:1490: found /usr/bin/perl
configure:1500: result: perl
configure:1520: checking build system type
configure:1538: result: x86_64-cross-linux-gnu
configure:1546: checking host system type
configure:1560: result: x86_64-cross-linux-gnu
configure:1573: checking for x86_64-cross-linux-gnu-ar
configure:1602: result: no
configure:1611: checking for ar
configure:1627: found /tools/bin/ar
configure:1637: result: ar
configure:1652: checking for x86_64-cross-linux-gnu-ranlib
configure:1681: result: no
configure:1690: checking for ranlib
configure:1706: found /tools/bin/ranlib
configure:1717: result: ranlib
configure:1739: checking for x86_64-cross-linux-gnu-gcc
configure:1765: result: gcc
configure:2047: checking for C compiler version
configure:2050: gcc --version </dev/null >&5
gcc (GCC) 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
Copyright (C) 2005 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:2053: $? = 0
configure:2055: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --enable-languages=c,c
++,java,f95,objc,ada,treelang --prefix=/usr
--with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-shared
--with-system-zlib --libexecdir=/usr/lib --enable-nls
--without-included-gettext --enable-threads=posix --program-suffix=-4.0
--enable-__cxa_atexit --enable-libstdcxx-allocator=mt
--enable-clocale=gnu --enable-libstdcxx-debug --enable-java-gc=boehm
--enable-java-awt=gtk-default --enable-gtk-cairo
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-4.0-1.4.2.0/jre
--enable-mpfr --disable-werror --enable-checking=release
x86_64-linux-gnu
Thread model: posix
gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)
configure:2058: $? = 0
configure:2060: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2063: $? = 1
configure:2082: gcc -o conftest -g -O2    conftest.c  >&5
as: error while loading shared libraries: libgcc_s.so.1: cannot open
shared object file: No such file or directory
configure:2085: $? = 1
configure:2251: checking for suffix of object files
configure:2272: gcc -c -g -O2   conftest.c >&5
as: error while loading shared libraries: libgcc_s.so.1: cannot open
shared object file: No such file or directory
configure:2275: $? = 1
configure: failed program was:
| /* confdefs.h.  */
|
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }
configure:2289: error: cannot compute suffix of object files: cannot
compile
See `config.log' for more details.

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

ac_cv_build=x86_64-cross-linux-gnu
ac_cv_build_alias=x86_64-cross-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2 '
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=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-cross-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-cross-linux-gnu
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=x86_64-pc-linux-gnu
ac_cv_host=x86_64-cross-linux-gnu
ac_cv_host_alias=x86_64-cross-linux-gnu
ac_cv_prog_CC=gcc
ac_cv_prog_MAKEINFO='/mnt/lfs/sources/gcc-4.0.2/missing makeinfo'
ac_cv_prog_PERL=perl
ac_cv_prog_ac_ct_AR=ar
ac_cv_prog_ac_ct_RANLIB=ranlib

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

AR='ar'
BUILD_INFO=''
CC='gcc'
CFLAGS='-g -O2 '
CHECK=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
HAVE_PERL=''
INSTALL_DATA=''
INSTALL_DEST=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT='#'
MAKEINFO='/mnt/lfs/sources/gcc-4.0.2/missing makeinfo'
NOTMAINT=''
NO_MINUS_C_MINUS_O=''
OBJEXT=''
OUTPUT_OPTION=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PERL='perl'
RANLIB='ranlib'
SHELL='/bin/sh'
ac_ct_AR='ar'
ac_ct_CC=''
ac_ct_RANLIB='ranlib'
ac_libiberty_warn_cflags=''
bindir='${exec_prefix}/bin'
build='x86_64-cross-linux-gnu'
build_alias='x86_64-cross-linux-gnu'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='cross'
datadir='${prefix}/share'
exec_prefix='NONE'
host='x86_64-cross-linux-gnu'
host_alias='x86_64-cross-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='cross'
includedir='${prefix}/include'
infodir='${prefix}/info'
libdir='/tools/lib64'
libexecdir='${exec_prefix}/libexec'
libiberty_topdir='../../../gcc-4.0.2/libiberty/..'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
oldincludedir='/usr/include'
pexecute=''
prefix='/tools'
program_transform_name='s,y,y,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias='x86_64-pc-linux-gnu'
target_header_dir=''

## ------------- ##
## Output files. ##
## ------------- ##

host_makefile_frag=''

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

#define PACKAGE_BUGREPORT ""
#define PACKAGE_NAME ""
#define PACKAGE_STRING ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""

configure: exit 1







More information about the cross-lfs mailing list