- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: gcc compile error: out of memory
Operating System - HP-UX
1753750
Members
5116
Online
108799
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
тАО02-27-2008 10:37 PM
тАО02-27-2008 10:37 PM
Hi
i try to build a test program on HPUX,
it happen to get this error message
cc1: out of memory allocating 2489608 bytes after a total of 267205368 bytes
make: *** [mytest] Error 1
bash-3.2# uname -a
HP-UX mars B.11.11 U 9000/785 2003131410 unlimited-user license
bash-3.2# gcc -dumpversion
3.3.3
bash-3.2# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
reserve - 183992 -183992
memory 1573028 1149212 423816 73%
any help? many thanks!!
i try to build a test program on HPUX,
it happen to get this error message
cc1: out of memory allocating 2489608 bytes after a total of 267205368 bytes
make: *** [mytest] Error 1
bash-3.2# uname -a
HP-UX mars B.11.11 U 9000/785 2003131410 unlimited-user license
bash-3.2# gcc -dumpversion
3.3.3
bash-3.2# swapinfo
Kb Kb Kb PCT START/ Kb
TYPE AVAIL USED FREE USED LIMIT RESERVE PRI NAME
dev 4194304 0 4194304 0% 0 - 1 /dev/vg00/lvol2
reserve - 183992 -183992
memory 1573028 1149212 423816 73%
any help? many thanks!!
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 12:23 AM
тАО02-28-2008 12:23 AM
Solution
>i try to build a test program on HP-UX
(It must be a pretty big test.)
You need to increase maxdsiz with kmtune(1m). You probably have it at 256 Mb and you need to make it bigger. Make sure maxdsiz_64bit is larger than maxdsiz.
>swapinfo
This is near useless, you need to provide the "swapinfo -tam" output.
(It must be a pretty big test.)
You need to increase maxdsiz with kmtune(1m). You probably have it at 256 Mb and you need to make it bigger. Make sure maxdsiz_64bit is larger than maxdsiz.
>swapinfo
This is near useless, you need to provide the "swapinfo -tam" output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 05:45 PM
тАО02-28-2008 05:45 PM
Re: gcc compile error: out of memory
yes, that is right, i check maxdsiz and it is equivalent to 256M
bash-3.2# kmtune | grep maxdsiz
maxdsiz 0x10000000 - 0x1000000
maxdsiz_64bit 0x40000000 - 0x4000000
i follow Dennis's suggestion, modify maxdsiz to 0x40000000 while maxdsiz_64bit to 0x80000000, the error message disappeared and my test program build normally.
thx for Dennis's help
bash-3.2# kmtune | grep maxdsiz
maxdsiz 0x10000000 - 0x1000000
maxdsiz_64bit 0x40000000 - 0x4000000
i follow Dennis's suggestion, modify maxdsiz to 0x40000000 while maxdsiz_64bit to 0x80000000, the error message disappeared and my test program build normally.
thx for Dennis's help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-28-2008 05:46 PM
тАО02-28-2008 05:46 PM
Re: gcc compile error: out of memory
[solved]
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP