Hello,
I am new to LFS and linux in general,
But I want to learn and I am applying the LFS book to the letter...
But I have a problem in Chapter 5...
glibc cannot configure.
I have looked at the log file but it only tells the same problem : problem with
init_array/fini_array support.
here is the final piece of the configure command :
...
*** WARNING: You should not compile GNU libc without versioning. Not using
*** versioning will introduce incompatibilities so that old binaries
*** will not run anymore.
*** For versioning you need recent binutils (binutils-2.8.1.0.23 or newer).
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... no
configure: error: Need linker with .init_array/.fini_array support.
here is the final piece of the log file :
configure:5177: checking for .symver assembler directive
configure:5194: result: yes
configure:5196: checking for ld --version-script
configure:5222: gcc -B/tools/bin/ -g -O2 -shared
-o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
1>&5
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:5225: $? = 1
configure:5240: result: no
configure:5264: checking for .previous assembler directive
configure:5274: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5277: $? = 0
configure:5285: result: yes
configure:5323: checking for .protected and .hidden assembler directive
configure:5335: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5338: $? = 0
configure:5346: result: yes
configure:5359: checking whether __attribute__((visibility())) is supported
configure:5370: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s 1>&5
configure:5373: $? = 0
configure:5384: result: yes
configure:5395: checking for broken __attribute__((visibility()))
configure:5407: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s1>&5
configure:5410: $? = 0
configure:5419: result: no
configure:5429: checking for broken __attribute__((alias()))
configure:5444: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s 1>&5
configure:5447: $? = 0
configure:5457: result: no
configure:5467: checking whether to put _rtld_local into .sdata section
cconfigure:5177: checking for .symver assembler directive
configure:5194: result: yes
configure:5196: checking for ld --version-script
configure:5222: gcc -B/tools/bin/ -g -O2 -shared
-o conftest.so conftest.o
-nostartfiles -nostdlib
-Wl,--version-script,conftest.map
1>&5
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:5225: $? = 1
configure:5240: result: no
configure:5264: checking for .previous assembler directive
configure:5274: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5277: $? = 0
configure:5285: result: yes
configure:5323: checking for .protected and .hidden assembler directive
configure:5335: gcc -B/tools/bin/ -c conftest.s 1>&5
configure:5338: $? = 0
configure:5346: result: yes
configure:5359: checking whether __attribute__((visibility())) is supported
configure:5370: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s 1>&5
configure:5373: $? = 0
configure:5384: result: yes
configure:5395: checking for broken __attribute__((visibility()))
configure:5407: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s1>&5
configure:5410: $? = 0
configure:5419: result: no
configure:5429: checking for broken __attribute__((alias()))
configure:5444: gcc -B/tools/bin/ -Werror -S conftest.c -o conftest.s 1>&5
configure:5447: $? = 0
configure:5457: result: no
configure:5467: checking whether to put _rtld_local into .sdata section
configure:5481: result: no
configure:5491: checking for .preinit_array/.init_array/.fini_array support
configure:5504: gcc -B/tools/bin/ -g -O2 -o conftest conftest.c
-static -nostartfiles -nostdlib 1>&5
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:5507: $? = 1
configure:5520: result: no
configure:5523: error: Need linker with .init_array/.fini_array
support.onfigure:5481: result: no
configure:5491: checking for .preinit_array/.init_array/.fini_array support
configure:5504: gcc -B/tools/bin/ -g -O2 -o conftest conftest.c
-static -nostartfiles -nostdlib 1>&5
/tools/bin/ld: unrecognized option '--hash-style=gnu'
/tools/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure:5507: $? = 1
configure:5520: result: no
configure:5523: error: Need linker with .init_array/.fini_array support.
can anyone help? I don't understand,
I am using LFS 6.3, I've installed binutils, gcc, and the kernel headers
without any major problem,
and I'm using those on the LFS LiveCD, I don't know what's going wrong.
I'm working with Mandriva spring 2008.
Thanks.
_________________________________________________________________
Faites vous de nouveaux amis grâce à l'annuaire des profils Messenger !
http://home.services.spaces.live.com/search/?page=searchresults&ss=true&FormId=AdvPeopleSearch&form=SPXFRM&tp=3&sc=2&pg=0&Search.DisplayName=Nom+public&search.gender=&search.age=&Search.FirstName=Pr%C3%A9nom&Search.LastName=Nom&search.location=Lieu&search.occupation=Profession&search.interests=amis&submit=Rechercher
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page