This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: Testing a glibc build
- From: "Carlos O'Donell" <carlos at redhat dot com>
- To: Christer Solskogen <christer dot solskogen at gmail dot com>
- Cc: "libc-help at sourceware dot org" <libc-help at sourceware dot org>
- Date: Wed, 12 Jun 2013 16:06:43 -0400
- Subject: Re: Testing a glibc build
- References: <kp7qui$jb6$1 at ger dot gmane dot org> <51B7880D dot 7040007 at redhat dot com> <kp82j7$782$1 at ger dot gmane dot org> <51B79C29 dot 4080406 at redhat dot com> <CAMVU60bpKA4UNUTFP4hDk58nt3kKQ136rMjTjX69UeC=8PY3QA at mail dot gmail dot com> <51B8886A dot 6010704 at redhat dot com> <CAMVU60aQXmCf0kL1_c1Vy4JQZufUWUs8jms+-kbC+99gNmu==Q at mail dot gmail dot com>
On 06/12/2013 11:02 AM, Christer Solskogen wrote:
> On Wed, Jun 12, 2013 at 4:40 PM, Carlos O'Donell <carlos@redhat.com> wrote:
>
>> If you used exactly the same --prefix and ${SYSROOT} and it still fails
>> then we need detailed instructions from you e.g. step by step.
>>
>
> I think I did, but probably not clearly.
>
> SYSROOT=$HOME/glibc
>
> Compile glibc:
> configure --prefix=/usr
> make && make install DESTDIR=${SYSROOT}
>
> export CC="gcc --sysroot=${SYSROOT} -Wl,-rpath=${SYSROOT}/lib
> -Wl,--dynamic-linker=${SYSROOT}/lib/ld-linux-x86-64.so.2"
> $CC hello.c hello
> ./hello (works)
>
> Confgure, make and make install glibc again with the same instructions as above.
> run ./hello again.
Works fine for me, so it must be a difference in the build tools or the
sysroot setup.
I'm not saying I don't believe you, but I must be doing something different.
I'm using upstream binutils compiled with --with-sysroot=${SYSROOT}.
Then I use the same binutils in the link.
Cheers,
Carlos.