GCC 2.95 and Solaris 2.7 (using GCC 2.72 built on solaris 2.5) problem

holme@pos.megalink.net holme@pos.megalink.net
Fri Feb 18 15:37:00 GMT 2000


GCC guru:

Last week I was having problems installing gcc2.95 on my solaris 2.7 release.
After many hours of effort, I found out that the gcc.2.7.2 include files built using
a previous relaease of Solaris (2.5) were the real problem. These include files did
not contain new information that had been added and the mixture invoked by the build
was incompatible.

So, I renamed the include directory and made an empty one for the gcc compiler's
override includes. Things were somewhat better - I got farther. Then I got the below
error - after some more brain-storming, I found out that I was compiling as 
ANSI_PROTOTYPES which should be fine and I was including varargs.h not stdargs.h.
However I am not baffled - I think I see `__builtin_va_alist' being defined, but
am not sure.

I have gone back and re-configured without the gcc include dir in place to no avail.
I have gone back to 2.7.2 and tried to recompile. The results are the same.

I have reviewed the install notes and errata - I see nothing alluding to my doing
anything wrong. I do NOT have a cc compiler, only the gcc.2.7.2 I made with solaris
2.5 on a classic (this is an ultra sparc - 64 bit machine).

So two questions:

  1) Was I right to rename (and make a new empty) gcc include directory before installing?
		(if so, consider adding to the release notes)

	/usr/local/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.2/include

  2) Why am I having a problem with varargs.h? - I would assume that a Solaris 2.7
     GCC 2.95 must have been built by someone by now.

Thanking you in advance for your help.

ray a holme (rah)





More information about the Gcc-help mailing list