[HPADM] SUMMARY INSTALLING GCC 3.3 at HP-UX 11.11

From: Ernesto Freyre Ramírez (efreyre@isp.qnet.com.pe)
Date: Fri Jul 11 2003 - 12:51:42 EDT


Finally I have installed gcc 3.3 from source. this was following the steps:

1.Patch your linker (ld) with the PHSS_26560 patch from HP (this requires reboot), this is very important, else nothing will work fine!!!

2.Download , gunzip and untar the gcc 3.3 from

http://www.cmve.net/~merijn/gcc-3.3-32-11.00-hppa2.0.tbz

This is a binary that will be for building gcc 3.3 and binutils from scratch

3. Get the source of gcc (from gcc.gnu.org) binutils. I used binutils-2.14, this binutils also requires bison and flex.

4. gcc obtained at the 2 step. should be placed at a dierctory such as:

/usr/local/pa20_32/bin/gcc

if you untar it at other place ,you can create a symbolic link to the above.

and this must be accessible from your PATH

5. now you must test that gcc -v gives you a reply as:

# gcc -v
Reading specs from /usr/local/pa20_32/lib/gcc-lib/hppa2.0w-hp-hpux11.11/3.3/specs
Configured with: ../src/configure --enable-languages=c,c++ --prefix=/usr/local/pa20_32 --with-local-prefix=/usr/local/pa20_32 --with-gnu-as --with-as=/usr/local/pa20_32/bin/as --with-ld=/usr/ccs/bin/ld --disable-shared --disable-nls
Thread model: single
gcc version 3.3

This means your gcc binary is accessible and gives important details that will be useful later.

6. Install bison and flex if them don´t are already installed.

7.Install binutils.

8.Follow the steps indicated at your gcc 3.3 source (downloaded from gcc.gnu.org)
When you attempt install gcc 3.3 following these indicate steps at documentation from gcc source, you could obtain
a message related to floatformat.c, I don´t remember exactly this message . But this was fixed adding

#include <sys/types.h> to floatformat.h and fixes this.

9.you can use the same flags shown at step 5 for configure your gcc source.

10. I used gmake for gmake boostrap and gmake install.

11. Finally I get gcc 3.3 from source is installs at my HP.

Thank you all the collaborations!!!!.

PS. Remember that binutils default installation is /usr/local/bin, so be aware you must be accessible the installed software here from your PATH, or create symbolic links to them.

Ernesto Freyre
Área de Operaciones
Qnet - Servicios Internet
Telf. 241-4122 anexos 2245/2244
www.qnet.com.pe

--
             ---> Please post QUESTIONS and SUMMARIES only!! <---
        To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl
       Name: hpux-admin@dutchworks.nl     Owner: owner-hpux-admin@dutchworks.nl
 
 Archives:  ftp.dutchworks.nl:/pub/digests/hpux-admin       (FTP, browse only)
            http://www.dutchworks.nl/htbin/hpsysadmin   (Web, browse & search)


This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:31 EDT