LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices



Reply
 
Search this Thread
Old 04-20-2009, 05:35 AM   #1
Noddegamra
LQ Newbie
 
Registered: Feb 2009
Location: California
Distribution: Slackware
Posts: 20

Rep: Reputation: 0
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?

Last edited by Noddegamra; 04-22-2009 at 06:52 PM.
 
Old 04-22-2009, 02:27 AM   #2
Noddegamra
LQ Newbie
 
Registered: Feb 2009
Location: California
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
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?
 
Old 04-22-2009, 06:51 PM   #3
Noddegamra
LQ Newbie
 
Registered: Feb 2009
Location: California
Distribution: Slackware
Posts: 20

Original Poster
Rep: Reputation: 0
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.
 
Old 04-27-2009, 01:49 AM   #4
vda
LQ Newbie
 
Registered: Aug 2004
Posts: 3

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


Reply

Tags
clfs, glibc


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why cannot compute suffix of object files? bhxs1809 Linux From Scratch 11 03-05-2012 01:04 PM
glibc in capter 6 -- error: cannot compute suffix of object files Yoyo302 Linux From Scratch 23 05-21-2010 09:28 AM
GCC error cannot compute suffix of object files orcaja Linux - Software 1 08-25-2008 01:55 PM
CLFS Texinfo Compile Error fatsheep Linux From Scratch 1 10-21-2006 03:44 PM
configure error : cannot compute suffix of object files status1 Linux From Scratch 1 10-14-2006 11:18 AM


All times are GMT -5. The time now is 06:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration