For some reason, the jenkins environment is not seeing the prebuilt optimizer.exe, and it is attempting to start a build of it on its own. The optimizer.exe should be set in .emscripten configuration file under the directive
EMSCRIPTEN_NATIVE_OPTIMIZER='/Users/jjylanki/emsdk_git/emscripten/incoming_64bit_optimizer/optimizer' (modulo path to where optimizer.exe is located on your system). Perhaps jenkins is running as a different user, and as a result, its user home directory is separate, and it is looking at a .emscripten file at a different location with contents it autogenerated when it assumed it's a first run from a manual installation? In that case, you can try copying the .emscripten config from your user directory to the jenkins user directory, or try setting up an --embedded installation and set up the EM_CONFIG= env var for Jenkins. 2015-10-20 10:51 GMT+03:00 Sergey Solozhentsev <[email protected] >: > I have very strange error when I'm trying to compile my project > It is compiled fine when I build it manually both release and debug > version. But jenkins that is running as windows service cannot build it and > throws following error > > Traceback (most recent call last): > File "C:\Program Files\Emscripten\emscripten\1.30.0\\emcc", line 1584, in > <module> > flush_js_optimizer_queue() > File "C:\Program Files\Emscripten\emscripten\1.30.0\\emcc", line 1481, in > flush_js_optimizer_queue > run_passes(chunks[0], title, just_split=False, just_concat=False) > File "C:\Program Files\Emscripten\emscripten\1.30.0\\emcc", line 1454, in > run_passes > final = shared.Building.js_optimizer(final, passes, jcache, debug_level > >= 4, js_optimizer_extra_info, just_split=just_split, just_concat=just_concat) > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\shared.py", line > 1697, in js_optimizer > ret = js_optimizer.run(filename, passes, NODE_JS, jcache, debug, > extra_info, just_split, just_concat) > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\js_optimizer.py", > line 560, in run > return temp_files.run_and_clean(lambda: run_on_js(filename, passes, > js_engine, jcache, source_map, extra_info, just_split, just_concat)) > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\tempfiles.py", > line 39, in run_and_clean > return func() > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\js_optimizer.py", > line 560, in <lambda> > return temp_files.run_and_clean(lambda: run_on_js(filename, passes, > js_engine, jcache, source_map, extra_info, just_split, just_concat)) > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\js_optimizer.py", > line 445, in run_on_js > if not use_native(passes, source_map) or not get_native_optimizer(): > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\js_optimizer.py", > line 173, in get_native_optimizer > return get_optimizer('optimizer.exe', [], ignore_build_errors) > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\js_optimizer.py", > line 157, in get_optimizer > return shared.Cache.get(name, create_optimizer_cmake, extension='exe') > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\cache.py", line > 36, in get > temp = creator() > File "C:\Program Files\Emscripten\emscripten\1.30.0\tools\js_optimizer.py", > line 109, in create_optimizer_cmake > proc = subprocess.Popen(['cmake', '-G', cmake_generator, > '-DCMAKE_BUILD_TYPE='+cmake_build_type, shared.path_from_root('tools', > 'optimizer')], cwd=build_path, stdin=log_output, stdout=log_output, > stderr=log_output) > File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", > line 711, in __init__ > errread, errwrite) > File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", > line 948, in _execute_child > startupinfo) > WindowsError: [Error 2] > > > It seems that is wanted cmake but cmake is not installed for my account too. > In this case how emscripten build my project when I logged in? > > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
