LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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-15-2005, 12:38 PM   #1
chakkaradeepcc
Member
 
Registered: Mar 2005
Posts: 44

Rep: Reputation: 15
Error in Glibc Chapter-6 LFS ver-6..Help pls??


Hi all,

After completing the "Constructing the Temporary System", i started Part-III....Chapter 6.

when i configured Glibc i got this COMMON ERROR,

checking for suffix of object files...cannot compute suffix of object files:cannot compile

i searched the forum and have not got an answer on how to rectify this problem.......

am using FC-3 as my base system....Chapter-5 went on well and it took me hours to complete that chapter friends............and now am stuck up with this error...

i would be happy if someone could help me out in rectifying this error!!

with regards,
C.C.Chakkaradeep
 
Old 04-15-2005, 03:26 PM   #2
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
what's the config.log say? I would guess either you are missing something in your temp system or maybe a typo error when you chrooted.
 
Old 04-16-2005, 01:00 AM   #3
chakkaradeepcc
Member
 
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Hi All

Here is my config.log file contents......pls do help friends...........

**************************CONFIG.LOG STARTS HERE*******************************
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.59. Invocation command line was

$ ../glibc-2.3.4-20040701/configure --prefix=/usr --disable-profile --enable-add-ons=nptl --with-tls --with-__thread --enable-kernel=2.6.0 --without-cvs --with-headers=/tools/glibc-kernheaders

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

hostname = localhost.localdomain
uname -m = i686
uname -r = 2.6.9-1.667
uname -s = Linux
uname -v = #1 Tue Nov 2 14:41:25 EST 2004

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

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

PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /tools/bin


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

configure:1740: checking build system type
configure:1758: result: i686-pc-linux-gnu
configure:1766: checking host system type
configure:1780: result: i686-pc-linux-gnu
configure:1949: checking sysdep dirs
configure:2163: result: sysdeps/generic/elf sysdeps/generic
configure:2182: checking for a BSD-compatible install
configure:2237: result: /tools/bin/install -c
configure:2252: checking whether ln -s works
configure:2256: result: yes
configure:2310: checking for gcc
configure:2326: found /tools/bin/gcc
configure:2336: result: gcc
configure:2580: checking for C compiler version
configure:2583: gcc --version </dev/null >&5
../glibc-2.3.4-20040701/configure: line 2584: /tools/bin/gcc: No such file or directory
configure:2586: $? = 127
configure:2588: gcc -v </dev/null >&5
../glibc-2.3.4-20040701/configure: line 2589: /tools/bin/gcc: No such file or directory
configure:2591: $? = 127
configure:2593: gcc -V </dev/null >&5
../glibc-2.3.4-20040701/configure: line 2594: /tools/bin/gcc: No such file or directory
configure:2596: $? = 127
configure:2600: checking for suffix of object files
configure:2621: gcc -c conftest.c >&5
../glibc-2.3.4-20040701/configure: line 2622: /tools/bin/gcc: No such file or directory
configure:2624: $? = 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"
| #define USE_REGPARMS 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2638: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_build_alias=i686-pc-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
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_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i686-pc-linux-gnu
ac_cv_host_alias=i686-pc-linux-gnu
ac_cv_path_install='/tools/bin/install -c'
ac_cv_prog_ac_ct_CC=gcc

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

AR=''
AS=''
ASFLAGS_config=''
AUTOCONF=''
AWK=''
BASH='/bin/sh'
BISON=''
BUILD_CC=''
CC='gcc'
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
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=''
RELEASE=''
SED=''
SHELL='/bin/sh'
SYSINCLUDES=''
VERSION=''
VERSIONING=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_RANLIB=''
all_warnings=''
base_machine='i386'
bindir='${exec_prefix}/bin'
bindnow='no'
bounded='no'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
cross_compiling='no'
datadir='${prefix}/share'
elf='yes'
enable_check_abi='no'
exceptions=''
exec_prefix='NONE'
fno_unit_at_a_time=''
force_install='yes'
gnu_as='yes'
gnu_ld='yes'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
includedir='${prefix}/include'
infodir='${prefix}/info'
ldd_rewrite_script=''
libc_cv_Bgroup=''
libc_cv_as_needed=''
libc_cv_asm_protected_directive=''
libc_cv_cc_with_libunwind=''
libc_cv_cpp_asm_debuginfo=''
libc_cv_forced_unwind=''
libc_cv_fpie=''
libc_cv_gcc_static_libgcc=''
libc_cv_gcc_unwind_find_fde=''
libc_cv_have_bash2=''
libc_cv_have_initfini=''
libc_cv_have_ksh=''
libc_cv_initfinit_array=''
libc_cv_libgcc_s_suffix=''
libc_cv_localedir=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_sysconfdir=''
libc_cv_z_combreloc=''
libc_cv_z_execstack=''
libc_cv_z_initfirst=''
libc_cv_z_nodelete=''
libc_cv_z_nodlopen=''
libc_cv_z_relro=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
linux_doors=''
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${prefix}/man'
no_whole_archive=''
nopic_initfini=''
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
omitfp='no'
pic_default=''
prefix='/usr'
profile='no'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
shared='default'
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static='yes'
static_nss='no'
subdirs=' nptl'
sysconfdir='${prefix}/etc'
sysnames=' sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/i386/i686 nptl/sysdeps/i386 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 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='no'
with_fp='yes'
xcoff='no'

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

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

configure: exit 1
**************************CONFIG.LOG ENDS HERE*******************************
 
