Another problem to build GCC
Michael K. Elwood
mkelwood@inconnect.com
Wed Aug 9 07:21:00 GMT 2000
>I'm kinda newbie for Linux and I have to build a cross compiler. My
>target is: sparc-sun-solaris2. I had the same trouble as Douglas
>(unistd.h and stdlib.h not found). Thanx to João I fixed that problem:
>
>$ cd <gcc-src-dir>/gcc-2.95.2
>$ ln -s <newlib-src-dir>/newlib-1.8.2/newlib newlib
>$ ln -s <newlib-src-dir>/newlib-1.8.2/libgloss libgloss
>
>But I get another one (pthread.h is not found). I read FAQ before
>posting here but I didn't find a solution. I really don't understand why
>it doesn't work because I followed step by step the FAQ
>( http://www.objsw.com ). The OS is Mandrake7.1, the sources directory is
>/usr/srccompiler and the target directory is /usr/ccompiler).
You really should be using the headers from solaris, not the newlib headers.
Newlib is mainly used for embedded systems without a full environment;
Solaris certainly doesn't qualify as this type of system. There is a nice
discussion about this in the gcc manual.
Best regards,
MKE
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
More information about the crossgcc
mailing list