LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   CLFS 5.9 - Glibc compile: suffix of object files, cannot compile (http://www.linuxquestions.org/questions/linux-from-scratch-13/clfs-5-9-glibc-compile-suffix-of-object-files-cannot-compile-720364/)

Noddegamra 04-20-2009 04:35 AM

CLFS 5.9 - Glibc compile: suffix of object files, cannot compile [solved, kind of]
 
While running configure for glibc-2.7 I run into an error early on.

Code:

configure: loading cache config.cache
checking build system type... i486-cross-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
configure: running configure fragment for add-on nptl
checking sysdep dirs... sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /bin/ginstall -c
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... x86_64-unknown-linux-gnu
-gcc -m64
checking for suffix of object files... configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
configure: WARNING: Cache variable ac_cv_env_CC_value contains a newline.
configure: WARNING: Cache variable ac_cv_prog_CC contains a newline.

The 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 GNU C Library configure (see version.h), which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ../glibc-2.7/configure --prefix=/tools --host=x86_64-unknown-linux-gnu --build=i486-cross-linux-gnu --disable-profile --enable-add-ons --with-tls --enable-kernel=2.6.0 --with-__thread --with-binutils=/cross-tools/bin --with-headers=/tools/include --cache-file=config.cache

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

hostname = armageddontower
uname -m = i686
uname -r = 2.6.27.21-smp
uname -s = Linux
uname -v = #1 SMP Sat Apr 4 02:32:24 PDT 2009

/usr/bin/uname -p = AMD Athlon(tm) 64 Processor 3000+
/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: /cross-tools/bin
PATH: /bin
PATH: /usr/bin


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

configure:1751: loading cache config.cache
configure:2181: checking build system type
configure:2199: result: i486-cross-linux-gnu
configure:2221: checking host system type
configure:2236: result: x86_64-unknown-linux-gnu
configure:2416: running configure fragment for add-on nptl
configure:2549: checking sysdep dirs
configure:2787: result: sysdeps/generic/elf sysdeps/generic
configure:2865: checking for a BSD-compatible install
configure:2921: result: /bin/ginstall -c
configure:2936: checking whether ln -s works
configure:2940: result: yes
configure:2956: checking for x86_64-unknown-linux-gnu-gcc
configure:2983: result: x86_64-unknown-linux-gnu
-gcc -m64
configure:3261: checking for C compiler version
configure:3268: x86_64-unknown-linux-gnu
-gcc -m64 --version >&5
../glibc-2.7/configure: line 3269: x86_64-unknown-linux-gnu: command not found
configure:3271: $? = 127
configure:3278: x86_64-unknown-linux-gnu
-gcc -m64 -v >&5
../glibc-2.7/configure: line 3279: x86_64-unknown-linux-gnu: command not found
configure:3281: $? = 127
configure:3288: x86_64-unknown-linux-gnu
-gcc -m64 -V >&5
../glibc-2.7/configure: line 3289: x86_64-unknown-linux-gnu: command not found
configure:3291: $? = 127
configure:3295: checking for suffix of object files
configure:3321: x86_64-unknown-linux-gnu
-gcc -m64 -c  conftest.c >&5
../glibc-2.7/configure: line 3322: x86_64-unknown-linux-gnu: command not found
configure:3324: $? = 127
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "GNU C Library"
| #define PACKAGE_TARNAME "c-library"
| #define PACKAGE_VERSION "(see version.h)"
| #define PACKAGE_STRING "GNU C Library (see version.h)"
| #define PACKAGE_BUGREPORT "glibc"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|  ;
|  return 0;
| }
configure:3339: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

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

configure:3360: WARNING: Cache variable ac_cv_env_CC_value contains a newline.
configure:3360: WARNING: Cache variable ac_cv_prog_CC contains a newline.
ac_cv_build=i486-cross-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_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=x86_64-unknown-linux-gnu
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-unknown-linux-gnu
ac_cv_path_install='/bin/ginstall -c'
libc_cv_c_cleanup=yes
libc_cv_forced_unwind=yes

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

