jiangphcn commented on issue #1875: Update SpiderMonkey version URL: https://github.com/apache/couchdb/issues/1875#issuecomment-559111218 I want to give some update before thanksgiving day about this ticket. Recently, I used a lot of time to work for window platform. Every time I am almost about to send to email to community to get support, I got some progress. I plan to still take two days to try the last approach, and then decide how to proceed for windows platform. - a. using guide in https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation, spidermonkey 60 can be built, but the default is 32 bit. 32 bit library is not for 64bit couchjs. I will get link issue. - b. same as approach a, I used `../configure --host=x86_64-pc-mingw32 --target=x86_64-pc-mingw32 --enable-debug` to setup 64bit environment. There is error when comping js/src/Unified_cpp_js_src19.cpp. ``` Unified_cpp_js_src19.cpp C:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared\stralign.h(120): warning C4090: 'argument': different '__unaligned' qualifiers c:/mozjs/mozjs-60.1.1pre3/js/src/jit/ProcessExecutableMemory.cpp(65): fatal error C1189: #error: "Unsupported architecture" mozmake[3]: *** [c:/mozjs/mozjs-60.1.1pre3/config/rules.mk:1049: Unified_cpp_js_src19.obj] Error 2 ``` - c. later on, I found one repository https://github.com/mozilla/gecko-dev. I made it work and compile `mozjs-72a1.lib`. When compiling couchjs using this library, we can pass compile, and there is 64bit-32bit issue when linking them together. Because there are interface change, it is not surprise that I got some `undefined symbols` error. - d. this week, I found another repository https://github.com/servo/mozjs. I made it almost work and my thought is that it can build spidermonkey version6x with 64bit. The error I got in case b was resolved. Most of files can be compiled today. I am working on `Cannot open include file corecrt.h` error. I found that `configure --disable-jemalloc --disable-js-shell --disable-tests --disable-shared-js --build-backends=RecursiveMake --enable-posix-nspr-emulati on --with-visual-studio-version=2017 --enable-debug --disable-optimize --enable-gczeal --target=x86_64-pc-mingw32 --host=x86_64-pc-mingw32` was used in approach d, this can be used for approach b. So let me check whether I can get around using approach d and enhanced approach b in coming days. cc @denib @janl @davisp @kocolosk @wohali
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
