1833777 Members
2194 Online
110063 Solutions
New Discussion

GCC for HP-UX 11.20

 
Steven Sim Kok Leong
Honored Contributor

GCC for HP-UX 11.20

Hi,

Any of you know where I can download the gcc depot for HP-UX 11.20? So far, I have only found gcc depot for HP-UX 11.11 but not HP-UX 11.20.

Compiling the gcc source with the default HP-UX CC compiler breaks miserably.

Thanks in advance. Regards.

Steven Sim Kok Leong
8 REPLIES 8
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HP-UX 11.20

Quick question in advance: 32 or 64 bit gcc? (This is an important question!)

http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html
http://hpux.cs.utah.edu/hppd/hpux/Gnu/gcc-3.0.4/

But if you'd like to build it yourself, modify the next sequence to your needs:

a5:/pro/3gl/GNU/gcc 103 > cat Conf
#!/usr/bin/sh

export CONFIG_SITE=
export CC=cc
export PATH=.:/u/usr/merijn/bin/private:/u/usr/merijn/bin:/pro/local/bin:/pro/bin:/usr/hosts:/usr/bin:/usr/dt/bin:/usr/bin/X11:/opt/ansic/bin:/usr/sbin:/etc:/sbin:/usr/lib:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/contrib/bin/X11:/opt/java/bin:/opt/hparray/bin:/opt/resmon/bin:/opt/pred/bin:/opt/langtools/bin:/opt/perf/bin:/opt/imake/bin:/opt/hpnp/bin:/opt/xftp/bin/X11:/usr/sbin/stm/uut/bin/progs:/pro/tu/bin:/pro/local/MySQL/bin:/wrk/GNUpro/bin
rm -rf obj
mkdir obj
cd obj
../src/configure --enable-languages=gcc --prefix=/pro/local --with-local-prefix=/pro/local --without-gnu-as --without-gnu-ld --disable-shared --disable-nls


echo "Changing obj/gcc/Makefile"
echo " ... 'tail +16c' to 'head -c -n4' in compare-lean"
echo " ... add '/pro/local/lib/libgcc.a' to LIBS"
perl -pi -e 'm:^LIBS\s*=:&&s:$: /pro/local/lib/libgcc.a:;s:\btail \+\d+c\b:head -c -n4:g' gcc/Makefile
echo "Done"

echo ""
echo "Now start 'Build'"
a5:/pro/3gl/GNU/gcc 104 > cat Build
#!/usr/bin/sh

export CONFIG_SITE=
export CC=cc
export PATH=.:/u/usr/merijn/bin/private:/u/usr/merijn/bin:/pro/local/bin:/pro/bin:/usr/hosts:/usr/bin:/usr/dt/bin:/usr/bin/X11:/opt/ansic/bin:/usr/sbin:/etc:/sbin:/usr/lib:/usr/ccs/bin:/usr/contrib/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/contrib/bin/X11:/opt/java/bin:/opt/hparray/bin:/opt/resmon/bin:/opt/pred/bin:/opt/langtools/bin:/opt/perf/bin:/opt/imake/bin:/opt/hpnp/bin:/opt/xftp/bin/X11:/usr/sbin/stm/uut/bin/progs:/pro/tu/bin:/pro/local/MySQL/bin:/wrk/GNUpro/bin
cd obj
make CFLAGS='-O -Wa,+DA2.0' LIBCFLAGS='-O2 -Wa,+DA2.0' LIBCXXFLAGS='-O2 -Wa,+DA2.0 -fno-implicit-templates' bootstrap-lean
a5:/pro/3gl/GNU/gcc 105 >

Which worked in a plain run for me for a 32bit gcc-3.0.4

Now working together with the GNU folks on a 64bit build for 3.1
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HP-UX 11.20

******************

I just managed to build gcc-3.1-20020408/64 on HP-UX 11.00 using HP C-ANSI-C for phase 1

******************

I wish I could asign myself points, because I'm now a happy camper :)))))
Enjoy, Have FUN! H.Merijn
Steven Sim Kok Leong
Honored Contributor

Re: GCC for HP-UX 11.20

Hi Procura,

Thanks. I am running HP-UX 11.20 (HP 11i 1.5) IA64 on a HP i2000 workstation and I do not have Ansi-C installed. Thus, I would prefer a downloadable depot.

I have downloaded the depot from your first link. Will know whether that works when I install the depot next week. Will assign scores then.

