1826464 Members
3148 Online
109692 Solutions
New Discussion

GCC for HPUX 11.00

 
SOLVED
Go to solution
Pamela Hammitt
Advisor

GCC for HPUX 11.00

I am working on a project that I have to build gcc 2.8.1. I installed a gcc binary that was built I think on a 700 workstation. My server of course is an 800. The gcc will build on the workstation but I can't get the compiler to configure on the server. Looking at the workstation build log, it's making a system, target and host for hppa1.1-hp-hpux11.00. When I try to configure for the server it is making system hppa1.0-hp-hpux1.00. When it tests to see if the gcc compiler is working, it says no and errors out. Is this due to architecture differences? If so, where can I find a gcc binary for HPUX 11.00 built on a server?

Thanks

Pam
3 REPLIES 3
Steven E. Protter
Exalted Contributor
Solution

Re: GCC for HPUX 11.00

Should not make a difference, server versus workstation.

Binary locations:

http://www.hpux.ws/merijn

One possible source.

Another
http://hpux.connect.org.uk/

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HPUX 11.00

hppa1.0-hp-hpux1.00 <- That's a typo I hope

anyway, presuming it said hppa1.0-hp-hpux11.00, it tells you that you have a PA-RISC 1.0 CPU, which is unbeleivingly old.

Your post does not tell me what type of 800 server you have, and what CPU it should run on.

I have several binary builds available, amongst which 2.95.3 for HP-UX 10.20 pa-1.1

So let us assume you indeed have a HP-UX 11.00 system with a PA-RISC-1.0 CPU, then

--8<---
#!/usr/bin/sh

export LD_PXDB=/usr/bin/true

export CONFIG_SITE=
export CC="gcc -B/usr/local/pa10_32/bin"
export PATH=.:/usr/local/pa10_32/bin:/pro/local/bin
export PATH=$PATH"":/usr/bin:/opt/ansic/bin:/usr/ccs/bin:/opt/langtools/bin
export PATH=$PATH"":/opt/imake/bin

rm -rf obj
mkdir obj
cd obj
../src/configure \
--enable-languages=c,c++ \
--prefix=/usr/local/pa10_32 --with-local-prefix=/usr/local/pa10_32 \
--with-gnu-as --with-as=/usr/local/pa10_32/bin/as \
--with-ld=/usr/ccs/bin/ld \
--disable-shared \
--disable-nls \
--host=hppa1.0-hp-hpux11.00

make bootstrap-lean

make install
-->8---

Above snippet however assumes you already have binutils installed on /usr/local/pa10_32

pa10_32 is the way I use to code 32bit objects for PA_RISC-1.0. My other builds would go to pa11_32, pa20_32, and pa20_64.

HTH, Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HPUX 11.00

Some additional info

Feeling a little bit masochistic, I just fetched ftp://ftp.nluug.nl/mirror/languages/gcc/old-releases/gcc-2/gcc-2.8.1.tar.bz2 and tried to compile it on HP-UX 11.00 using gcc-4.0.0 (which failed), and with HP C-ANSi-C (which also failed)

2.8.1 does not know about bootstrap-lean

My advice: don't even try!

2.95.3 wasn't that much pain to do, and more recent (and far better) versions are widely available. gcc-2.8.1 is NOT worth sleepless nights.

Enjoy, Have FUN! H.Merijn
Enjoy, Have FUN! H.Merijn