This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

RE: FW: (arm) cross compiler under Cygwin



Hello;

> * unpack (binutils-20001221-1-src.tar.gz)
> * /usr/local/bin/binutils-20001221-1=>$ ./configure 
> --target=arm-strongarm-aout
> * make all install
> * /gcc-2.95.2-6=>$ ./make clean
> * ./configure --target=arm-strongarm-aout
> * make LANGUAGES= "c++"

You probably want to add a --prefix too

> ./libgcc2.c:41: stdlib.h: No such file or directory
> ./libgcc2.c:42: unistd.h: No such file or directory
> 
> what can i do, please ?

Get the maintainter of the FAQ to add that one in order
to make the world a better place :)

Otherwise: your compiler need to know a few things
about your target. You'll need the standard libraries
and standard headers. If you want to compile for Linux
for example, you'd add linux/include/linux and linux/include/asm
to $prefix/$target/include
(some will argue that you can add them using 
--with-headers=~/linux/include and others will argue they are
wrong. See the archive of the list for many interesting
discussion on the subject).

If you want to compile with newlib, see the FAQ which I
believe has some info on that.

Cheers,
Y.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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