Hi everyone, My linux machine details: # uname -r : 3.2.0-50-generic-pae using ubuntu 12.04 LTS LFS version:7.4
I've followed the instructions in the book strictly.Successfully completed chapter5. After chrooting into the lfs partition,i.e, section 6.9.1 when i ran the command: "../glibc-2.18/configure --prefix=/usr --disable-profile --enable-kernel=2.6.32 \ --libexecdir=/usr/lib/glibc " and then it throws an error like this : (this is a copy paste from the terminal) "root:/sources/glibc-build2:# ../glibc-2.18/configure --prefix=/usr --disable-profile --enable-kernel=2.6.32 \ > --libexecdir=/usr/lib/glibc checking build system type... i686-pc-linux-gnu checking host system type... i686-pc-linux-gnu checking for gcc... gcc checking for suffix of object files... configure: error: in `/sources/glibc-build2': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details " **************************************************** Now, the contents of config.log are: root:/sources/glibc-build2:# cat config.log 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.68. Invocation command line was $ ../glibc-2.18/configure --prefix=/usr --disable-profile --enable-kernel=2.6.32 --libexecdir=/usr/lib/glibc ## --------- ## ## Platform. ## ## --------- ## hostname = shiva-desktop uname -m = i686 uname -r = 3.2.0-50-generic-pae uname -s = Linux uname -v = #76-Ubuntu SMP Tue Jul 9 19:24:55 UTC 2013 /usr/bin/uname -p = unknown /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown /usr/bin/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:2344: checking build system type configure:2358: result: i686-pc-linux-gnu configure:2378: checking host system type configure:2391: result: i686-pc-linux-gnu configure:2460: checking for gcc configure:2476: found /tools/bin/gcc configure:2487: result: gcc configure:2716: checking for C compiler version configure:2725: gcc --version >&5 ../glibc-2.18/configure: line 2727: /tools/bin/gcc: No such file or directory configure:2736: $? = 127 configure:2725: gcc -v >&5 ../glibc-2.18/configure: line 2727: /tools/bin/gcc: No such file or directory configure:2736: $? = 127 configure:2725: gcc -V >&5 ../glibc-2.18/configure: line 2727: /tools/bin/gcc: No such file or directory configure:2736: $? = 127 configure:2725: gcc -qversion >&5 ../glibc-2.18/configure: line 2727: /tools/bin/gcc: No such file or directory configure:2736: $? = 127 configure:2741: checking for suffix of object files configure:2763: gcc -c conftest.c >&5 ../glibc-2.18/configure: line 2765: /tools/bin/gcc: No such file or directory configure:2767: $? = 127 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Library" | #define PACKAGE_TARNAME "glibc" | #define PACKAGE_VERSION "(see version.h)" | #define PACKAGE_STRING "GNU C Library (see version.h)" | #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/" | #define PACKAGE_URL "http://www.gnu.org/software/glibc/" | #define PKGVERSION "(GNU libc) " | #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2781: error: in `/sources/glibc-build2': configure:2783: 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_env_CCC_set= ac_cv_env_CCC_value= 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_LIBS_set= ac_cv_env_LIBS_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_prog_ac_ct_CC=gcc ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='' AS='' ASFLAGS_config='' AUTOCONF='' AWK='' BASH_SHELL='' BISON='' BUILD_CC='' CC='gcc' CFLAGS='' CPP='' CPPFLAGS='' CPPUNDEFS='' CXX='' CXXFLAGS='' CXX_SYSINCLUDES='' DEFINES='' DEFS='' ECHO_C='' ECHO_N='-n' ECHO_T='' INSTALL_DATA='' INSTALL_INFO='' INSTALL_PROGRAM='' INSTALL_SCRIPT='' KSH='' LD='' LDFLAGS='' LIBGD='' LIBOBJS='' LIBS='' LN_S='' LTLIBOBJS='' MAKE='' MAKEINFO='' MSGFMT='' NM='' OBJCOPY='' OBJDUMP='' OBJEXT='' PACKAGE_BUGREPORT='http://sourceware.org/bugzilla/' PACKAGE_NAME='GNU C Library' PACKAGE_STRING='GNU C Library (see version.h)' PACKAGE_TARNAME='glibc' PACKAGE_URL='http://www.gnu.org/software/glibc/' PACKAGE_VERSION='(see version.h)' PATH_SEPARATOR=':' PERL='' PKGVERSION='(GNU libc) ' PKGVERSION_TEXI='(GNU libc) ' READELF='' RELEASE='' REPORT_BUGS_TEXI='@uref{http://www.gnu.org/software/libc/bugs.html}' REPORT_BUGS_TO='<http://www.gnu.org/software/libc/bugs.html>' SED='' SHELL='/bin/sh' SYSINCLUDES='' VERSION='' VERSIONING='' ac_ct_CC='gcc' ac_ct_CXX='' add_on_subdirs='' add_ons='' all_warnings='' base_machine='' bindir='${exec_prefix}/bin' bindnow='' build='i686-pc-linux-gnu' build_alias='' build_cpu='i686' build_nscd='' build_os='linux-gnu' build_pt_chown='' build_vendor='pc' cross_compiling='no' datadir='${datarootdir}' datarootdir='${prefix}/share' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' dvidir='${docdir}' exceptions='' exec_prefix='NONE' fno_unit_at_a_time='' force_install='' gnu89_inline='' hardcoded_path_in_tests='' have_libaudit='' have_libcap='' have_selinux='' host='i686-pc-linux-gnu' host_alias='' host_cpu='i686' host_os='linux-gnu' host_vendor='pc' htmldir='${docdir}' includedir='${prefix}/include' infodir='${datarootdir}/info' ldd_rewrite_script='' libc_cv_Bgroup='' libc_cv_cc_loop_to_function='' libc_cv_cc_nofma='' libc_cv_cc_submachine='' libc_cv_cc_with_libunwind='' libc_cv_forced_unwind='' libc_cv_fpie='' libc_cv_gcc_static_libgcc='' libc_cv_gcc_unwind_find_fde='' libc_cv_hashstyle='' libc_cv_have_bash2='' libc_cv_have_ksh='' libc_cv_localedir='' libc_cv_localstatedir='' libc_cv_nss_crypt='' libc_cv_output_format='' libc_cv_pic_default='' libc_cv_rootsbindir='' libc_cv_rtlddir='' libc_cv_slibdir='' libc_cv_ssp='' libc_cv_sysconfdir='' libc_cv_z_combreloc='' libc_cv_z_execstack='' libc_extra_cflags='' libdir='${exec_prefix}/lib' libexecdir='/usr/lib/glibc' link_obsolete_rpc='' localedir='${datarootdir}/locale' localstatedir='${prefix}/var' mach_interface_list='' mandir='${datarootdir}/man' multi_arch='' old_glibc_headers='' oldest_abi='' oldincludedir='/usr/include' pdfdir='${docdir}' prefix='/usr' profile='' program_transform_name='s,x,x,' psdir='${docdir}' sbindir='${exec_prefix}/sbin' shared='' sharedstatedir='${prefix}/com' sizeof_long_double='' static='' static_nss='' subdirs=' ' submachine='' sysconfdir='${prefix}/etc' sysdeps_add_ons='' sysheaders='' sysnames='' target_alias='' use_default_link='' use_ldconfig='' use_nscd='' with_fp='' ## ----------- ## ## confdefs.h. ## ## ----------- ## /* confdefs.h */ #define PACKAGE_NAME "GNU C Library" #define PACKAGE_TARNAME "glibc" #define PACKAGE_VERSION "(see version.h)" #define PACKAGE_STRING "GNU C Library (see version.h)" #define PACKAGE_BUGREPORT "http://sourceware.org/bugzilla/" #define PACKAGE_URL "http://www.gnu.org/software/glibc/" #define PKGVERSION "(GNU libc) " #define REPORT_BUGS_TO "<http://www.gnu.org/software/libc/bugs.html>" configure: exit 1 ******************************************************************** In the upper section of config.log we can see that: " configure:2725: gcc --version >&5 ../glibc-2.18/configure: line 2727: /tools/bin/gcc: No such file or directory configure:2736: $? = 127 ........... " not only gcc ,later i've checked with some of the binaries under /tools/bin, they say the same thing when i try to use them..."No such file or directory" WHAT MIGHT BE THE REASON?? In an attempt to understand the problem, i did this outside the chroot environment: " shiva@shiva-desktop:/$ ldd /tools/bin/gcc linux-gate.so.1 => (0xb77dd000) libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb761b000) /lib/ld-linux.so.2 (0xb77de000) " so, does it mean that my /tools/bin/gcc got linked with the host libraries rather than my /tools/lib ??? SUGGEST ME SOMETHING ON THIS, SO, THAT I CAN PROCEED FURTHER... P.S.: this is my first mail to the mailing list...sorry if it is informal or too long..or whatever that causes yu the discomfort.. THANKS in advance..
-- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
