• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 1 GB limit on total object files size for linking?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 1 GB limit on total object files size for linking?


  • Subject: Re: 1 GB limit on total object files size for linking?
  • From: Jonas Maebe <email@hidden>
  • Date: Tue, 28 Aug 2007 16:55:43 +0200


On 28 Aug 2007, at 16:46, Helmut Brandt wrote:

So, my question remains: Where does the apparent 1 GB limitation come
from? GCC, Xcode, the OS, the amount of RAM I have, or ??

The error you posted earlier:

/usr/bin/ld: can't vm_allocate() buffer for output file of size
1235753308 ((os/kern) no space available)
collect2: ld returned 1 exit status

means that ld tried to allocate a block of 1.2GB of contiguous memory, but that it was no longer available. This has nothing to do with the amount of RAM you have installed, but means that there's no such contiguous block available anymore in ld's virtual memory space.


The problem is in ld, it probably has to be rewritten so that it no longer requires that the entire finished binary can fit into ram (or at least not in a single contiguous block of memory).

Compiling the program for 64 bit might help (not because ld64 is a 64 bit program, but because ld64 is completely different from the 32 bit ld and possibly does not have the above mentioned requirement).


Jonas _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: 1 GB limit on total object files size for linking?
      • From: "Helmut Brandt" <email@hidden>
    • Re: 1 GB limit on total object files size for linking?
      • From: Peter O'Gorman <email@hidden>
    • Re: 1 GB limit on total object files size for linking?
      • From: Scott Ribe <email@hidden>
References: 
 >1 GB limit on total object files size for linking? (From: "Helmut Brandt" <email@hidden>)
 >Re: 1 GB limit on total object files size for linking? (From: "Helmut Brandt" <email@hidden>)

  • Prev by Date: Re: vacationers..
  • Next by Date: Re: 1 GB limit on total object files size for linking?
  • Previous by thread: Re: 1 GB limit on total object files size for linking?
  • Next by thread: Re: 1 GB limit on total object files size for linking?
  • Index(es):
    • Date
    • Thread