ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-24 Thread Amadeus
Hello, I'm following LFS-dev and trying to build glibc as per chapter five. After a while of investigating and trying LFS-6.2 instructions, it seems that whatever compiler I use (gcc-4.1.1 is default on FC6) ld is built without the --hash-style option which means glibc won't configure (--hash

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-24 Thread Vladimir A. Pavlov
On Friday 24 November 2006 20:17, Amadeus wrote: > Hello, > > I'm following LFS-dev and trying to build glibc as per chapter five. > After a while of investigating and trying LFS-6.2 instructions, it seems > that whatever compiler I use (gcc-4.1.1 is default on FC6) ld is built > without the --

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-24 Thread Dave Abergel
Hi Amadeus Apparently this has to do with "too new" tools on my host system, FC6, but I am clueless as to how to resolve this. Have you considered using the LiveCD? Dave 8o) -- LFS User #16110 -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-25 Thread Amadeus
Hello, Vladimir A. Pavlov wrote: On Friday 24 November 2006 20:17, Amadeus wrote: I'm following LFS-dev and trying to build glibc as per chapter five. After a while of investigating and trying LFS-6.2 instructions, it seems that whatever compiler I use (gcc-4.1.1 is default on FC6) ld is bu

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-25 Thread Vladimir A. Pavlov
On Saturday 25 November 2006 18:20, Amadeus wrote: > configure:1980: checking whether the C compiler (gcc ) works > configure:1996: gcc -o conftestconftest.c 1>&5 > /home/lfs/binutils/bin/ld: unrecognized option '--hash-style=gnu' > /home/lfs/binutils/bin/ld: use the --help option for usage i

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-25 Thread Greg Schafer
Amadeus wrote: > Thanks for the tip, unfortunately I'm back to the same problem, this > time when compiling binutils-2.17 for the first time as part of Chapter > 5 using my own ld: > > configure:1980: checking whether the C compiler (gcc ) works > configure:1996: gcc -o conftestconftest.c

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-26 Thread Amadeus
Greg Schafer wrote: configure:1980: checking whether the C compiler (gcc ) works configure:1996: gcc -o conftestconftest.c 1>&5 /home/lfs/binutils/bin/ld: unrecognized option '--hash-style=gnu' /home/lfs/binutils/bin/ld: use the --help option for usage information collect2: ld returned 1 ex

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-26 Thread Amadeus
Amadeus wrote: Greg Schafer wrote: configure:1980: checking whether the C compiler (gcc ) works configure:1996: gcc -o conftestconftest.c 1>&5 /home/lfs/binutils/bin/ld: unrecognized option '--hash-style=gnu' /home/lfs/binutils/bin/ld: use the --help option for usage information collect2:

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-26 Thread Bauke Jan Douma
Amadeus wrote on 26-11-06 17:16: Amadeus wrote: Greg Schafer wrote: configure:1980: checking whether the C compiler (gcc ) works configure:1996: gcc -o conftestconftest.c 1>&5 /home/lfs/binutils/bin/ld: unrecognized option '--hash-style=gnu' /home/lfs/binutils/bin/ld: use the --help optio

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-26 Thread Vladimir A. Pavlov
On Sunday 26 November 2006 19:16, Amadeus wrote: > *link: > %{!static:--eh-frame-hdr} -m %(link_emulation) --hash-style=gnu > %{shared:-shared} %{!shared: %{!ibcs: %{!static: > %{rdynamic:-export-dynamic}%{!dynamic-linker:-dynamic-linker > %(dynamic_linker)}}%{static:-stat

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-26 Thread Greg Schafer
Amadeus wrote: >> Greg Schafer wrote: >>> Try starting from scratch, this time compiling Binutils-Pass1 like this: >>> >>> CC="gcc -B/usr/bin/" \ >>> ../binutils-2.17/configure --prefix=/tools --disable-nls >>> >>> and similar for GCC-Pass1. >>> >> Thanks! That worked a treat (specifying CC="g

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-28 Thread Luca
Hello and sorry for auto-introducing me in the thread. In some new systems as Fedora Core 6 gcc passes --hash-style=gnu to the linker, which indeed is called with an option like "--enable-new-ldflags" (which enables new linker flags). The result is a DSO with ".gnu.hash" only so not including the

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-28 Thread Luca
Luca wrote: > Hello and sorry for auto-introducing me in the thread. > > In some new systems as Fedora Core 6 gcc passes --hash-style=gnu to the > linker, which indeed is called with an option like > "--enable-new-ldflags" (which enables new linker flags). > The result is a DSO with ".gnu.hash" onl

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-28 Thread Amadeus
Ok my mistake, after lots of rebuilding I "saw" that the dejagnu "make check" uses g++, which is the host version at this stage as LFS gcc-pass 1 only compiles gcc not g++... To sum up: host gcc (FC6) passes --hash-style=gnu to ld. When building binutils-pass1 this is fine as the host gcc and l

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-28 Thread [EMAIL PROTECTED]
Sorry for replying only now: On Fedora Core 6: Let's take the dummy.c from the Adjusting the Toolchain phase: echo 'main(){}' > dummy.c cc dummy.c [EMAIL PROTECTED] ~]# readelf -l a.out Elf file type is EXEC (Executable file) Entry point 0x8048280 There are 7 program headers, starting at offs

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-28 Thread Luca
Amadeus wrote: > Hi, sorry for the idiot question, but how to pass --hash-style=both? I > tried editing /usr/lib/gcc/i386-redhat-linux/4.1.1/specs but gcc > -dumpspecs still show's hash-style=gnu. > > I'll post back to the list when all is well. > > Thanks > > Amadeus > Sorry if I repost the mail,

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-28 Thread Luca
Just a note: The "-Xlinker" etc... can be passed to gcc, cc etc... however, example, on my lfs, obviously output this: [EMAIL PROTECTED]:~# cc -Wl,--hash-style=both dummy.c /usr/bin/ld: unrecognized option '--hash-style=both' /usr/bin/ld: use the --help option for usage information collect2: ld re

Re: ld built without --hash-style, Ch5, Fedora Core 6 -> glibc config failure

2006-11-29 Thread Luca
Luca wrote: > Just a note: > > The "-Xlinker" etc... can be passed to gcc, cc etc... however, example, > on my lfs, obviously output this: > [EMAIL PROTECTED]:~# cc -Wl,--hash-style=both dummy.c > /usr/bin/ld: unrecognized option '--hash-style=both' > /usr/bin/ld: use the --help option for usage in