public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "E. Stuart Hicks" <ehicks@binarymagi.com>
To: gcc-bugs@gcc.gnu.org
Subject: How to build a full compiler on Solaris 9
Date: Tue, 06 Apr 2004 21:12:00 -0000	[thread overview]
Message-ID: <024301c41c1b$ce48d1b0$0200a8c0@winxpdesktop> (raw)

[-- 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

             reply	other threads:[~2004-04-06 21:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-06 21:12 E. Stuart Hicks [this message]
2004-04-07  6:31 ` Eric Botcazou
2004-04-08  9:14 ` Christian Ehrhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='024301c41c1b$ce48d1b0$0200a8c0@winxpdesktop' \
    --to=ehicks@binarymagi.com \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).