When trying to build B2G with B2G_DEBUG=1 and GECKO_PATH pointing to a current mozilla-central tree, the build is failing to link libxul for me on OS X 10.8.3 with the error:

build-b2g/B2G/prebuilt/darwin-x86/toolchain/arm-linux-androideabi-4.4.x/arm-linux-androideabi/bin/ld: fatal error: libxul.so: mmap: failed to allocate 845861936 bytes for output file: Cannot allocate memory
collect2: ld returned 1 exit status

I have 16 GB of RAM, of which over 8 GB is free at the time of the error. The in-tree version of ld that is being used says:

ld --version
GNU gold (GNU Binutils 2.20.51.20100303) 1.9
Copyright 2010 Free Software Foundation, Inc.
....

It seems like the amount of memory that needs to be allocated should be well within limits, so is there something in the B2G build setup that is limiting it?
_______________________________________________
dev-b2g mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-b2g

Reply via email to