Ykkrosh Posted November 17, 2010 Report Share Posted November 17, 2010 I updated SpiderMonkey to the latest bleeding-edge version, for improved performance when we start doing more heavy calculations in JavaScript. It ought to work fine, but there's a chance it might introduce some compatibility problems - if you find any then please let me know.One issue when updating SVN is that you might get errors running update-workspaces.sh, because of a Makefile looking for files that were deleted. If you get that, try running clean-workspaces.sh (in build/workspaces/) which should delete the outdated build files and let you start again cleanly. Quote Link to comment Share on other sites More sharing options...
plumo Posted November 17, 2010 Report Share Posted November 17, 2010 (edited) How can i run a .sh extension?I get errors when I try to start up the game after building." Cant find 'entry' of procedure JS_RemoveRoot in DLL-file mozjs-ps-release.dll . ( my own translation ( error was in dutch))''pyrogenesis.exe': Loaded 'C:\ps\binaries\system\pyrogenesis.exe', Symbols loaded.'pyrogenesis.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\opengl32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\glu32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\ps\binaries\system\mozjs-ps-release.dll', Binary was not built with debug information.'pyrogenesis.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file'pyrogenesis.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcr80.dll', Cannot find or open the PDB fileThe program '[5004] pyrogenesis.exe: Native' has exited with code -1073741511 (0xc0000139). Edited November 17, 2010 by plumo Quote Link to comment Share on other sites More sharing options...
feneur Posted November 17, 2010 Report Share Posted November 17, 2010 It seems you're on Windows? And using the pre-built .exe? While Philip is the one who'd know I'm pretty sure this change requires the .exe to be re-built, which is now done, so it should just be to update SVN and the error should be gone Quote Link to comment Share on other sites More sharing options...
plumo Posted November 17, 2010 Report Share Posted November 17, 2010 Resolved. Thanks. Topic can be locked Quote Link to comment Share on other sites More sharing options...
maximinus-thrax Posted November 17, 2010 Report Share Posted November 17, 2010 Do you know of any decent benchmarks comparing SpiderMonkey to any other languages? I could only really find comparisons to other versions of JS. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted November 17, 2010 Author Report Share Posted November 17, 2010 No, except the shootout ones which usually seem pretty broken because they're not using comparably optimised algorithms for everything. The results vary hugely depending on exactly what benchmark you run - it's probably hard to be more specific than saying SM is several times faster (maybe 10x or so) than interpreters for other scripting languages (Perl, CPython, etc) and a bit slower than LuaJIT (which has a much simpler language to compile) and a bit more slower than Java/C#/C++/etc. Quote Link to comment Share on other sites More sharing options...
gavlig Posted November 21, 2010 Report Share Posted November 21, 2010 (edited) Hey Ykkrosh, i'm not sure that my problem is connected with your spidermonkey update but I got this error on update-workspaces.sh. I'm sorry If i made my post in a wrong thread.My os is archlinux, i've installed all dependencies(I guess).jsanalyze.cppc++ -o jsanalyze.o -c -I./dist/system_wrappers_js -include ../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -I.. -I. -I./dist/include -I./dist/include/nsprpub -I.. -I../assembler -I../yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsanalyze.pp ../jsanalyze.cpp File "../imacro_asm.py", line 459 print "usage: python imacro_asm.py infile.jsasm outfile.c.out" ^SyntaxError: invalid syntaxmake[1]: *** [/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug/imacros.c.out] Error 1make[1]: *** Waiting for unfinished jobs....make[1]: Leaving directory `/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug'make: *** [default] Error 2ERROR: SpiderMonkey build failedjsanalyze.cppc++ -o jsanalyze.o -c -I./dist/system_wrappers_js -include ../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -I.. -I. -I./dist/include -I./dist/include/nsprpub -I.. -I../assembler -I../yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsanalyze.pp ../jsanalyze.cpp File "../imacro_asm.py", line 459 print "usage: python imacro_asm.py infile.jsasm outfile.c.out" ^SyntaxError: invalid syntaxmake[1]: *** [/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug/imacros.c.out] Error 1make[1]: *** Waiting for unfinished jobs....make[1]: Leaving directory `/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug'make: *** [default] Error 2ERROR: SpiderMonkey build failedand yes, I did clean-workspaces.sh. It doesnt help anyway Edited November 21, 2010 by gavlig Quote Link to comment Share on other sites More sharing options...
gavlig Posted November 21, 2010 Report Share Posted November 21, 2010 It's ok now, guys! I just needed to fix one line in imacro_asm.py. In python3 print function needs brackets. Thats all. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted November 21, 2010 Author Report Share Posted November 21, 2010 Ah, glad you fixed it, since I wasn't having any ideas of what to do about it . Could you perhaps post your changes (via "svn diff" or something)? If so, I could send it to the SpiderMonkey developers to get Python 3 supported there. Quote Link to comment Share on other sites More sharing options...
gavlig Posted November 21, 2010 Report Share Posted November 21, 2010 (edited) I'd love to post my changes of that file but as it's said here, I need an account which you or Eric Johansson can give me. Edited November 21, 2010 by gavlig Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted November 21, 2010 Author Report Share Posted November 21, 2010 I just mean posting the changes here on the forums, so I know what lines you had to fix. The SVN account is only needed for committing to the main repository, which I don't think we want to do now (it's better to get it fixed upstream instead). Quote Link to comment Share on other sites More sharing options...
gavlig Posted November 21, 2010 Report Share Posted November 21, 2010 Didn't know that, sorry I don't really think that I need to commit anything to the main repository either, so it's cool. Fixed file is in attaches, fixed line is 459, just brackets. I had to change the name of file because of forum limitations on file extension. Original filename is imacro_asm.pyimacro_asm.txt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.