- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Compiling gcc on HP-UX
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2018 05:30 AM
04-13-2018 05:30 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2018 05:02 PM
04-15-2018 05:02 PM
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2018 01:51 AM
04-16-2018 01:51 AM
Re: Compiling gcc on HP-UX
maxdsiz = 1073741824
maxdsiz_64 = 4294967296
-Vamshi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2018 10:57 AM - edited 04-16-2018 10:58 AM
04-16-2018 10:57 AM - edited 04-16-2018 10:58 AM
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2018 11:15 AM
04-16-2018 11:15 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2018 03:20 PM
04-21-2018 03:20 PM
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2018 02:10 AM
04-22-2018 02:10 AM
Re: Compiling gcc on HP-UX
The "swapinfo -tam" output shown above is representative of what I was observing when the issue happened.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2018 05:09 PM
04-22-2018 05:09 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2018 08:55 PM
04-22-2018 08:55 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2018 10:37 PM
04-24-2018 10:37 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-15-2018 11:21 PM - edited 08-16-2018 02:57 AM
08-15-2018 11:21 PM - edited 08-16-2018 02:57 AM
Re: Compiling gcc on HPUX
After a brief hiatus, I am back to my original problem. I need a C++11 (atleast, C++14 if possible) compliant compiler on HPUX. I have aCC A.06.29, but it does not fully support all the C++11 features (especially atomics). I would like to build a C++11 compliant compiler (using aCC if need be). The current options are gcc-4.9.2 (for C++11) and gcc-5.2.0 (for C++14).
Could someone help me with the steps to build the gcc-5.2.0 (or if this is not possible, then gcc-4.9.2) using aCC ?
-Vamshi