This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Testing a glibc build


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]