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
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 --
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/
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
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
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
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
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:
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
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
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
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
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
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
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
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,
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
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
18 matches
Mail list logo