On 1.12.2014 17:08, ctw wrote:
../glibc-2.20/configure \
--prefix=/tools \
--host=$LFS_TGT \
--build=$(../glibc-2.20/scripts/config.guess) \
--disable-profile \
--enable-kernel=2.6.32 \
--with-headers=/tools/include \
libc_cv_forced_unwind=yes \
libc_cv_ctors_header=yes \
libc_cv_c_cleanup=yes

the output is :
checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.


the message in config.log maybe help :



configure:5471: checking for .set assembler directive
/mnt/lfs/tools/bin/../lib/gcc/x86_64-lfs-linux-gnu/4.9.1/../../../../x86_64-lfs-linux-gnu/bin/ld:
this linker was not configured to use sysroots
collect2: error: ld returned 1 exit status


This seems to be the problem. Binutils wasn't built with --with-sysroot or was built with an empty --with-sysroot configure variable. The second is more common, given that LFS variable might not have been set. My suggestion is to wipe /tools and start over, you didn't make it very far anyways. You could also try and just recompile binutils pass1, but I still suggest starting over because if the env var was missing, your compiler might be screwed too.

thanks in advance

i am new to lfs. and i have ask google, but the answer is not useful

(opensuse 13.2)‍


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

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to