2.95.2 compile problems with egcs-2.91.66, sparc-solaris2.7

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Fri Mar 24 23:10:00 GMT 2000


> When trying to compile gcc-2.95.2 with egcs-2.91.66 on an Ultra 10 running
> Solaris 7, I get the following error:

Thanks for your bug report. I'm surprised that it hadn't been reported
before, so something must have gone wrong on your system.

Apparently, the problem is that both cexp.c and ansidecl.h define a
macro AND, and in a different way. This is not supposed to happen; the
definition in cexp.c is supposed to be the only one in this context.

If you merely want to get a working compiler, I recommend you download
a binary from sunfreeware.com. If you want to manage to compile your
sources, you could try to rename AND and SIGNED to GCCAND and
GCCSIGNED throughout cexp.c. If you want to investigate the problem,
it would be good to know under what circumstances ansidecl.h of
Solaris defines those macros.

Regards,
Martin


More information about the Gcc-bugs mailing list