Francois wrote:
> Trying to build a debug version of our code using Solaris 10 and SunStudio 
> 12, and we get this error:
> 
> ld: fatal: file /dev/zero: mmap anon failed: Not enough space
> 
> Any idea?
> 
> The ld process grows to ~4GB then dies.
> 
> The compile server has plenty of memory and swap available.
> 
> Any idea? Our program is getting quite large, but I am sure there are larger 
> ones out there.
> 
> If I build the same code on Solaris 9, I do not have the issue. (It gets up 
> to 3.9GB and succeeds)
> 
> Note that it is not my program that is larger than 4GB, but the LD process 
> while linking.
> 
> Thanks.
>  
>  
> This message posted from opensolaris.org
> _______________________________________________
> tools-linking mailing list
> tools-linking at opensolaris.org


I suspect that the 32-bit version of the linker is hitting the 4GB
wall and dying.

Try using the 64-bit linker directly:

        /usr/ccs/bin/amd64/ld
or
        /usr/ccs/bin/sparcv9/ld

- Ali

Reply via email to