node-packer icon indicating copy to clipboard operation
node-packer copied to clipboard

compiler is out of heap space

Open mikowiec opened this issue 7 years ago • 5 comments

Precondition: Windows 7 32-bit, available 2320 MB from 3400 MB. node v7.9.0, mksquashfs v4.3, Visual Studio 2015,

Example coffeescript project finished failed: "sample\enclose_io_memfs.c(166117): fatal error C1060: compiler is out of heap space"

mikowiec avatar May 16 '17 05:05 mikowiec

Please try using a bigger Virtual Memory, as in

image

pmq20 avatar May 16 '17 05:05 pmq20

Paging File set fixed size: 4990 MB, as recommended

mikowiec avatar May 16 '17 05:05 mikowiec

@mikowiec Restarting the computer also helps.

pmq20 avatar May 18 '17 05:05 pmq20

@mikowiec I forgot to mention, that using x64 toolchain could also help eliminate this problem. Microsoft x64 cl.exe (or even x64_x86 cross tool-chain) will not throw this error when x86 tools throw, based on my experiments.

pmq20 avatar Jun 02 '17 10:06 pmq20

https://github.com/pmq20/node-packer/issues/83#issuecomment-344610424 看这个答案

yoyokko avatar Mar 13 '19 11:03 yoyokko