HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: linking really large applications
Operating System - HP-UX
1826404
Members
3999
Online
109692
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
Forums
Discussions
Discussions
Discussions
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
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
12-12-2005 08:26 AM
12-12-2005 08:26 AM
Sorry if this is the wrong category to post to, didn't see any that screamed "software development." I'm working on HPUX 11i, and am unable to link my application when I build it with debug information. My linker ident says:
/usr/ccs/bin/ld:
$Revision: 92453-07 linker linker ctr0.o B.11.16.01 030316 $
$Revision: 1.85 $
The libraries/objects I'm trying to link are primarily built with g++.
The error I get is:
/usr/ccs/bin/ld: Cann't mmap 12 bytes
/usr/ccs/bin/ld: Not enough space
It always says 12 bytes, and the odd spelling of "Cann't" is not mine.
I've changed my TMPDIR and TEMPDIR to a directory that has multiple GB of free space, increased maxdsiz to 0xC000000 and maxssiz to 0xC000000, and tried running it with no other apps running besides daemons.
I ran with -t and -v sent to the linker and the last things it printed before dying were:
Loading /usr/lib/milli.a(div_const.o):
Searching library /usr/lib/milli.a
Any kernel params or linker options or patches you might have would be most appreciated.
Tom Matelich
/usr/ccs/bin/ld:
$Revision: 92453-07 linker linker ctr0.o B.11.16.01 030316 $
$Revision: 1.85 $
The libraries/objects I'm trying to link are primarily built with g++.
The error I get is:
/usr/ccs/bin/ld: Cann't mmap 12 bytes
/usr/ccs/bin/ld: Not enough space
It always says 12 bytes, and the odd spelling of "Cann't" is not mine.
I've changed my TMPDIR and TEMPDIR to a directory that has multiple GB of free space, increased maxdsiz to 0xC000000 and maxssiz to 0xC000000, and tried running it with no other apps running besides daemons.
I ran with -t and -v sent to the linker and the last things it printed before dying were:
Loading /usr/lib/milli.a(div_const.o):
Searching library /usr/lib/milli.a
Any kernel params or linker options or patches you might have would be most appreciated.
Tom Matelich
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2005 08:56 AM
12-12-2005 08:56 AM
Solution
You are running a rather old version of ld. You should also rollback the size of maxssiz to 64MB or so because both the data and stack come from the same quadrant in 32-bit land so large stacks (even if not used) reduce the available heap for dynamic allocation. Mmap cal also be limited by swapspace.
By best advice is to add -Wl,+nommap to your CC makefile line so that the linker does not use mmap. This will result in slower links but mmap should no longer be a problem.
By best advice is to add -Wl,+nommap to your CC makefile line so that the linker does not use mmap. This will result in slower links but mmap should no longer be a problem.
If it ain't broke, I can fix that.
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.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP