[lfs-support] glibc-2.16.0 configure error - relro

Thomas Jensen tj at tj-software.dk
Fri Sep 21 02:06:12 PDT 2012


Hello

In chapter 5.7 I get an error running configure. The script stop with 
following message:

checking for -z relro option... no
configure: error: linker with -z relro support required

See complete output from configure in the end of this mail. I have also 
uploaded config.log to http://sejlgarnet.dk/tmp/config.log


I think I have followed the book pretty well, and don't think I have had 
any problems so far. My best guess is something went wrong when 
compiling gcc - because i686-lfs-linux-gnu/bin/ld is found, and I think 
the error is related to that linker. But I am not sure... :-/

I hope someone can help me.

Thomas


========== output from configure ================

lfs at zepto:/mnt/lfs/sources/glibc-build$ ../glibc-2.16.0/configure 
                       \
 >       --prefix=/tools                                 \
 >       --host=$LFS_TGT                                 \
 >       --build=$(../glibc-2.16.0/scripts/config.guess) \
 >       --disable-profile                               \
 >       --enable-add-ons                                \
 >       --enable-kernel=2.6.25                          \
 >       --with-headers=/tools/include                   \
 >       libc_cv_forced_unwind=yes                       \
 >       libc_cv_ctors_header=yes                        \
 >       libc_cv_c_cleanup=yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-lfs-linux-gnu
checking for i686-lfs-linux-gnu-gcc... i686-lfs-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-lfs-linux-gnu-gcc accepts -g... yes
checking for i686-lfs-linux-gnu-gcc option to accept ISO C89... unsupported
checking for gcc... gcc
checking how to run the C preprocessor... i686-lfs-linux-gnu-gcc -E
checking for i686-lfs-linux-gnu-g++... no
checking for i686-lfs-linux-gnu-c++... no
checking for i686-lfs-linux-gnu-gpp... no
checking for i686-lfs-linux-gnu-aCC... no
checking for i686-lfs-linux-gnu-CC... no
checking for i686-lfs-linux-gnu-cxx... no
checking for i686-lfs-linux-gnu-cc++... no
checking for i686-lfs-linux-gnu-cl.exe... no
checking for i686-lfs-linux-gnu-FCC... no
checking for i686-lfs-linux-gnu-KCC... no
checking for i686-lfs-linux-gnu-RCC... no
checking for i686-lfs-linux-gnu-xlC_r... no
checking for i686-lfs-linux-gnu-xlC... no
checking for g++... g++
configure: WARNING: using cross tools not prefixed with host triplet
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for sysdeps preconfigure fragments... x86_64
configure: running configure fragment for add-on libidn
configure: running configure fragment for add-on nptl
checking for assembler gnu_indirect_function symbol type support... yes
checking whether .text pseudo-op must be used... yes
checking for assembler global-symbol directive... .globl
checking for assembler .type directive prefix... @
checking sysdep dirs... 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 
sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/inet 
nptl/sysdeps/unix/sysv sysdeps/unix/sysv sysdeps/unix/i386 
nptl/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
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking whether 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/as 
is GNU as... yes
checking whether 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld 
is GNU ld... yes
checking for 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/as... 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/as
checking version of 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/as... 
2.22, ok
checking for 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld... 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld
checking version of 
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.7.1/../../../../i686-lfs-linux-gnu/bin/ld... 
2.22, ok
checking for i686-lfs-linux-gnu-gcc... (cached) i686-lfs-linux-gnu-gcc
checking version of i686-lfs-linux-gnu-gcc... 4.7.1, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18.1, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for i686-lfs-linux-gnu-readelf... i686-lfs-linux-gnu-readelf
checking for i686-lfs-linux-gnu-nm... i686-lfs-linux-gnu-nm
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: WARNING:
*** These auxiliary programs are missing or incompatible versions: makeinfo
*** 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 gawk... no
checking for mawk... mawk
checking for perl... /usr/bin/perl
checking for install-info... /usr/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... yes
checking whether to use .ctors/.dtors header and trailer... (cached) yes
checking for libunwind-support in compiler... no
checking for -z nodelete option... yes
checking for -z nodlopen option... yes
checking for -z initfirst option... yes
checking for -z relro option... no
configure: error: linker with -z relro support required
  ============ end configure output ===============================




More information about the lfs-support mailing list