This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Problems running GCC on Solaris (include files)


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.


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