public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* How to build a full compiler on Solaris 9
@ 2004-04-06 21:12 E. Stuart Hicks
2004-04-07 6:31 ` Eric Botcazou
2004-04-08 9:14 ` Christian Ehrhardt
0 siblings, 2 replies; 3+ messages in thread
From: E. Stuart Hicks @ 2004-04-06 21:12 UTC (permalink / raw)
To: gcc-bugs
[-- Attachment #1: Type: text/plain, Size: 377 bytes --]
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.
Stu
[-- Attachment #2: build-gcc.txt --]
[-- Type: text/plain, Size: 7212 bytes --]
# Build directory is /root/build/gcc-3.3.3/gcc-build
# A working gnat compiler exists from a binary package in /root/build/gnatgcc
# /usr/ccs/bin/make should be renamed until the 1st build is over so GNU make in /usr/local/bin is used
# /root/build/gcc-3.3.3/libjava/java/net/natInetAddress.cc needs: #define MAXHOSTNAMELEN 256
# Environmental requirements
export ORIGPATH=$PATH
export PATH=/root/build/gnatgcc/bin:/usr/ccs/bin:$PATH
export CONFIG_SHELL=/bin/ksh
# Build and install a 32-bit compiler
cd ../gcc/ada
touch treeprs.ads [es]info.h nmake.ad[bs]
cd ../../gcc-build
../configure \
--prefix=/root/build/gnatgcc3-32bit \
--disable-nls \
--enable-languages=c,c++,ada
make bootstrap
cd gcc
make gnatlib_and_tools
cd ada/rts
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. adaint.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. argv.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. cio.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. cstreams.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. exit.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. raise.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. init.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. adafinal.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. tracebak.c
cd ../..
make gnatlib_and_tools
cd ..
make install
# Clean out the build directory and update the environment
rm -rf *
export PATH=/root/build/gnatgcc3-32bit/bin:/usr/ccs/bin:$ORIGPATH
# Build and install a 64-bit capable cross compiler
cd ../gcc/ada
touch treeprs.ads [es]info.h nmake.ad[bs]
cd ../../gcc-build
../configure \
--enable-languages=all \
--disable-nls \
--with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as \
sparcv9-sun-solaris2
make
cd gcc
make cross-gnattools
make gnatlib
cd ada/rts
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. adaint.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. argv.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. cio.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. cstreams.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. exit.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. raise.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. init.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. adafinal.c
../../xgcc -B../../ -c -DIN_GCC `echo -g -O2 -fPIC -fexceptions -DIN_RTS |sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -I. -I.. -I../.. -I/root/build/gcc-3.3.3/gcc/ada -I/root/build/gcc-3.3.3/gcc/ada/.. -I/root/build/gcc-3.3.3/gcc/ada/../config -I/root/build/gcc-3.3.3/gcc/ada/../../include -I./../.. tracebak.c
cd ../..
make gnatlib
cd ..
make check
# Install the compiler (Run weird 'make install' bug stuff 1st)
mkdir libf2c
ln -s ../install-sh
make install
# Clean up
rm -rf * /root/build/gnatgcc3-32bit
export PATH=$ORIGPATH
unset ORIGPATH
unset CONFIG_SHELL
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to build a full compiler on Solaris 9
2004-04-06 21:12 How to build a full compiler on Solaris 9 E. Stuart Hicks
@ 2004-04-07 6:31 ` Eric Botcazou
2004-04-08 9:14 ` Christian Ehrhardt
1 sibling, 0 replies; 3+ messages in thread
From: Eric Botcazou @ 2004-04-07 6:31 UTC (permalink / raw)
To: E. Stuart Hicks; +Cc: gcc-bugs
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: How to build a full compiler on Solaris 9
2004-04-06 21:12 How to build a full compiler on Solaris 9 E. Stuart Hicks
2004-04-07 6:31 ` Eric Botcazou
@ 2004-04-08 9:14 ` Christian Ehrhardt
1 sibling, 0 replies; 3+ messages in thread
From: Christian Ehrhardt @ 2004-04-08 9:14 UTC (permalink / raw)
To: E. Stuart Hicks; +Cc: gcc-bugs
On Tue, Apr 06, 2004 at 05:12:01PM -0400, E. Stuart Hicks wrote:
> # Install the compiler (Run weird 'make install' bug stuff 1st)
> [ .. ]
> ln -s ../install-sh
Try to set CONFIG_SHELL to /bin/ksh somewhere earlier instead.
regards Christian
--
THAT'S ALL FOLKS!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-08 9:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-06 21:12 How to build a full compiler on Solaris 9 E. Stuart Hicks
2004-04-07 6:31 ` Eric Botcazou
2004-04-08 9:14 ` Christian Ehrhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).