1751838 Members
5042 Online
108782 Solutions
New Discussion юеВ

Compiling gcc on HPUX

 
Vamshi-Krishna
Occasional Advisor

Compiling gcc on HPUX

Hi,

I have been searching for a gcc compiler for HPUX (11.,31 ia64). The latest version which I have been able to download is 4.2.3. Is there a way for me to get a later compiler. I also tried using the following builds:

http://mirrors.develooper.com/hpux/gcc-4.7.2-11.31.sd.bz
http://mirrors.develooper.com/hpux/gcc-4.6.1-11.31.sd.bz

But both seem to be buggy, and dont work. I tried to compile gcc 4.6.1 from src using the provided gcc-4.2.3, and I get the following error on Stage-2: cc1plus out of virtual memory.

Could someone please point me to an official gcc version beyong gcc-4.2.3 ? Any help is appreciated.

-Vamshi

10 REPLIES 10
Dennis Handly
Acclaimed Contributor

Re: Compiling gcc on HP-UX

> I get the following error on Stage-2: cc1plus out of virtual memory.

 

You need to increase maxdsiz_64 and maxdsiz.  What are their current values?

Vamshi-Krishna
Occasional Advisor

Re: Compiling gcc on HP-UX

maxdsiz = 1073741824

maxdsiz_64 = 4294967296

-Vamshi

Dennis Handly
Acclaimed Contributor

Re: Compiling gcc on HP-UX

> maxdsiz = 1073741824

 

That should be enough, unless you have ulimit making it smaller.

What does "ulimit -a" show?  How about "swapinfo -tam".

Vamshi-Krishna
Occasional Advisor

Re: Compiling gcc on HP-UX

vamshi@sovmh210:~$ ulimit -a
core file size          (blocks, -c) 2097151
data seg size           (kbytes, -d) 4194304
file size               (blocks, -f) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 2048
pipe size            (512 bytes, -p) 16
stack size              (kbytes, -s) 262144
cpu time               (seconds, -t) unlimited
max user processes              (-u) 2049
virtual memory          (kbytes, -v) unlimited

 

 

vamshi@sovmh210:~$ swapinfo -tam
               Mb       Mb        Mb       PCT     START/      Mb
TYPE      AVAIL    USED    FREE   USED     LIMIT    RESERVE      PRI      NAME
dev         3840       58       3782      2%         0              -                 1        /dev/vg00/lvol2
reserve       -         263      -263
memory  3648      2389    1259      65%
total       7488       2710    4778     36%         -              0                 -

 

-Vamshi

Dennis Handly
Acclaimed Contributor

Re: Compiling gcc on HP-UX

You seem to have enough swap and ulimit matches maxdsiz.

You might want to try that "swapinfo -tam" at the same time you get that "cc1plus out of virtual memory".

Vamshi-Krishna
Occasional Advisor

Re: Compiling gcc on HP-UX

The "swapinfo -tam" output shown above is representative of what I was observing when the issue happened. 

Dennis Handly
Acclaimed Contributor

Re: Compiling gcc on HP-UX

My only other suggestion is to install tusc(1m) and then trace the process with "tusc -fp -ea -o tusc.out your-build-command".

Then look for the last few system calls done by the aborting process.

ranganath ramachandra
Esteemed Contributor

Re: Compiling gcc on HPUX

The HP-UX compiler team tells me they can provide their build of gcc 4.7.1 on request.
You could email them at hpux-compilers-java @ hpe . com .

 
--
ranga
[i work for hpe]

Accept or Kudo

Vamshi-Krishna
Occasional Advisor

Re: Compiling gcc on HPUX

Unfortunately, the mail is being rejected if the size of more than 1KB (and since I have a microsoft 365 account, it will add in a lot of headers). Could someone please make the request on my behalf ? My mail seems to be 8KB in size, but my actual body is barely 3-4 lines. 

My mail id is v, a, m, s, h, i, [d o t], k, @ a, p, p, n, o, m, i, c, [d o t], c, o, m