Old 04-16-2005, 05:18 AM   #4
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
configure:2326: found /tools/bin/gcc
configure:2336: result: gcc
configure:2580: checking for C compiler version
configure:2583: gcc --version </dev/null >&5
../glibc-2.3.4-20040701/configure: line 2584: /tools/bin/gcc: No such file or directory
configure:2586: $? = 127
configure:2588: gcc -v </dev/null >&5
../glibc-2.3.4-20040701/configure: line 2589: /tools/bin/gcc: No such file or directory
configure:2591: $? = 127
configure:2593: gcc -V </dev/null >&5
../glibc-2.3.4-20040701/configure: line 2594: /tools/bin/gcc: No such file or directory
configure:2596: $? = 127
configure:2600: checking for suffix of object files
configure:2621: gcc -c conftest.c >&5
../glibc-2.3.4-20040701/configure: line 2622: /tools/bin/gcc: No such file or directory
configure:2624: $? = 127
configure: failed program was:


there is either something wrong with your temp system gcc build or you made a mistake chrooting. try to chroot again and see if that helps, also, make sure you can run /tools/bin/gcc without errors ( do the sanity check).
 
Old 04-16-2005, 10:46 AM   #5
chakkaradeepcc
Member
 
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Hi all,

well there is no file "/tools/bin/gcc", but it is a directory there!....is this a mistake or is that i missed some steps here??....the gcc version is 3.4.1 given along with LFS Packages...but it seems this version of gcc is error prone and i had logged all my works on lfs and that indicates that i had done every step as mentioned in the LFS 6 Docs....so downloading the latest versions of GCC,Binutils and GLibc would help??..or is it that this version itself i can continue and rebuild the LFS 6.0??...

My base system is FC-3 and it is using GCC-3.4.2...

i would be happy if someone could help me out in this..

with regards,
C.C.Chakkaradeep
 
Old 04-16-2005, 04:11 PM   #6
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
redo your temporary gcc build, if you have no gcc binary in /tools/bin ( just a directory?) you cannot proceed.
 
Old 04-17-2005, 12:34 AM   #7
chakkaradeepcc
Member
 
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Hi all,

yep, gcc is a directory and not a binary..and i tried rebuilding gcc of chapter-5 but am not able to succeed..it is throwing some compilation problems...........so i have restarted my LFS work......and am sticking along with LFS Package versions itself...........

friends,throw ur views in this topic becoz if u search the forum,u would find this topic to be discussed but always with no answer............if we can get what is the reason behind this, then it would be helpful to the community.....

with regards,
C.C.Chakkaradeep
 
Old 05-18-2005, 09:50 AM   #8
hariste
LQ Newbie
 
Registered: Oct 2004
Location: indonesian
Distribution: red hat
Posts: 1

Rep: Reputation: 0
seems that i've encounter the same problem, so i restart my lfs work n got that problem again for three times..then it's work..seem's that if u don't erase the source of package after u install it, it will affect the chroot env..

so after install, just erase it unless u don't have to do that, look the remainder..
 
Old 05-23-2005, 11:16 AM   #9
alexchao
LQ Newbie
 
Registered: May 2005
Posts: 11

Rep: Reputation: 0
Oh,I got the same error just as C.C.Chakkaradeep

My Host:
gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)

AND

[alex@localhost bin]$ pwd
/mnt/lfs/tools/bin
[alex@localhost bin]$ ./gcc -v
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c : (reconfigured) ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.1
[alex@localhost bin]$ ./g++ -v
Reading specs from /mnt/lfs/tools/bin/../lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c : (reconfigured) ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.1

But in the chroot environment

root:/# /tools/bin/gcc -v
bash: /tools/bin/gcc: No such file or directory
???
--------------------------
 
Old 05-23-2005, 12:30 PM   #10
alexchao
LQ Newbie
 
Registered: May 2005
Posts: 11

Rep: Reputation: 0
I rebuild gcc pass2
(LFS-BOOK-6.0-HTML/chapter05/gcc-pass2.html)

and now,In chroot env,

/tools/bin/gcc -v
Reading specs from /tools/lib/gcc/i686-pc-linux-gnu/3.4.1/specs
Configured with: ../gcc-3.4.1/configure --prefix=/tools --libexecdir=/tools/lib --with-local-prefix=/tools --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch
Thread model: posix
gcc version 3.4.1

and

ldd /tools/bin/gcc
libc.so.6 => /tools/lib/libc.so.6 (0x00d79000)
/tools/lib/ld-linux.so.2 => /tools/lib/ld-linux.so.2 (0x00b62000)

DONE!:
 
Old 05-23-2005, 12:33 PM   #11
alexchao
LQ Newbie
 
Registered: May 2005
Posts: 11

Rep: Reputation: 0
btw,
I have to link /tools/bin/gcc &g++ to /bin to get it to work

Good Luck,C.C.Chakkaradeep
 
  


Reply


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
LFS 6.0 Chapter 6: compiling glibc problem Sakur Linux From Scratch 3 08-13-2005 11:39 PM
LFS 6-1: Glibc Test Suite Fails at end with 2 errors in Chapter 6 TGWDNGHN Linux From Scratch 1 07-26-2005 12:23 PM
LFS 6, chapter 6.11; Glibc 'make check' error Zamochit Linux From Scratch 5 05-31-2005 12:54 PM
glibc-2.3.3 in chapter 6 error znif Linux From Scratch 11 06-28-2004 07:15 AM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM


All times are GMT -5. The time now is 08:45 AM.

Main Menu
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