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

2012-09-22 Thread Thomas Jensen
Den 21-09-2012 17:22, Bruce Dubbs skrev:
  Thomas Jensen wrote:
  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
 
 

Hi again

I tried one more time this morning, but the result is the same. First 
time I used 'make -j 2', but today I didn't, but no change.

  What are your $PATH and $LFS_TGT settings?

lfs@zepto:/mnt/lfs/sources$ printenv
TERM=xterm
LC_ALL=POSIX
LFS=/mnt/lfs
PATH=/tools/bin:/bin:/usr/bin
PWD=/mnt/lfs/sources
LFS_TGT=i686-lfs-linux-gnu
PS1=${debian_chroot:+($debian_chroot)}\u@\h:\w\$
SHLVL=1
HOME=/home/lfs
_=/usr/bin/printenv
OLDPWD=/mnt/lfs/sources/glibc-build

  What are the contents of /tools/bin and /tools/lib?

lfs@zepto:/mnt/lfs/sources$ ls /tools/bin
i686-lfs-linux-gnu-addr2line   i686-lfs-linux-gnu-gprof
i686-lfs-linux-gnu-ar   i686-lfs-linux-gnu-ld
i686-lfs-linux-gnu-as   i686-lfs-linux-gnu-ld.bfd
i686-lfs-linux-gnu-c++filt i686-lfs-linux-gnu-nm
i686-lfs-linux-gnu-cpp   i686-lfs-linux-gnu-objcopy
i686-lfs-linux-gnu-elfedit i686-lfs-linux-gnu-objdump
i686-lfs-linux-gnu-gcc   i686-lfs-linux-gnu-ranlib
i686-lfs-linux-gnu-gcc-4.7.1   i686-lfs-linux-gnu-readelf
i686-lfs-linux-gnu-gcc-ar  i686-lfs-linux-gnu-size
i686-lfs-linux-gnu-gcc-nm  i686-lfs-linux-gnu-strings
i686-lfs-linux-gnu-gcc-ranlib  i686-lfs-linux-gnu-strip
i686-lfs-linux-gnu-gcov

lfs@zepto:/mnt/lfs/sources$ ls -RF /tools/lib
/tools/lib:
gcc/  libiberty.a

/tools/lib/gcc:
i686-lfs-linux-gnu/

/tools/lib/gcc/i686-lfs-linux-gnu:
4.7.1/

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1:
crtbegin.o   crtend.ocrtprec32.o  include/ libgcc.a  plugin/
crtbeginS.o  crtendS.ocrtprec64.o  include-fixed/  libgcc_eh.a@
crtbeginT.o  crtfastmath.o  crtprec80.o  install-tools/  libgcov.a

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/include:
ammintrin.hf16cintrin.h   mm3dnow.h   stdbool.h  varargs.h
avx2intrin.hfloat.hmm_malloc.h stddef.h   wmmintrin.h
avxintrin.hfma4intrin.h   mmintrin.h  stdfix.h   x86intrin.h
bmi2intrin.hfmaintrin.hnmmintrin.h stdint-gcc.h   xmmintrin.h
bmiintrin.hia32intrin.h   pmmintrin.h stdint.h   xopintrin.h
bmmintrin.himmintrin.hpopcntintrin.h  stdnoreturn.h
cpuid.hiso646.h   smmintrin.h tbmintrin.h
cross-stdarg.hlwpintrin.hstdalign.h  tmmintrin.h
emmintrin.hlzcntintrin.h  stdarg.hunwind.h

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/include-fixed:
READMElimits.h  syslimits.h

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/install-tools:
fixinc_list  gsyslimits.h  include/  macro_list  mkheaders.conf

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/install-tools/include:
READMElimits.h

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/plugin:
gtype.state  include/

/tools/lib/gcc/i686-lfs-linux-gnu/4.7.1/plugin/include:
ada/   gsstruct.defprefix.h
alias.h   gtm-builtins.defpretty-print.h
all-tree.def   gtype-desc.hreal.h
alloc-pool.h   hard-reg-set.hrealmpfr.h
ansidecl.h   hashtab.hreg-notes.def
auto-host.h   highlev-plugin-common.hrtl.def
b-header-vars   hwint.hrtl.h
basic-block.h   incpath.hsafe-ctype.h
bitmap.h   input.hsbitmap.h
builtins.def   insn-constants.hsplay-tree.h
bversion.h   insn-flags.hstatistics.h
c-family/   insn-modes.hsymtab.h
c-tree.h   insn-notes.defsync-builtins.def
cfghooks.h   internal-fn.defsystem.h
cfgloop.h   internal-fn.htarget-hooks-macros.h
cgraph.h   intl.htarget.def
cif-code.def   ipa-prop.htarget.h
config/   ipa-ref-inline.htimevar.def
config.h   ipa-ref.htimevar.h
configargs.h   ipa-reference.htm-preds.h
coretypes.h   ipa-utils.htm.h
cp/   java/tm_p.h
cppdefault.h   langhooks.htoplev.h
cpplib.h   libiberty.htree-check.h
debug.h   line-map.htree-dump.h
defaults.h   machmode.htree-flow-inline.h
diagnostic-core.h  md5.htree-flow.h
diagnostic.def   mode-classes.deftree-inline.h
diagnostic.h   objc/tree-iterator.h
double-int.h   obstack.htree-pass.h
emit-rtl.h   omp-builtins.deftree-pretty-print.h
except.h   options.htree-ssa-alias.h
filenames.h   opts.htree-ssa-operands.h
fixed-value.h   output.htree-ssa-sccvn.h
flag-types.h   params.deftree.def
flags.h   params.htree.h
function.h   plugin-api.htreestruct.def
gcc-plugin.h   plugin-version.hvec.h

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

2012-09-22 Thread Thomas Jensen
Den 22-09-2012 17:09, Ken Moffat skrev:

   Look through config.log in 'view' or 'less'.  Find the error
 message 'linker with -z relro support required', then look at the
 lines before that (perhaps a couple of screens) to see what error
 message was produced, probably by gcc or ld.


Thanks. That helped! Mawk seems to be the problem.

 From config.log:
mawk: conftest.awk: line 16: function strtonum never defined

First google-hit points to:

http://ubuntuforums.org/showthread.php?t=2024428

and last post suggest:

sudo apt-get install gawk

and that solved the problem.

thomas@zepto:~$ mawk -W version
mawk 1.3.3 Nov 1996, Copyright (C) Michael D. Brennan

thomas@zepto:~$ gawk -W version
GNU Awk 3.1.8



-- 
Thomas Jensen
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page


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

2012-09-21 Thread Thomas Jensen
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@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