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

See the CrossGCC FAQ for lots more infromation.


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

Re: Another problem to build GCC


>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


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