public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* GCC-3.4.2 on Solaris9 install problem - No C++ headers
@ 2004-11-04 23:01 Tobias Odensten
  0 siblings, 0 replies; only message in thread
From: Tobias Odensten @ 2004-11-04 23:01 UTC (permalink / raw)
  To: gcc-help

Hi!
Im experiencing problems when trying to install gcc-3.4.2 on Solaris 9. 
Apparently the c++ headers wont install properly. Im trying to build a 
compiler that supports c++ and ada. Please see below.

My system is a Sun Ultra30 with 128M mem and Solaris 9.

I download and install (from www.blastwave.org) the packages:
    common-1.3.3-SunOS5.8-sparc-CSW.pkg,
    gcc3rt-3.3.3,REV=2004.04.23-SunOS5.8-sparc-CSW.pkg and
    gcc3-3.3.3,REV=2004.03.22-SunOS5.8-sparc-CSW.pkg.
These packages install a complete gcc-3.3.3 with ada support.

Then I install: gnu-coreutils, gnu-tar, gnu-make, gnu-bison, gnu-flex and 
gnu-m4.

I download gcc-3.4.2.tar.bz2 from gcc.gnu.org and after unpacking, the 
source-files goes into /home/tobod/gcc-3.4.2 and the builddir 
/home/tobod/gcc-3.4.2-build is created.

In order to simplify things and save me some typing, I write a little 
install script (build_gcc-3.4.2-tmp):
--- start ---
umask 002
cd /home/tobod/gcc-3.4.2-build
# Build a gcc with only c++ and ada support, in /var/tmp/gcc:
env CFLAGS=-O2 CXXFLAGS=-O2 OPTIMIZE=-O2 STAGE1_CFLAGS=-O2 BOOT_CFLAGS=-O2 
LDFLAGS=-s 
/home/tobod/gcc-3.4.2/configure --prefix=/var/tmp/gcc --disable-shared --enable-languages=c,c++,ada 
 --with-pic
# Bootstrap the gcc.
gmake CFLAGS=-O2 CXXFLAGS=-O2 OPTIMIZE=-O2 STAGE1_CFLAGS=-O2 BOOT_CFLAGS=-O2 
LDFLAGS=-s bootstrap
# Build the gnatlib and tools:
cd /home/tobod/gcc-3.4.2-build/gcc
gmake CFLAGS=-O2 CXXFLAGS=-O2 OPTIMIZE=-O2 STAGE1_CFLAGS=-O2 BOOT_CFLAGS=-O2 
LDFLAGS=-s gnatlib_and_tools
# Install the gcc:
cd /home/tobod/gcc-3.4.2-build/gcc
gmake CFLAGS=-O2 CXXFLAGS=-O2 OPTIMIZE=-O2 STAGE1_CFLAGS=-O2 BOOT_CFLAGS=-O2 
LDFLAGS=-s install
--- end ---

To set some env variables I also write a script (set_env_tmp) containing env 
variable declarations:
--- start --
setenv PATH 
/opt/csw/gcc3/bin:/var/tmp/coreutils/bin:/var/tmp/gbin:/bin:/usr/bin:/usr/ccs/bin:/usr/sbin:/usr/local/bin:.
setenv MAKE gmake
setenv CC gcc
--- end ---

Then I do "source set_env_tmp and "sh build_gcc-3.4.2-tmp".

When the install script terminates, all applications in /var/tmp/gcc/bin 
seem to be OK (they are there!) BUT /var/tmp/gcc/include is completely 
empty! Some posts mention that the env variable CONFIG_SHELL should be set 
to /bin/ksh for the configure stage to work better, but all this seems to do 
is that some of the gnat-applications are missing after "install" has 
completed. Why oh why?? :(. Furthermore I tried to run the script with 
/bin/xpg4/sh instead of /bin/sh but it didnt do any good.

Questions: What target in /home/tobod/gcc-3.4.2-build/gcc/Makefile is 
responsible for the installation of the c++ headers? What did I do wrong!?

If someone out there could shed some light on this very extremely irritating 
mystery I would be very grateful.

/Tobias O 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-04 23:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-04 23:01 GCC-3.4.2 on Solaris9 install problem - No C++ headers Tobias Odensten

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).