C:\Program Files\Emscripten\emscripten\1.37.1>emcc tests/hello_world.c
C:\Program Files\Emscripten\emscripten\1.37.1>node a.out.js
C:\Program Files\Emscripten\emscripten\1.37.1>emcc tests/hello_world.c
C:\Program Files\Emscripten\emscripten\1.37.1>node a.out.js
C:\Program Files\Emscripten\emscripten\1.37.1>emcc tests/hello_world.c
C:\Program Files\Emscripten\emscripten\1.37.1>node a.out.jshello, world!
C:\Program Files\Emscripten\emscripten\1.37.1>emcc tests/hello_world.cTraceback (most recent call last): File "C:\Program Files\Emscripten\emscripten\1.37.1\\emcc", line 13, in <module> emcc.run() File "C:\Program Files\Emscripten\emscripten\1.37.1\emcc.py", line 1635, in run final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args) File "C:\Program Files\Emscripten\emscripten\1.37.1\tools\shared.py", line 1745, in emscripten call_emscripten(cmdline) File "C:\Program Files\Emscripten\emscripten\1.37.1\emscripten.py", line 1783, in _main temp_files.run_and_clean(lambda: main( File "C:\Program Files\Emscripten\emscripten\1.37.1\tools\tempfiles.py", line 78, in run_and_clean return func() File "C:\Program Files\Emscripten\emscripten\1.37.1\emscripten.py", line 1788, in <lambda> DEBUG=DEBUG, File "C:\Program Files\Emscripten\emscripten\1.37.1\emscripten.py", line 1689, in main temp_files=temp_files, DEBUG=DEBUG) File "C:\Program Files\Emscripten\emscripten\1.37.1\emscripten.py", line 93, in emscript glue, forwarded_data = compiler_glue(metadata, settings, libraries, compiler_engine, temp_files, DEBUG) File "C:\Program Files\Emscripten\emscripten\1.37.1\emscripten.py", line 293, in compiler_glue cwd=path_from_root('src'), error_limit=300) File "C:\Program Files\Emscripten\emscripten\1.37.1\tools\jsrun.py", line 122, in run_js raise Exception('Expected the command ' + str(command) + ' to finish with return code ' + str(assert_returncode) + ', but it returned with code ' + str(proc.returncode) + ' instead! Output: ' + str(ret)[:error_limit])Exception: Expected the command ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe', 'C:\\Program Files\\Emscripten\\emscripten\\1.37.1\\src\\compiler.js', 'c:\\users\\user\\appdata\\local\\temp\\tmpqrxkb5.txt', 'C:\\Program Files\\Emscripten\\emscripten\\1.37.1\\src\\library_pthread_stub.js'] to finish with return code 0, but it returned with code 1 instead! Output: // The Module object: Our interface to the outside world. We import// and export values on it, and do the work to get that through// closure compiler if necessary. There are various ways Module can be used:// 1. Not defined. We create it here// 2. A function parameter, function(Module) { ..generC:\Program Files\Emscripten\emscripten\1.37.1>emcc -vemcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 1.37.1clang version 3.9.0 (emscripten 1.37.1 : 1.37.1)Target: x86_64-pc-windows-msvcThread model: posixInstalledDir: C:\Program Files\Emscripten\clang\e1.37.1_64bitINFO:root:Checking JS engine ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe'] failed. Check your config file. Details: Expected the command ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe', 'C:\\Program Files\\Emscripten\\emscripten\\1.37.1\\src\\hello_world.js'] to finish with return code 0, but it returned with code 1 instead! Output:INFO:root:(Emscripten: Running sanity checks)CRITICAL:root:The JavaScript shell used for compiling (['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe']) does not seem to work, check the paths inC:\Users\user\.emscripten
First off, can you try updating to Emscripten 1.37.13 or even the
incoming branch to see if that resolves the issue? ("emsdk install
latest" and "emsdk activate latest" or "emsdk install
sdk-incoming-64bit" and "emsdk activate sdk-incoming-64bit")
gtest.vcxproj -> C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\RelWithDebInfo\lib\gtest.lib gtest_main.vcxproj -> C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\RelWithDebInfo\lib\gtest_main.libRC : fatal error RC1106: invalid option: -ologo [C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\utils\PerfectShuffle\llvm-PerfectShuffle.vcxproj]
RC : fatal error RC1106: invalid option: -ologo [C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\tools\llvm-config\llvm-config.vcxproj]
RC : fatal error RC1106: invalid option: -ologo [C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\tools\llvm-cxxfilt\llvm-cxxfilt.vcxproj]
RC : fatal error RC1106: invalid option: -ologo [C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\tools\llvm-mcmarkup\llvm-mcmarkup.vcxproj]
RC : fatal error RC1106: invalid option: -ologo [C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\utils\not\not.vcxproj]
RC : fatal error RC1106: invalid option: -ologo [C:\Program Files\Emscripten\clang\fastcomp\build_incoming_vs2015_64\utils\yaml-bench\yaml-bench.vcxproj]
Build failed due to exception!Working directory: C:/Program Files/Emscripten/clang/fastcomp\build_incoming_vs2015_64Command '['C:\\Program Files (x86)\\MSBuild/14.0/Bin/amd64\\MSBuild.exe', '/t:Build', '/p:Configuration=RelWithDebInfo', '/p:Platform=x64', '/nologo', '/verbosity:minimal', 'LLVM.sln']' returned non-zero exit status 1Installation failed!
When the compiler produces working or failing builds, do they have
same or different contents and file sizes? Can you try diffing the
contents of good and bad builds to see if the differences are
something that could give any clues?
The contents of hello_world.js in Emscripten src directory should not
change. Try also running node hello_world.js directly on the command
line if that gives any errors. Also, experience says that generally
these types of inconsistencies are often caused by threading, so you
can try setting the environment variable "set EMCC_CORES=1" to force
Emscripten to run in singlethreaded mode to see if that would have any
effect on this type of nondeterminism.
C:\Program Files\Emscripten\emscripten\1.37.9>emcc tests/hello_world.c -o tests/hello_world.htmlINFO:root:Checking JS engine ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe'] failed. Check your config file. Details: Expected the command ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe', 'C:\\Program Files\\Emscripten\\emscripten\\1.37.9\\src\\hello_world.js'] to finish with return code 0, but it returned with code 1 instead! Output:INFO:root:(Emscripten: Running sanity checks)CRITICAL:root:The JavaScript shell used for compiling (['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe']) does not seem to work, check the paths in C:\Users\user\.emscripten
C:\Program Files\Emscripten\emscripten\1.37.9>node faffa.js
C:\Program Files\Emscripten\emscripten\1.37.9>emcc tests/hello_world.c -o tests/hello_world.htmlINFO:root:(Emscripten: Running sanity checks)INFO:root:generating system library: libc.bc... (this will be cached in "C:\Users\user\.emscripten_cache\asmjs\libc.bc" for subsequent builds)WARNING:root:Accessing the Emscripten cache at "C:\Users\user\.emscripten_cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "C:\Users\user\.emscripten_cache.lock" and try again. If this occurs deterministically, consider filing a bug.WARNING:root:Accessing the Emscripten cache at "C:\Users\user\.emscripten_cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "C:\Users\user\.emscripten_cache.lock" and try again. If this occurs deterministically, consider filing a bug.WARNING:root:Accessing the Emscripten cache at "C:\Users\user\.emscripten_cache" is taking a long time, another process should be writing to it. If there are none and you suspect this process has deadlocked, try deleting the lock file "C:\Users\user\.emscripten_cache.lock" and try again. If this occurs deterministically, consider filing a bug.INFO:root: - okINFO:root:generating system library: dlmalloc.bc... (this will be cached in "C:\Users\user\.emscripten_cache\asmjs\dlmalloc.bc" for subsequent builds)INFO:root: - okTraceback (most recent call last): File "C:\Program Files\Emscripten\emscripten\1.37.9\\emcc", line 13, in <module> emcc.run() File "C:\Program Files\Emscripten\emscripten\1.37.9\emcc.py", line 1673, in run final = shared.Building.emscripten(final, append_ext=False, extra_args=extra_args) File "C:\Program Files\Emscripten\emscripten\1.37.9\tools\shared.py", line 1963, in emscripten call_emscripten(cmdline) File "C:\Program Files\Emscripten\emscripten\1.37.9\emscripten.py", line 1852, in _main temp_files.run_and_clean(lambda: main( File "C:\Program Files\Emscripten\emscripten\1.37.9\tools\tempfiles.py", line 78, in run_and_clean return func() File "C:\Program Files\Emscripten\emscripten\1.37.9\emscripten.py", line 1857, in <lambda> DEBUG=DEBUG, File "C:\Program Files\Emscripten\emscripten\1.37.9\emscripten.py", line 1758, in main temp_files=temp_files, DEBUG=DEBUG) File "C:\Program Files\Emscripten\emscripten\1.37.9\emscripten.py", line 93, in emscript glue, forwarded_data = compiler_glue(metadata, settings, libraries, compiler_engine, temp_files, DEBUG) File "C:\Program Files\Emscripten\emscripten\1.37.9\emscripten.py", line 296, in compiler_glue cwd=path_from_root('src'), error_limit=300) File "C:\Program Files\Emscripten\emscripten\1.37.9\tools\jsrun.py", line 122, in run_js raise Exception('Expected the command ' + str(command) + ' to finish with return code ' + str(assert_returncode) + ', but it returned with code ' + str(proc.returncode) + ' instead! Output: ' + str(ret)[:error_limit])Exception: Expected the command ['C:/Program Files/Emscripten/node/4.1.1_64bit/bin/node.exe', 'C:\\Program Files\\Emscripten\\emscripten\\1.37.9\\src\\compiler.js', 'c:\\users\\user\\appdata\\local\\temp\\tmptssywj.txt', 'C:\\Program Files\\Emscripten\\emscripten\\1.37.9\\src\\library_pthread_stub.js'] to finish with return code 0, but it returned with code 1 instead! Output: // The Module object: Our interface to the outside world. We import// and export values on it, and do the work to get that through// closure compiler if necessary. There are various ways Module can be used:// 1. Not defined. We create it here// 2. A function parameter, function(Module) { ..gener
C:\Program Files\Emscripten\emscripten\1.37.9>emcc tests/hello_world.c -o tests/hello_world.html
C:\Program Files\Emscripten\emscripten\1.37.9>node tests/hello_world.jshello, world!