Recommended method of building GCC on Solaris

Carl B. Constantine cconstan@csc.UVic.CA
Wed Apr 30 18:12:00 GMT 2003


*On Wed Apr 30, 2003 at 11:32:38AM -0400, Stephen Frost (sfrost@snowman.net) wrote:
> * Carl B. Constantine (cconstan@csc.UVic.CA) wrote:
> > I found that if I eliminated the $CFLAGS and $CPPFLAGS environemnt
> > variables, it compiles on Sparc. But the funny thing is, I can use those
> > variables successfully on Solaris 8 for Intel without problems.
> 
> I'm currently making an attempt to compile gcc as 64bit on Solaris 9.
> Should be fun to see what happens...  I get the impression it's not
> going to pan out in the end. :)
> 
> 	Stephen

I tried that as well. It seems you can't compile gcc itself as a 64bit
app. It includes a file called libelf.h which has this pragma in it:

#if defined(_ILP32) && (_FILE_OFFSET_BITS != 32)
#error "large files are not supported by libelf"
#endif

At least you can't use -D_FILE_OFFSET_BITS = 64 in your CPPFLAGS. This
is really odd because I'm sure I was able to use that on Solaris x86.
*shrug*

-- 
Carl B. Constantine         University of Victoria
Programmer Analyst          http://www.csc.uvic.ca
UNIX System Administrator   Victoria, BC, Canada
cconstan@csc.uvic.ca        ELW A220, 721-8753



More information about the Gcc-help mailing list