Compiling GNU-CC on HP 10.2
The following message was posted to the HP System Administrators
mailing list:
From: houghton@jrc.nl
Date: Mon, 17 Mar 1997 13:58:17 +0100
Subject: [HPADM] SUMMARY gcc 2.7.2.2 on HP-UX 10.20
Dear all,
...
Well after a few days of head scratching and email writing I finally
managed to complete the installation of gcc 2.7.2.2. It is simplicity
itself (if you know what you are doing!)
1. Install GNU binutils-2.7
2. Install GNU sed-2.05 (HP sed
doesn't work properly)
3. Install gcc with the following commands:-
make LANGUAGES="c"
make stage1
make CC="stage1/xgcc -Bstage1/" CFLAGS=" -02"
make stage2
make CC="stage2/xgcc -Bstage2/" CFLAGS=" -02"
make compare
Now comes the clever bit because you think that you are home and dry, well
think again.
Unless you have GNU textinfo* installed you will get an error and (in my
case) everything will be installed manpages, g++ etc. but no gcc.
So you must type:-
make -k install CC="stage2/xgcc -Bstage2/" CFLAGS=" -02"
The -k option skips over the "makeinfo" and "text2dvi" errors and complete
the installation of gcc.
THE END :-)
Fax ++31 224 561568
Phone ++31 224 565425
Email houghton@jrc.nl