LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   glibc configure error in chapter 6.9.1 (https://www.linuxquestions.org/questions/linux-from-scratch-13/glibc-configure-error-in-chapter-6-9-1-a-4175471780/)

godama 08-01-2013 04:42 PM

glibc configure error in chapter 6.9.1
 
I can't solve Glibc-2.17 configure error.

LFS:7.3
Chapter 6.9 installation Glibc-2.17

I have the following error during configure
anyone has idea?

I followed chapter 6 and chroot was performed.
I extracted glibc-2.17.tar.xz again and create glibc-build directory again.


Configure
Quote:

root:/sources/7.3/glibc-build# ../glibc-2.17/configure --prefix=/usr --disable-profile --enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc
Error
Quote:

configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
checking LD_LIBRARY_PATH variable... ok
checking whether GCC supports -static-libgcc... -static-libgcc
checking for bash... /bin/bash
checking for perl... /usr/bin/perl
checking for install-info... /tools/bin/install-info
checking for bison... no
checking for libc-friendly stddef.h... yes
checking whether we need to use -P to assemble .S files... no
checking for .set assembler directive... yes
checking for assembler gnu_unique_object symbol type... yes
checking for .symver assembler directive... yes
checking for ld --version-script... yes
checking for .previous assembler directive... yes
checking for .protected and .hidden assembler directive... yes
checking whether __attribute__((visibility())) is supported... yes
checking for broken __attribute__((visibility()))... no
checking for broken __attribute__((alias()))... no
checking whether to put _rtld_local into .sdata section... no
checking for .preinit_array/.init_array/.fini_array support... ../glibc-2.17/configure: line 6142: /usr/bin/readelf: No such file or directory
no
configure: error: Need linker with .init_array/.fini_array support.





Quote:

root:/sources/7.3/glibc-build# 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.17/configure --prefix=/usr --disable-profile --enable-kernel=2.6.25 --libexecdir=/usr/lib/glibc

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

hostname = centos-internal
uname -m = i686
uname -r = 2.6.32-279.el6.i686
uname -s = Linux
uname -v = #1 SMP Fri Jun 22 10:59:55 UTC 2012

/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:2366: checking build system type
configure:2380: result: i686-pc-linux-gnu
configure:2400: checking host system type
configure:2413: result: i686-pc-linux-gnu
configure:2482: checking for gcc
configure:2498: found /tools/bin/gcc
configure:2509: result: gcc
configure:2738: checking for C compiler version
configure:2747: gcc --version >&5
gcc (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2758: $? = 0
configure:2747: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i686-pc-linux-gnu/4.7.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.7.2/configure --prefix=/tools --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --with-mpfr-include=/mnt/lfs/sources/7.3/gcc-build2/../gcc-4.7.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/7.3/gcc-build2/mpfr/src/.libs : (reconfigured) ../gcc-4.7.2/configure --prefix=/tools --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --with-mpfr-include=/mnt/lfs/sources/7.3/gcc-build2/../gcc-4.7.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/7.3/gcc-build2/mpfr/src/.libs
Thread model: posix
gcc version 4.7.2 (GCC)
configure:2758: $? = 0
configure:2747: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2758: $? = 1
configure:2747: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2758: $? = 1
configure:2763: checking for suffix of object files
configure:2785: gcc -c conftest.c >&5
configure:2789: $? = 0
configure:2810: result: o
configure:2814: checking whether we are using the GNU C compiler
configure:2833: gcc -c conftest.c >&5
configure:2833: $? = 0
configure:2842: result: yes
configure:2851: checking whether gcc accepts -g
configure:2871: gcc -c -g conftest.c >&5
configure:2871: $? = 0
configure:2912: result: yes
configure:2929: checking for gcc option to accept ISO C89
configure:2993: gcc -c -g -O2 conftest.c >&5
configure:2993: $? = 0
configure:3006: result: none needed
configure:3076: checking how to run the C preprocessor
configure:3107: gcc -E conftest.c
configure:3107: $? = 0
configure:3121: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3121: $? = 1
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. */
| #include <ac_nonexistent.h>
configure:3146: result: gcc -E
configure:3166: gcc -E conftest.c
configure:3166: $? = 0
configure:3180: gcc -E conftest.c
conftest.c:11:28: fatal error: ac_nonexistent.h: No such file or directory
compilation terminated.
configure:3180: $? = 1
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. */
| #include <ac_nonexistent.h>
configure:3267: checking for g++
configure:3283: found /tools/bin/g++
configure:3294: result: g++
configure:3321: checking for C++ compiler version
configure:3330: g++ --version >&5
g++ (GCC) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3341: $? = 0
configure:3330: g++ -v >&5
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/tools/libexec/gcc/i686-pc-linux-gnu/4.7.2/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.7.2/configure --prefix=/tools --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --with-mpfr-include=/mnt/lfs/sources/7.3/gcc-build2/../gcc-4.7.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/7.3/gcc-build2/mpfr/src/.libs : (reconfigured) ../gcc-4.7.2/configure --prefix=/tools --with-local-prefix=/tools --with-native-system-header-dir=/tools/include --enable-clocale=gnu --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-languages=c,c++ --disable-libstdcxx-pch --disable-multilib --disable-bootstrap --disable-libgomp --with-mpfr-include=/mnt/lfs/sources/7.3/gcc-build2/../gcc-4.7.2/mpfr/src --with-mpfr-lib=/mnt/lfs/sources/7.3/gcc-build2/mpfr/src/.libs
Thread model: posix
gcc version 4.7.2 (GCC)
configure:3341: $? = 0
configure:3330: g++ -V >&5
g++: error: unrecognized command line option '-V'
g++: fatal error: no input files
compilation terminated.
configure:3341: $? = 1
configure:3330: g++ -qversion >&5
g++: error: unrecognized command line option '-qversion'
g++: fatal error: no input files
compilation terminated.
configure:3341: $? = 1
configure:3345: checking whether we are using the GNU C++ compiler
configure:3364: g++ -c conftest.cpp >&5
configure:3364: $? = 0
configure:3373: result: yes
configure:3382: checking whether g++ accepts -g
configure:3402: g++ -c -g conftest.cpp >&5
configure:3402: $? = 0
configure:3443: result: yes
configure:3509: checking for readelf
configure:3525: found /usr/bin/readelf
configure:3536: result: readelf
configure:3998: checking for sysdeps preconfigure fragments
configure:4005: result:
configure:4079: running configure fragment for add-on libidn
configure:4079: running configure fragment for add-on nptl
configure:4127: checking add-on ports for preconfigure fragments
configure:4134: result:
configure:4215: checking for assembler and linker STT_GNU_IFUNC support
configure:4246: result: yes
configure:4249: checking whether .text pseudo-op must be used
configure:4259: gcc -c conftest.s 1>&5
configure:4262: $? = 0
configure:4273: result: yes
configure:4291: checking sysdep dirs
configure:4505: result: sysdeps/generic
configure:4559: WARNING: add-on ports contributed no useful sysdeps directories
configure:4582: checking for a BSD-compatible install
configure:4650: result: /tools/bin/install -c
configure:4665: checking whether ln -s works
configure:4669: result: yes
configure:4693: checking whether /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/as is GNU as
configure:4707: result: yes
configure:4712: checking whether /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld is GNU ld
configure:4726: result: yes
configure:4736: checking for /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/as
configure:4763: result: /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/as
configure:4778: checking version of /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/as
configure:4788: result: 2.23.1, ok
configure:4799: checking for /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld
configure:4826: result: /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld
configure:4841: checking version of /tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld
configure:4851: result: 2.23.1, ok
configure:4865: checking for gcc
configure:4892: result: gcc
configure:4907: checking version of gcc
configure:4917: result: 4.7.2, ok
configure:4928: checking for gnumake
configure:4958: result: no
configure:4928: checking for gmake
configure:4958: result: no
configure:4928: checking for make
configure:4944: found /tools/bin/make
configure:4955: result: make
configure:4970: checking version of make
configure:4980: result: 3.82, ok
configure:4992: checking for gnumsgfmt
configure:5022: result: no
configure:4992: checking for gmsgfmt
configure:5022: result: no
configure:4992: checking for msgfmt
configure:5008: found /tools/bin/msgfmt
configure:5019: result: msgfmt
configure:5034: checking version of msgfmt
configure:5044: result: 0.18.2, ok
configure:5055: checking for makeinfo
configure:5071: found /tools/bin/makeinfo
configure:5082: result: makeinfo
configure:5097: checking version of makeinfo
configure:5107: result: 5.0, ok
configure:5118: checking for sed
configure:5134: found /tools/bin/sed
configure:5145: result: sed
configure:5160: checking version of sed
configure:5170: result: 4.2.2, ok
configure:5181: checking for gawk
configure:5197: found /tools/bin/gawk
configure:5208: result: gawk
configure:5223: checking version of gawk
configure:5233: result: 4.0.2, ok
configure:5284: checking for nm
configure:5300: found /usr/bin/nm
configure:5311: result: nm
configure:5338: checking for autoconf
configure:5368: result: no
configure:5407: WARNING:
*** These auxiliary programs are missing or incompatible versions: autoconf
*** some features will be disabled.
*** Check the INSTALL file for required versions.
configure:5443: checking LD_LIBRARY_PATH variable
configure:5453: result: ok
configure:5462: checking whether GCC supports -static-libgcc
configure:5473: result: -static-libgcc
configure:5479: checking for bash
configure:5497: found /bin/bash
configure:5510: result: /bin/bash
configure:5583: checking for perl
configure:5601: found /usr/bin/perl
configure:5614: result: /usr/bin/perl
configure:5628: checking for install-info
configure:5647: found /tools/bin/install-info
configure:5660: result: /tools/bin/install-info
configure:5670: checking for bison
configure:5702: result: no
configure:5711: checking for libc-friendly stddef.h
configure:5735: gcc -c -g -O2 conftest.c >&5
conftest.c: In function 'main':
conftest.c:26:38: warning: incompatible implicit declaration of built-in function 'abort' [enabled by default]
configure:5735: $? = 0
configure:5742: result: yes
configure:5749: checking whether we need to use -P to assemble .S files
configure:5759: gcc -c conftest.S 1>&5
configure:5762: $? = 0
configure:5770: result: no
configure:5777: checking for .set assembler directive
configure:5803: result: yes
configure:5810: checking for assembler gnu_unique_object symbol type
configure:5827: result: yes
configure:5834: checking for .symver assembler directive
configure:5851: result: yes
configure:5853: checking for ld --version-script
configure:5879: gcc -g -O2 -shared
-o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
1>&5
configure:5882: $? = 0
configure:5897: result: yes
configure:5918: checking for .previous assembler directive
configure:5928: gcc -c conftest.s 1>&5
configure:5931: $? = 0
configure:5939: result: yes
configure:5973: checking for .protected and .hidden assembler directive
configure:5985: gcc -c conftest.s 1>&5
configure:5988: $? = 0
configure:5996: result: yes
configure:6000: checking whether __attribute__((visibility())) is supported
configure:6011: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:6014: $? = 0
configure:6025: result: yes
configure:6033: checking for broken __attribute__((visibility()))
configure:6045: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:6048: $? = 0
configure:6057: result: no
configure:6064: checking for broken __attribute__((alias()))
configure:6079: gcc -Werror -S conftest.c -o conftest.s 1>&5
configure:6082: $? = 0
configure:6092: result: no
configure:6099: checking whether to put _rtld_local into .sdata section
configure:6113: result: no
configure:6121: checking for .preinit_array/.init_array/.fini_array support
configure:6137: gcc -g -O2 -o conftest
conftest.c -static -nostartfiles -nostdlib
1>&5
configure:6140: $? = 0
configure:6153: result: no
configure:6156: error: Need linker with .init_array/.fini_array support.

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

ac_cv_build=i686-pc-linux-gnu
ac_cv_c_compiler_gnu=yes
ac_cv_cxx_compiler_gnu=yes
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_objext=o
ac_cv_path_BASH_SHELL=/bin/bash
ac_cv_path_BISON=no
ac_cv_path_INSTALL_INFO=/tools/bin/install-info
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_install='/tools/bin/install -c'
ac_cv_prog_AS=/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/as
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=gcc
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_LD=/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld
ac_cv_prog_MAKE=make
ac_cv_prog_MAKEINFO=makeinfo
ac_cv_prog_MSGFMT=msgfmt
ac_cv_prog_SED=sed
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_ac_ct_CXX=g++
ac_cv_prog_ac_ct_NM=nm
ac_cv_prog_ac_ct_READELF=readelf
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
ac_cv_prog_cxx_g=yes
libc_cv_asm_previous_directive=yes
libc_cv_asm_protected_directive=yes
libc_cv_asm_set_directive=yes
libc_cv_asm_symver_directive=yes
libc_cv_asm_unique_object=yes
libc_cv_broken_alias_attribute=no
libc_cv_broken_visibility_attribute=no
libc_cv_dot_text=.text
libc_cv_friendly_stddef=yes
libc_cv_gcc_static_libgcc=-static-libgcc
libc_cv_have_bash2=yes
libc_cv_have_ksh=yes
libc_cv_have_sdata_section=no
libc_cv_initfini_array=no
libc_cv_ld_gnu_indirect_function=yes
libc_cv_ld_version_script_option=yes
libc_cv_need_minus_P=no
libc_cv_nss_crypt=no
libc_cv_prog_as_gnu=yes
libc_cv_prog_ld_gnu=yes
libc_cv_visibility_attribute=yes

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

AR='/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ar'
AS='/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/as'
ASFLAGS_config=''
AUTOCONF='no'
AWK='gawk'
BASH_SHELL='/bin/bash'
BISON='no'
BUILD_CC=''
CC='gcc'
CFLAGS='-g -O2'
CPP='gcc -E'
CPPFLAGS=''
CPPUNDEFS=''
CXX='g++'
CXXFLAGS='-g -O2'
CXX_SYSINCLUDES=''
DEFINES=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_INFO='/tools/bin/install-info'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
KSH='/bin/bash'
LD='/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/ld'
LDFLAGS=''
LIBGD=''
LIBOBJS=''
LIBS=''
LN_S='ln -s'
LTLIBOBJS=''
MAKE='make'
MAKEINFO='makeinfo'
MIG=''
MSGFMT='msgfmt'
NM='nm'
OBJCOPY='/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/objcopy'
OBJDUMP='/tools/lib/gcc/i686-pc-linux-gnu/4.7.2/../../../../i686-pc-linux-gnu/bin/objdump'
OBJEXT='o'
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='/usr/bin/perl'
PKGVERSION='(GNU libc) '
PKGVERSION_TEXI='(GNU libc) '
READELF='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='sed'
SHELL='/bin/sh'
SYSINCLUDES=''
VERSION=''
VERSIONING='yes'
ac_ct_CC='gcc'
ac_ct_CXX='g++'
add_on_subdirs=' libidn'
add_ons='libidn nptl ports'
all_warnings=''
base_machine='i386'
bindir='${exec_prefix}/bin'
bindnow='no'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_nscd='default'
build_os='linux-gnu'
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='yes'
gnu89_inline=''
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_as_i686=''
libc_cv_cc_avx=''
libc_cv_cc_fma4=''
libc_cv_cc_nofma=''
libc_cv_cc_novzeroupper=''
libc_cv_cc_sse2avx=''
libc_cv_cc_sse4=''
libc_cv_cc_submachine=''
libc_cv_cc_with_libunwind=''
libc_cv_forced_unwind=''
libc_cv_fpie=''
libc_cv_gcc_static_libgcc='-static-libgcc'
libc_cv_gcc_unwind_find_fde=''
libc_cv_hashstyle=''
libc_cv_have_bash2='yes'
libc_cv_have_ksh='yes'
libc_cv_localedir=''
libc_cv_localstatedir=''
libc_cv_nss_crypt='no'
libc_cv_output_format=''
libc_cv_pic_default=''
libc_cv_rootsbindir=''
libc_cv_slibdir=''
libc_cv_sparc_as_vis3=''
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='no'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mach_interface_list=''
mandir='${datarootdir}/man'
multi_arch='default'
old_glibc_headers=''
oldest_abi='default'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
profile='no'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
shared='yes'
sharedstatedir='${prefix}/com'
sizeof_long_double=''
static=''
static_nss='no'
subdirs=' '
submachine=''
sysconfdir='${prefix}/etc'
sysdeps_add_ons=' nptl ports'
sysheaders=''
sysnames=' nptl/sysdeps/unix/sysv/linux/i386/i686 sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/x86 sysdeps/unix/sysv/linux/i386/nptl sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu/multiarch sysdeps/i386/i686/fpu sysdeps/i386/i686/multiarch nptl/sysdeps/i386/i686 sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/x86/fpu nptl/sysdeps/i386 sysdeps/i386 sysdeps/x86 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic'
target_alias=''
use_default_link='default'
use_ldconfig=''
use_nscd='yes'
with_fp='yes'

## ----------- ##
## 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>"
#define HAVE_LIBIDN 1
#define USE_REGPARMS 1
#define USE_MULTIARCH 1
#define HAVE_ASM_SET_DIRECTIVE 1
#define HAVE_ASM_UNIQUE_OBJECT 1
#define DO_VERSIONING 1
#define HAVE_ASM_PREVIOUS_DIRECTIVE 1

configure: exit 1
root:/sources/7.3/glibc-build#

druuna 08-05-2013 01:21 AM

I don't see anything obvious in the above posted output.

One thing I can come up with: Did you set any compile flags? If so: Try building without them.

godama 08-05-2013 10:30 AM

I found out that /usr/bin/readelf exists but when I run it, it says
no such file or directory even though file exists.
also there is readelf exists under /tools/bin.
so I deleted /usr/bin/readelf and create link to /tools/bin dir one.

I don't know why there are two different file that has the same name across in the /usr/bin and /tool/bin.

druuna 08-05-2013 10:49 AM

Quote:

Originally Posted by godama (Post 5003336)
I found out that /usr/bin/readelf exists but when I run it, it says
no such file or directory even though file exists.
also there is readelf exists under /tools/bin.
so I deleted /usr/bin/readelf and create link to /tools/bin dir one.

I don't know why there are two different file that has the same name across in the /usr/bin and /tool/bin.

At this point there shouldn't be a readelf present in /usr/bin.

You installed /tools/bin/readelf in chapter 5.8. Binutils-2.23.1 - Pass 2, this one is used until the new one (6.13. Binutils-2.23.1)is installed. After you chroot (6.4. Entering the Chroot Environment) there should be only 1 readelf available, the one in /tools/bin

It looks like you have back-traced and are redoing previous chapters.

godama 08-05-2013 11:07 AM

drunna, Thanks for the advice,
I checked time stamp of the file under /usr/bin and seems I did something not followed the direction on LFS Book.
Maybe I should do it again from scratch.

druuna 08-05-2013 11:46 AM

If you have made a backup as suggested in chapter 5.34, you can take that as a starting point (remove all in $LFS, restore backup and start with chapter 6)

EDIT: That is assuming nothing went wrong in chapter 5.....


All times are GMT -5. The time now is 08:58 PM.