Regards.

Steven Sim Kok Leong
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HP-UX 11.20

As you can read, I've managed to build 3.1 from the latest snapshot in 64 bit mode for hppa. To testdrive it, I tried to compile the latest development state of perl5. It was a disaster.

Next I built gcc-3.0.4/64 using gcc-3.1-20020408, and used that to build perl. Success.

I'm putting the binary distribution of gcc-3.0.4 + binutils-2.12 for hppa-2.0w (hppa64) online now (wait till it's finished) at

http://home.hccnet.nl/h.m.brand/hppa64-gcc-3.0.4-binutils-2.12.tbz

rw-rw-rw- 1 merijn softwr 12572739 Apr 12 16:18 hppa64-gcc-3.0.4-binutils-2.12.tbz

# cd /usr/local
# bzip2 -d
Enjoy, Have FUN! H.Merijn
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HP-UX 11.20

Don't try loading that tbz (yet). It seems like I have a 10 Mb limit there :[
Enjoy, Have FUN! H.Merijn
Steven Sim Kok Leong
Honored Contributor

Re: GCC for HP-UX 11.20

Hi,

Anyone knows where to get /usr/local/bin/addr2line?

Thanks in advance. Regards.

Steven Sim Kok Leong

======= 04/15/02 10:07:05 SST BEGIN install AGENT SESSION (pid=22756)
(jobid=hpi2000-0010)

* Agent session started for user "root@localhost". (pid=22756)

* Beginning Analysis Phase.
* Source: localhost:/var/sw/gcc-3.0-11.20.depot
* Target: hpi2000:/
* Target logfile: hpi2000:/var/adm/sw/swagent.log
* Reading source for product information.
* Reading source for file information.
* Executing preDSA command.
NOTE: The used disk space on filesystem "/usr" is estimated to
increase by 107487 Kbytes.
This will leave 182900 Kbytes of available user disk space
after the installation.
NOTE: The used disk space on filesystem "/var" is estimated to
increase by 54 Kbytes.
This will leave 2295460 Kbytes of available user disk space
after the installation.

* Summary of Analysis Phase:
* 1 of 1 filesets had no Errors or Warnings.
* The Analysis Phase succeeded.


* Beginning the Install Execution Phase.
* Filesets: 1
* Files: 383
* Kbytes: 106793
* Installing fileset "gcc.gcc,r=3.0.2001-07-12" (1 of 1).
ERROR: Could not access remote file "/usr/local/bin/addr2line" in
software item
"gcc.gcc,r=3.0.2001-07-12,a=HP-UX_B.11.20_64,v=HP:/" due to an
internal error on the remote system.
ERROR: Failed installing fileset "gcc.gcc,r=3.0.2001-07-12". Check
the above output for details.
* Retry number 1 of 1 for loading files for fileset
"gcc.gcc,r=3.0.2001-07-12".
* Installing fileset "gcc.gcc,r=3.0.2001-07-12" (1 of 1).
ERROR: Could not access remote file "/usr/local/bin/addr2line" in
software item
"gcc.gcc,r=3.0.2001-07-12,a=HP-UX_B.11.20_64,v=HP:/" due to an
internal error on the remote system.
ERROR: Failed installing fileset "gcc.gcc,r=3.0.2001-07-12". Check
the above output for details.
NOTE: The Install Phase has suspended. Check the above output for
reasons.
Stefan Farrelly
Honored Contributor

Re: GCC for HP-UX 11.20


addr2line is part of the binutils package. You can download from the HP porting centre. It installs to /opt/binutils/bin/addr2line
Im from Palmerston North, New Zealand, but somehow ended up in London...
H.Merijn Brand (procura
Honored Contributor

Re: GCC for HP-UX 11.20

The binutils from the porting centre are still 2.11 (Ahhhrggg)

Binutils 2.12 is to be prefered over 2.11, mainly because of hppa changes in the binutils. (For example, you *need* 2.12 to successfully build gcc-3.x on hppa)

binutils home page: http://sources.redhat.com/binutils/
and the binutils sourcecan be found here: ftp://sources.redhat.com/pub/binutils/releases/ (amongst other places)
I did not find a 32bit prebuilt binary port for hppa (yet)

I'm going to retry to put the 2.12 binutils + gcc-3.0.4 64bit for hppa64 (hppa-2.0w) on-line today on a different place.
Enjoy, Have FUN! H.Merijn