This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Problems running GCC on Solaris (include files)
- To: gcc-help at gcc dot gnu dot org
- Subject: Problems running GCC on Solaris (include files)
- From: Max Heffler <max at texsys dot com>
- Date: Tue, 13 Nov 2001 14:43:14 -0800 (PST)
I have built GCC on Solaris 2.6. I can build and run
hello.c, but if I add any system include file
(types.h, stdio.h), I get storage class messages
followed by parse errors (probably from B_FALSE
undeclared) and the program no longer builds. I had
this same behavior using the pre-built binaries and
Solaris 8. The stage compares succeeded without
error. I used the SparcWorks C compiler and built
with prefix=/apps/gnu.
I can run a compile in the object tree's gcc
directory successfully; however, attempting to use
the same compiler flags does not work with hello.c if
I have a single <sys/types.h> or <stdio.h>.
Any ideas? Thanks in advance.
On another note, after configuring, I had to make a
few changes to complete the build. There were
complaints about "inline" so I changed the
definitions to "#define inline /**/" since no other
options seemed to satisfy the compiler. There were
also some incorrect macros for some lwp varilables I
had to comment out.