How to build a full compiler on Solaris 9
Eric Botcazou
ebotcazou@libertysurf.fr
Wed Apr 7 06:31:00 GMT 2004
> I wasn't sure where to send something like this so I'll just fire it off
> into wherever this email address goes. After a lot of hair pulling I
> finally have a working version of 3.3.3 for Solaris 9 with all available
> compilers available. (Including GNAT) I kept a record of everything I
> had to do and I figured it might be useful to others. It's attached to
> this email.
Note that GNAT doesn't (officially) support multilib-ed configurations.
# /usr/ccs/bin/make should be renamed until the 1st build is over so GNU make
in /usr/local/bin is used
This is dangerous. The standard way on non-GNU systems is to name GNU make
'gmake' and invoke it whenever 'make' should be invoked.
# /root/build/gcc-3.3.3/libjava/java/net/natInetAddress.cc needs: #define
MAXHOSTNAMELEN 256
It shouldn't, which suggests there is a configuration problem here. Could
you post the config.log from the libjava directory?
You should need neither to run 'make gnatlib_and_tools' twice, nor to
manually compile some files in ada/rts. Looks like some dependency problems
here.
# Install the compiler (Run weird 'make install' bug stuff 1st)
mkdir libf2c
ln -s ../install-sh
make install
You probably didn't configure with an absolute path.
Be sure to strictly follow the procedure described at:
http://gcc.gnu.org/install/specific.html#*-*-solaris2*
In particular, check the /usr/xpg4/bin vs /usr/bin stuff.
--
Eric Botcazou
More information about the Gcc-bugs
mailing list