Closed vpmedia closed 10 years ago
Can't build the SWC: cd /cygdrive/f/crossbridge/build/win/glsl2agal/swc && PATH=/cygdrive/f/crossbridge/sdk/usr/bin:/usr/local/bin:/usr/bin:/cygdrive/c/Progra~1/Java/jdk/bin g++ -fno-exceptions -fno-rtti -O4 -flto-api=exports.txt -jvmopt=-Xmx4G -emit-swc=com.adobe.glsl2agal -o glsl2agal.swc agaloptimiser.abc swc.cpp libglsl2agal.a -I../include -I../src/mesa -I../src/mapi -I../src/glsl 0 [main] llc 4092 fhandler_dev_zero::fixup_mmap_after_fork: requested 0xFF3D0000 != 0x0 mem alloc base 0x80000000, state 0x2000, size 12451840, Win32 error 487 45718 [main] llc 4092 F:\crossbridge\sdk\usr\platform\cygwin\bin\llc.exe: * fatal error in forked process - recreate_mmaps_after_fork_failed 73489 [main] llc 4092 cygwin_exception::open_stackdumpfile: Dumping stack trace to llc.exe.stackdump 0 [main] llc 3724 fork: child -1 - forked process 4092 died unexpectedly, retry 0, exit code 0x100, errno 11 LLVM ERROR: Failed to run /cygdrive/f/crossbridge/sdk/usr/platform/cygwin/bin/../../usr/bin/llc with args: -target-player -jvmopt -Xmx4G -as3tmp1 /tmp/ccs2r8Xt.lto.1.as -as3tmp2 /tmp/cc1L8Ysk.lto.2.as -jvm=C:/Progra~1/Java/jdk/bin/java -filetype=obj C:/cygwin/tmp/ccKCEvX0.lto.bc -o C:/cygwin/tmp/ccK92iXa.lto.abc Error: 0 [main] llc 4092 fhandler_dev_zero::fixup_mmap_after_fork: requested 0xFF3D0000 != 0x0 mem alloc base 0x80000000, state 0x2000, size 12451840, Win32 error 487 45718 [main] llc 4092 F:\crossbridge\sdk\usr\platform\cygwin\bin\llc.exe: * fatal error in forked process - recreate_mmaps_after_fork_failed 73489 [main] llc 4092 cygwin_exception::open_stackdumpfile: Dumping stack trace to llc.exe.stackdump 0 [main] llc 3724 fork: child -1 - forked process 4092 died unexpectedly, retry 0, exit code 0x100, errno 11 LLVM ERROR: Failed to run /usr/bin/cygpath with args: -at mixed /cygdrive/f/crossbridge/sdk/usr/platform/cygwin/bin/../../usr/lib/asc2.jar Error: Couldn't fork: Resource temporarily unavailable
http://www.cygwin.com/cygwin-ug-net/setup-maxmem.html increasing heap size solves the issues..
Fixed..
Integrate GLSL2AGAL into the SDK
Source: https://github.com/adobe/glsl2agal