This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: building native cross compiler


Michael Zintakis <michael.zintakis@googlemail.com> writes:

>>>> ../../../gcc/libgcc/../libdecnumber/decContext.c:33:43: fatal
>>>> error: string.h: No such file or directory
>>>>     
>>>
>>> The question now is whether you have a C library for your target system.
>>>   
>> Please elaborate Ian - what do you mean?
> Scratch that, do you mean glibc? If so, I just looked at
> http://ftp.gnu.org/gnu/glibc/ and there are various glibc-* files
> there. I take it I only need glibc-2.13 (as this is the latest version
> released) and ignore the rest (like glibc-crypt, glibc-libidn,
> glibc-linuxthreads, glibc-localedata, glibc-ports or do I need these
> as well?). Do I have to compile this separately or do I just drop it
> in the main gcc source tree?

If you are going to build glibc, which is appropriate if you are
targeting a GNU/Linux system, then I strongly recommend that you use the
scripts at http://crosstool.org/ .  Cross-building glibc is more complex
than cross-building gcc.

Ian


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