gcc-4.0.2 chapter 6 compilation error

max-hegele at datenstau2004.de max-hegele at datenstau2004.de
Sun Dec 11 04:26:24 PST 2005


Hello,

I want to build a clfs-x86_64-Multilib on an amd64 machine (using version
SVN-20051210). I succeeded to go till Chapter 6.2, but now I got stuck
with this error:

--
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-build-libiberty] Error 1
--

The funny thing is that the configure-process goes on for a while and than
suddenly gets stuck in this section. It seems the compiler cannot find the
gcc, also the host-system-type changed before this error from
x86_64-pc-linux-gnu to x86_64-cross-linux-gnu.

Can anyone help me? I don't understand this error, the configure-process
of the previous components of gcc worked.

Thanks a lot for any help!

Max Hegele

I attached the output of the configure-process (not from the beginning
because it's too long, but from the point where configure went wrong) and
the env.

Here is my env at compilation time:
-------
AS=x86_64-pc-linux-gnu-as
AR=x86_64-pc-linux-gnu-ar
TERM=xterm
OLDPWD=/mnt/lfs/sources
LC_ALL=POSIX
LFS=/mnt/lfs
LFS_HOST=x86_64-cross-linux-gnu
BUILD64=-m64
BUILD32=-m32
PATH=/cross-tools/bin:/tools/bin:/bin:/usr/bin
LD=x86_64-pc-linux-gnu-ld
PWD=/mnt/lfs/sources/gcc-build
STRIP=x86_64-pc-linux-gnu-strip
LFS_TARGET=x86_64-pc-linux-gnu
PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$ 
CXX=x86_64-pc-linux-gnu-g++
LFS_TARGET32=i686-pc-linux-gnu
SHLVL=1
HOME=/home/lfs
RANLIB=x86_64-pc-linux-gnu-ranlib
CC=x86_64-pc-linux-gnu-gcc
_=/usr/bin/env
-----

Here is the configure-output:
------------------------
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.intl
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands
Configuring in gcc
configure: loading cache ./config.cache
checking build system type... (cached) x86_64-cross-linux-gnu
checking host system type... (cached) x86_64-pc-linux-gnu
checking target system type... (cached) x86_64-pc-linux-gnu
checking LIBRARY_PATH variable... ok
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... no
checking whether a default assembler was specified... no
checking for x86_64-pc-linux-gnu-gcc... (cached) x86_64-pc-linux-gnu-gcc
-m64
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables... 
checking for suffix of object files... (cached) o
checking whether we are using the GNU C compiler... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc -m64 accepts -g... (cached) yes
checking for x86_64-pc-linux-gnu-gcc -m64 option to accept ANSI C...
(cached) none needed
checking whether x86_64-pc-linux-gnu-gcc -m64 and cc understand -c and -o
together... (cached) yes
checking how to run the C preprocessor... (cached) x86_64-pc-linux-gnu-gcc
-m64 -E
checking for inline... (cached) inline
checking for long long int... (cached) yes
checking for __int64... (cached) no
checking for egrep... (cached) grep -E
checking for ANSI C header files... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for memory.h... (cached) yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking for stdint.h... (cached) yes
checking for unistd.h... (cached) yes
checking for void *... (cached) yes
checking size of void *... (cached) 8
checking for short... (cached) yes
checking size of short... (cached) 2
checking for int... (cached) yes
checking size of int... (cached) 4
checking for long... (cached) yes
checking size of long... (cached) 8
checking for long long... (cached) yes
checking size of long long... (cached) 8
checking whether x86_64-pc-linux-gnu-gcc -m64 accepts -Wno-long-long...
(cached) yes
checking whether x86_64-pc-linux-gnu-gcc -m64 accepts
-Wno-variadic-macros... (cached) yes
checking whether x86_64-pc-linux-gnu-gcc -m64 accepts
-Wold-style-definition... (cached) yes

checking for valgrind.h... (cached) no
checking whether make sets $(MAKE)... (cached) yes
checking for gawk... (cached) mawk
checking whether ln -s works... (cached) yes
checking whether ln works... (cached) yes
checking for x86_64-pc-linux-gnu-ranlib... (cached)
x86_64-pc-linux-gnu-ranlib
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking for cmp's capabilities... (cached) gnucompare
checking for mktemp... (cached) yes
checking for makeinfo... (cached) /mnt/lfs/sources/gcc-4.0.2/missing
makeinfo
checking for modern makeinfo... (cached) no
configure: WARNING:
*** Makeinfo is missing or too old.
*** Info documentation will not be built.
checking for recent Pod::Man... yes
checking for flex... (cached) /mnt/lfs/sources/gcc-4.0.2/missing flex
checking for bison... (cached) /mnt/lfs/sources/gcc-4.0.2/missing bison
checking for nm... (cached) x86_64-pc-linux-gnu-nm
checking for ar... (cached) x86_64-pc-linux-gnu-ar
checking for GNU C library... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached)
yes
checking whether string.h and strings.h may both be included... (cached)
yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for limits.h... (cached) yes
checking for stddef.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for time.h... (cached) yes
checking for iconv.h... (cached) yes
checking for fcntl.h... (cached) yes
checking for unistd.h... (cached) yes
checking for sys/file.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/mman.h... (cached) yes
checking for sys/resource.h... (cached) yes
checking for sys/param.h... (cached) yes
checking for sys/times.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for direct.h... (cached) no
checking for malloc.h... (cached) yes
checking for langinfo.h... (cached) yes
checking for ldfcn.h... (cached) no
checking for locale.h... (cached) yes
checking for wchar.h... (cached) yes
checking for thread.h... (cached) no
checking for pthread.h... (cached) yes
checking for CHAR_BIT... (cached) yes
checking whether byte ordering is bigendian... (cached) no
checking for collect2 libraries... (cached) none required
checking for library containing exc_resume... (cached) no
checking for library containing ldexp... (cached) none required
checking for inttypes.h... (cached) yes
checking for times... (cached) yes
checking for clock... (cached) yes
checking for dup2... (cached) yes
checking for kill... (cached) yes
checking for getrlimit... (cached) yes
checking for setrlimit... (cached) yes
checking for atoll... (cached) yes
checking for atoq... (cached) no
checking for sysconf... (cached) yes
checking for strsignal... (cached) yes
checking for getrusage... (cached) yes
checking for nl_langinfo... (cached) yes
checking for scandir... (cached) yes
checking for alphasort... (cached) yes
checking for gettimeofday... (cached) yes
checking for mbstowcs... (cached) yes
checking for wcswidth... (cached) yes
checking for mmap... (cached) yes
checking for mincore... (cached) yes
checking for setlocale... (cached) yes
checking for clearerr_unlocked... (cached) yes
checking for feof_unlocked... (cached) yes
checking for ferror_unlocked... (cached) yes
checking for fflush_unlocked... (cached) yes
checking for fgetc_unlocked... (cached) yes
checking for fgets_unlocked... (cached) yes
checking for fileno_unlocked... (cached) yes
checking for fprintf_unlocked... (cached) no
checking for fputc_unlocked... (cached) yes
checking for fputs_unlocked... (cached) yes
checking for fread_unlocked... (cached) yes
checking for fwrite_unlocked... (cached) yes
checking for getchar_unlocked... (cached) yes
checking for getc_unlocked... (cached) yes
checking for putchar_unlocked... (cached) yes
checking for putc_unlocked... (cached) yes
checking whether mbstowcs works... (cached) yes
checking for ssize_t... (cached) yes
checking for uid_t in sys/types.h... (cached) yes
checking type of array argument to getgroups... (cached) gid_t
checking whether the printf functions support %p... (cached) no
checking for sys/mman.h... (cached) yes
checking for mmap... (cached) yes
checking whether read-only mmap of a plain file works... (cached) yes
checking whether mmap from /dev/zero works... (cached) yes
checking for MAP_ANON(YMOUS)... (cached) yes
checking whether mmap with MAP_ANON(YMOUS) works... (cached) yes
checking for pid_t... (cached) yes
checking for unistd.h... (cached) yes
checking for vfork.h... (cached) no
checking for fork... (cached) yes
checking for vfork... (cached) yes
checking for working fork... (cached) yes
checking for working vfork... (cached) yes
checking for ld used by GCC... (cached) x86_64-pc-linux-gnu-ld
checking if the linker (x86_64-pc-linux-gnu-ld) is GNU ld... (cached) yes
checking for shared library run path origin... (cached) done
checking for iconv... (cached) yes
checking for iconv declaration... (cached) 
         extern size_t iconv (iconv_t cd, char * *inbuf, size_t
*inbytesleft, char * *outbuf, size_t *outbytesleft);
checking for LC_MESSAGES... (cached) yes
checking for nl_langinfo and CODESET... (cached) yes
checking whether getenv is declared... (cached) yes
checking whether atol is declared... (cached) yes
checking whether sbrk is declared... (cached) yes
checking whether abort is declared... (cached) yes
checking whether atof is declared... (cached) yes
checking whether getcwd is declared... (cached) yes
checking whether getwd is declared... (cached) yes
checking whether strsignal is declared... (cached) yes
checking whether strstr is declared... (cached) yes
checking whether errno is declared... (cached) yes
checking whether snprintf is declared... (cached) yes
checking whether vasprintf is declared... (cached) yes
checking whether malloc is declared... (cached) yes
checking whether realloc is declared... (cached) yes
checking whether calloc is declared... (cached) yes
checking whether free is declared... (cached) yes
checking whether basename is declared... (cached) yes
checking whether getopt is declared... (cached) no
checking whether clock is declared... (cached) yes
checking whether getpagesize is declared... (cached) yes
checking whether clearerr_unlocked is declared... (cached) yes
checking whether feof_unlocked is declared... (cached) yes
checking whether ferror_unlocked is declared... (cached) yes
checking whether fflush_unlocked is declared... (cached) yes
checking whether fgetc_unlocked is declared... (cached) yes
checking whether fgets_unlocked is declared... (cached) yes
checking whether fileno_unlocked is declared... (cached) yes
checking whether fprintf_unlocked is declared... (cached) no
checking whether fputc_unlocked is declared... (cached) yes
checking whether fputs_unlocked is declared... (cached) yes
checking whether fread_unlocked is declared... (cached) yes
checking whether fwrite_unlocked is declared... (cached) yes
checking whether getchar_unlocked is declared... (cached) yes
checking whether getc_unlocked is declared... (cached) yes
checking whether putchar_unlocked is declared... (cached) yes
checking whether putc_unlocked is declared... (cached) yes
checking whether getrlimit is declared... (cached) yes
checking whether setrlimit is declared... (cached) yes
checking whether getrusage is declared... (cached) yes
checking whether ldgetname is declared... (cached) no
checking whether times is declared... (cached) yes
checking for struct tms... (cached) yes
checking for clock_t... (cached) yes
checking for .preinit_array/.init_array/.fini_array support... (cached)
no
checking if mkdir takes one argument... (cached) no
Using `../../gcc-4.0.2/gcc/config/i386/i386.c' for machine-specific
logic.
Using `../../gcc-4.0.2/gcc/config/i386/i386.md' as machine description
file.
Using the following target machine macro files:
        ../../gcc-4.0.2/gcc/config/i386/biarch64.h
        ../../gcc-4.0.2/gcc/config/i386/i386.h
        ../../gcc-4.0.2/gcc/config/i386/unix.h
        ../../gcc-4.0.2/gcc/config/i386/att.h
        ../../gcc-4.0.2/gcc/config/dbxelf.h
        ../../gcc-4.0.2/gcc/config/elfos.h
        ../../gcc-4.0.2/gcc/config/svr4.h
        ../../gcc-4.0.2/gcc/config/linux.h
        ../../gcc-4.0.2/gcc/config/i386/x86-64.h
        ../../gcc-4.0.2/gcc/config/i386/linux64.h
