Aw: Re: Aw: Re: How to compile gcc toolchain with special sysroot correctly?

Andrew Haley aph@redhat.com
Wed Nov 27 13:15:00 GMT 2013


On 11/27/2013 11:35 AM, johannes89@mailueberfall.de wrote:
>>> Ok, but the problem occured when I tried to compile glibc (it was missing it when I configured it). Do you mean I require an old glibc to compile a new one?
>>
>> Yes, you do, because the configure tests are trying to link a program.
>> That isn't going to work unless there is a C library.
> 
> Is the glibc only needed for the configure tests, but not for the
> make call? 

Hard to say.  It doesn't really matter, because the resulting libc
will be standalone.

> I understand that a glibc might be needed to test the
> compiler's feature, but a libc which is linked to another libc
> sounds a bit strange. I guess glibc should be able to build crti.o
> without linking to another crti.o?

Yes.

> Also, can you please explain a good way to solve the problem? Would
> you soft-link the missing files, or should I set a variable like
> LD_LIBRARY_PATH? Sorry - I am new to this.

I'd populate the sysroot with the files.

Andrew.



More information about the Gcc-help mailing list