Operating System - HP-UX
1834512 Members
2052 Online
110068 Solutions
New Discussion

Trying to compile gcc 3.0.4 in HPUX 11 without success.

 
SOLVED
Go to solution
Fernando C. Jeronymo
Occasional Contributor

Trying to compile gcc 3.0.4 in HPUX 11 without success.

Hi. I did compile the latest binutils () and now I am trying to compile and install gcc version 3.0.4

I do have gcc 3.0.1 in the system, but the Makefile keeps getting cc to compile the sources.

Then, in the end of the compilation, I get this strange error (see below) about the libstdc++-v3... "compile libstdc++-v3... configure: error: please upgrade to GCC 3.0 or above"

Any ideas?


Building:
checking for /home/fjeronym/gnu_hpux/gcc-3.0.4/gcc/xgcc option to produce PIC... -fPIC -DPIC
checking if /home/fjeronym/gnu_hpux/gcc-3.0.4/gcc/xgcc PIC flag -fPIC -DPIC works... no
checking if /home/fjeronym/gnu_hpux/gcc-3.0.4/gcc/xgcc static flag -static works... no
finding the maximum length of command line arguments... (cached) 393217
checking if /home/fjeronym/gnu_hpux/gcc-3.0.4/gcc/xgcc supports -c -o file.o... (cached) yes
checking if /home/fjeronym/gnu_hpux/gcc-3.0.4/gcc/xgcc supports -fno-rtti -fno-exceptions ... no
checking whether the linker (/usr/ccs/bin/ld) supports shared libraries...
checking how to hardcode library paths into programs... relink
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... hpux11.00 dld.sl
checking command to parse /usr/ccs/bin/nm output... failed
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
appending configuration tag "CXX" to libtool
checking for GNU make... gmake
checking for g++ that will successfully compile libstdc++-v3... configure: error: please upgrade to GCC 3.0 or above
gmake[1]: *** [configure-target-libstdc++-v3] Error 1
gmake[1]: Leaving directory `/tmp_mnt/home/fjeronym/gnu_hpux/gcc-3.0.4'
gmake: *** [bootstrap] Error 2


# g++ -v
Reading specs from /tools/gcc/3.0.1//lib/gcc-lib/hppa2.0w-hp-hpux11.00/3.0.1/specs
Configured with: ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure : (reconfigured) ./configure
Thread model: single
gcc version 3.0.1
What we do in life echoes in eternity
6 REPLIES 6
H.Merijn Brand (procura
Honored Contributor

Re: Trying to compile gcc 3.0.4 in HPUX 11 without success.

MANOJ SRIVASTAVA
Honored Contributor

Re: Trying to compile gcc 3.0.4 in HPUX 11 without success.

Hi Fernando

It looks cc is in your default path , do a which cc and find where it is located and try to move it from there temp when the compile is going on. May be this will help .


Manoj Srivastava
Fernando C. Jeronymo
Occasional Contributor

Re: Trying to compile gcc 3.0.4 in HPUX 11 without success.

 
What we do in life echoes in eternity
Fernando C. Jeronymo
Occasional Contributor

Re: Trying to compile gcc 3.0.4 in HPUX 11 without success.

I tried to make it compile with gcc 3.0.1 and I get this error now:

/gcc-3.0.4$ gmake bootstrap
/gcc-3.0.4/libiberty
gmake[1]: Entering directory `/gcc-3.0.4/libiberty'
if [ x"" != x ]; then gcc -c -DHAVE_CONFIG_H -I. -I./../include argv.c -o pic/argv.o; else true; fi
gcc -c -DHAVE_CONFIG_H -I. -I./../include argv.c
as: warning 2: Unknown option "--traditional-format" ignored.
as: "/var/tmp/cc1Z5vCe.s", line 18: error 1052: Directive name not recognized - NSUBSPA
as: "/var/tmp/cc1Z5vCe.s", line 145: error 1052: Directive name not recognized - NSUBSPA
as: "/var/tmp/cc1Z5vCe.s", line 191: error 1052: Directive name not recognized - NSUBSPA
gmake[1]: *** [argv.o] Error 1
gmake[1]: Leaving directory `/gcc-3.0.4/libiberty'
gmake: *** [all-libiberty] Error 2
/gcc-3.0.4$ which as
/binutils/bin/as
What we do in life echoes in eternity
H.Merijn Brand (procura
Honored Contributor
Solution

Re: Trying to compile gcc 3.0.4 in HPUX 11 without success.

Lot's of ideas, but it took me two weeks to build gcc-3.0.4/64 *with* inside help from the gcc porters themselves!

If you are not a masochist, please go for the precompiled packages. The porting centre has just upgraded to 3.0.4

http://forums.itrc.hp.com/cm/QuestionAnswer/ 1,,0x06449f5b3d4fd61190030090279cd0f9,00.html
http://h21007.www2.hp.com/dspp/tech/ tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html
http://hpux.tn.tudelft.nl/hppd/hpux/Gnu/gcc-3.0.4/ (32 bit)
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: Trying to compile gcc 3.0.4 in HPUX 11 without success.

I managed to build gcc (both c and c++ !) from the latest snapshot (3.1 20020506) in 64bit mode

If someone can supply me with a writable ftp with enough disk space, I can make it available (time and network access permitting)

unpacked 75 MB
tar/gzip 25 MB
tar/bzip 18 MB

This gcc version has some changes that may affect some build processes. I've changed the perl configuration, and bleading edge perl now builds out of the box using this gcc :) and passes all tests
Enjoy, Have FUN! H.Merijn