Using host-linux.o for host machine hooks.
checking for __cxa_atexit... (cached) yes
checking build system type... x86_64-cross-linux-gnu
checking host system type... x86_64-cross-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking LIBRARY_PATH variable... ok

checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
checking whether a default linker was specified... no
checking whether a default assembler was specified... no
checking for x86_64-cross-linux-gnu-gcc... gcc
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
mv: cannot stat `auto-host.h': No such file or directory
checking whether NLS is requested... no
checking what assembler to use... /cross-tools/bin/x86_64-pc-linux-gnu-as
checking what linker to use... /cross-tools/bin/x86_64-pc-linux-gnu-ld
checking what nm to use... nm
checking what objdump to use... objdump
checking assembler for .balign and .p2align... (cached) yes
checking assembler for .p2align with maximum skip... (cached) yes
checking assembler for working .subsection -1... (cached) no
checking assembler for .weak... (cached) yes
checking assembler for .nsubspa comdat... (cached) no
checking assembler for .hidden... (cached) yes
checking linker for .hidden support... (cached) yes
checking assembler for .sleb128 and .uleb128... (cached) yes
checking assembler for eh_frame optimization... (cached) buggy
checking assembler for section merging support... (cached) yes
checking assembler for COMDAT group support... (cached) yes
checking assembler for thread-local storage support... (cached) yes
checking linker -Bstatic/-Bdynamic option... yes
checking assembler for filds and fists mnemonics... (cached) yes
checking assembler for cmov syntax... (cached) no
checking assembler for GOTOFF in data... (cached) no
checking assembler for dwarf2 debug_line support... (cached) no
checking assembler for buggy dwarf2 .file directive... (cached) no
checking assembler for --gdwarf2 option... (cached) yes
checking assembler for --gstabs option... (cached) yes

checking linker read-only and read-write section mixing... objdump: error
while loading shared libraries: libgcc_s.so.1: cannot open shared object
file: No such file or directory

checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... yes
checking linker --as-needed support... (cached) yes
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles...
no
Links are now set up to build (on x86_64-cross-linux-gnu) a native
compiler
 for x86_64-pc-linux-gnu.
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gccbug
config.status: creating mklibgcc
config.status: creating libada-mk
config.status: creating auto-host.h
config.status: auto-host.h is unchanged
config.status: executing default commands
make[1]: Entering directory `/mnt/lfs/sources/gcc-build/intl'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/mnt/lfs/sources/gcc-build/intl'
Configuring in build-x86_64-cross-linux-gnu/libiberty
configure: loading cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for makeinfo... /mnt/lfs/sources/gcc-4.0.2/missing makeinfo
configure: WARNING:
*** Makeinfo is missing. Info documentation will not be built.
checking for perl... perl
checking build system type... x86_64-cross-linux-gnu
checking host system type... x86_64-cross-linux-gnu
checking for x86_64-cross-linux-gnu-ar... no
checking for ar... ar
checking for x86_64-cross-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for x86_64-cross-linux-gnu-gcc... gcc
checking for suffix of object files... configure: error: cannot compute
suffix of object files: cannot compile
See `config.log' for more details.
make: *** [configure-build-libiberty] Error 1
------





More information about the cross-lfs mailing list