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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-15-2005, 12:38 PM
|
#1
|
Member
Registered: Mar 2005
Posts: 44
Rep:
|
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
|
|
|
04-15-2005, 03:26 PM
|
#2
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
04-16-2005, 01:00 AM
|
#3
|
Member
Registered: Mar 2005
Posts: 44
Original Poster
Rep:
|
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*******************************
|
|
|
04-16-2005, 05:18 AM
|
#4
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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).
|
|
|
04-16-2005, 10:46 AM
|
#5
|
Member
Registered: Mar 2005
Posts: 44
Original Poster
Rep:
|
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
|
|
|
04-16-2005, 04:11 PM
|
#6
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
redo your temporary gcc build, if you have no gcc binary in /tools/bin ( just a directory?) you cannot proceed.
|
|
|
04-17-2005, 12:34 AM
|
#7
|
Member
Registered: Mar 2005
Posts: 44
Original Poster
Rep:
|
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
|
|
|
05-18-2005, 09:50 AM
|
#8
|
LQ Newbie
Registered: Oct 2004
Location: indonesian
Distribution: red hat
Posts: 1
Rep:
|
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..
|
|
|
05-23-2005, 11:16 AM
|
#9
|
LQ Newbie
Registered: May 2005
Posts: 11
Rep:
|
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
???
--------------------------
|
|
|
05-23-2005, 12:30 PM
|
#10
|
LQ Newbie
Registered: May 2005
Posts: 11
Rep:
|
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!:  
|
|
|
05-23-2005, 12:33 PM
|
#11
|
LQ Newbie
Registered: May 2005
Posts: 11
Rep:
|
btw,
I have to link /tools/bin/gcc &g++ to /bin to get it to work
Good Luck,C.C.Chakkaradeep
|
|
|
All times are GMT -5. The time now is 10:05 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|