problems building cross compilers

Rupert Wood me@rupey.net
Thu Jan 3 03:13:00 GMT 2002


Danish Samad wrote:

> Iam facing problems trying to build a cross compiler
> for arm-linux. make exits saying 
> 
> error libgcc1.s: asm/unistd.h no such file or
> directoory 

Presumably you've copied over headers from an arm-linux distribution
using '--with-headers'. Most GNU/Linux distributions use symbolic links
into the kernel sources which '--with-headers' doesn't copy correctly.
(Alternatively you may have built your own sys-includes for the cross
compile and forgotten the two directories from the kernel sources).

Make sure that <prefix>/arm-linux/sys-include/asm and -/linux are
directories or working symbolic links. If not, you need to copy the
relevant directories from the kernel source tree.

Hope that helps,
Rupert.



More information about the Gcc mailing list