- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- collect2: ld returned 12 exit status
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-10-2008 11:46 PM
тАО06-10-2008 11:46 PM
collect2: ld returned 12 exit status
I have a new problem with one of my products.
suddenly it failed to link on debug mode, but still linking well on release mode.
The only difference between them is that in debug mode, I don't use the strip (-s) option.
As far as I know, I don't have any space or memory problem on the machine.
Any idea?!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-10-2008 11:57 PM
тАО06-10-2008 11:57 PM
Re: collect2: ld returned 12 exit status
> or memory problem on the machine.
ENOMEM (12) would seem to suggest that you do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 12:26 AM
тАО06-11-2008 12:26 AM
Re: collect2: ld returned 12 exit status
can you explain pls?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 12:29 AM
тАО06-11-2008 12:29 AM
Re: collect2: ld returned 12 exit status
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 12:38 AM
тАО06-11-2008 12:38 AM
Re: collect2: ld returned 12 exit status
If you really think you're out of memory, you can look at ld in top and see how close it gets to maxdsiz.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 02:48 AM
тАО06-11-2008 02:48 AM
Re: collect2: ld returned 12 exit status
This is all I got as link error - no more, that's the big problem here.
but let me clear something:
I mentioned that I don't have any space problem or memory problem (these are things that I've already checked) - so I'm trying to guess what the problem might be...
tx again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 03:15 AM
тАО06-11-2008 03:15 AM
Re: collect2: ld returned 12 exit status
Perhaps you can explain how, so you can convince us doubters? :-)
If you are using aCC6, we require 4 Gb for maxdsiz_64bit. But the linker probably isn't that piggy. :-)
To rule out linker bugs, you should make sure you have the latest linker patch.
Also, did you see any linker error messages?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 04:58 AM
тАО06-11-2008 04:58 AM
Re: collect2: ld returned 12 exit status
Are you convince that it got to do with memory problem? (I checked memory via 'vmstat' and it shows that I have 93920 free mem)
do you have more ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-11-2008 07:38 PM
тАО06-11-2008 07:38 PM
Re: collect2: ld returned 12 exit status
Then the linker is broken. If it has a problem it should either abort with a signal or print an error then exit.
>Are you convinced that it got to do with memory problem? (I checked memory via 'vmstat' and it shows that I have 93920 free mem)
Of course not. vmstat doesn't tell us anything. Have you looked at "swapinfo -tam" and the value of the kernel parm maxdsiz?
>do you have more ideas?
export LDOPTS="-v -t"
Then try to relink.
Or try using "tusc -fp -o tusc.out" on your link line and then we will know what's going on.