-ar'
-gcc -m64'
-ranlib'
AR='x86_64-unknown-linux-gnu
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH_SHELL=''
BISON=''
BUILD_CC='gcc'
CC='x86_64-unknown-linux-gnu
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH=''
LD=''
LDFLAGS=''
LIBGD=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE=''
MAKEINFO=''
MIG=''
MSGFMT=''
OBJDUMP=''
OBJEXT=''
PACKAGE_BUGREPORT='glibc'
PACKAGE_NAME='GNU C Library'
PACKAGE_STRING='GNU C Library (see version.h)'
PACKAGE_TARNAME='c-library'
PACKAGE_VERSION='(see version.h)'
PATH_SEPARATOR=':'
PERL=''
PWD_P=''
RANLIB='x86_64-unknown-linux-gnu
RELEASE=''
SED=''
SHELL='/bin/sh'
SYSINCLUDES=''
VERSION=''
VERSIONING=''
ac_ct_CC=''
ac_ct_CXX=''
add_on_subdirs=''
add_ons='nptl'
all_warnings=''
base_machine='x86_64'
bindir='${exec_prefix}/bin'
bindnow='no'
bounded='no'
build='i486-cross-linux-gnu'
build_alias='i486-cross-linux-gnu'
build_cpu='i486'
build_os='linux-gnu'
build_vendor='cross'
cross_compiling='yes'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
elf='yes'
enable_check_abi='no'
exceptions=''
exec_prefix='NONE'
fno_unit_at_a_time=''
force_install='yes'
have_libaudit=''
have_libcap=''
have_selinux=''
host='x86_64-unknown-linux-gnu'
host_alias='x86_64-unknown-linux-gnu'
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
ldd_rewrite_script=''
libc_cv_Bgroup=''
libc_cv_as_needed=''
libc_cv_cc_with_libgcc_eh=''
libc_cv_cc_with_libunwind=''
libc_cv_forced_unwind='yes'
libc_cv_fpie=''
libc_cv_gcc_static_libgcc=''
libc_cv_gcc_unwind_find_fde=''
libc_cv_gnu89_inline=''
libc_cv_hashstyle=''
libc_cv_have_bash2=''
libc_cv_have_initfini=''
libc_cv_have_ksh=''
libc_cv_libgcc_s_suffix=''
libc_cv_localedir=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_ssp=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc=''
libc_cv_z_execstack=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
no_whole_archive=''
nopic_initfini=''
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
omitfp='no'
pdfdir='${docdir}'
pic_default=''
prefix='/tools'
profile='no'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared='default'
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static='yes'
static_nss='no'
subdirs=' '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=' nptl'
sysnames=' sysdeps/x86_64/elf nptl/sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/x86_64 sysdeps/unix/sysv/linux/wordsize-64 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/x86_64 nptl/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/x86_64/fpu nptl/sysdeps/x86_64 sysdeps/x86_64 sysdeps/wordsize-64 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic'
target_alias=''
uname_release=''
uname_sysname=''
uname_version=''
use_ldconfig=''
with_cvs='yes'
with_fp='yes'
xcoff='no'

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

#define PACKAGE_NAME "GNU C Library"
#define PACKAGE_TARNAME "c-library"
#define PACKAGE_VERSION "(see version.h)"
#define PACKAGE_STRING "GNU C Library (see version.h)"
#define PACKAGE_BUGREPORT "glibc"

configure: exit 1

I have not deviated from the instructions presented in the book, including the application of patches and building in an external directory.

The host system is a full Slackware 12.2 install, and all of the dependencies presented at the beginning of the book are met.

To me, it seems like the static gcc from the previous step was not installed properly, but I also followed that step to the 't' without error.

How could I remedy this?

Noddegamra 04-22-2009 01:27 AM

So I reformatted the partition and tried again from the beginning, taking extra care to make sure that I followed the directions to the letter, and it still came up with the same error.

Anyone have any guess?

Noddegamra 04-22-2009 05:51 PM

The strangest thing happened today.

I rebooted the computer (actually, PG&E did that for me, by messing with my power meter) and decided to try configuring and compiling once again. Configuring worked, just like it is supposed to (compiling right now).

No clue what made it do that though.

vda 04-27-2009 12:49 AM

That is strange. Maybe the file causing the problem got shredded by the power hit. Would be interesting to know which file ...


All times are GMT -5. The time now is 02:04 AM.