only informational, my MOZCONFIG for the mach tool: ---------------------------------------------------------------------------------------------------------------------------------------------------
# Build only the JS shell ac_add_options --enable-application=js # Enable optimization for speed ac_add_options --enable-optimize # Disable debug checks to better match a release build of Firefox. ac_add_options --disable-debug ac_add_options --disable-ctypes ac_add_options --disable-ion ac_add_options --disable-jemalloc ac_add_options --enable-hardening ac_add_options --with-intl-api ac_add_options --build-backends=RecursiveMake ac_add_options --with-visual-studio-version=2017 ac_add_options --with-system-icu ac_add_options --enable-gczeal ac_add_options --target=x86_64-pc-mingw32 ac_add_options --host=x86_64-pc-mingw32 # Use a separate objdir for optimized builds to allow easy # switching between optimized and debug builds while developing. mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/obj-opt-@CONFIG_GUESS@ --------------------------------------------------------------------------------------------------------------------------------------------------- I only did a copy and paste from the configure command from the readme... Florian Beckert & Ronny Berndt GbR Saalstr. 3 07743 Jena Tel. 03641 - 6391110 Fax. 03641 - 219637 E-Mail: p...@kioskkinder.com Am Mi., 17. Nov. 2021 um 18:11 Uhr schrieb Ronny Berndt < ro...@kioskkinder.com>: > Hi, > > i build the sm lib with the mozilla "mach" tool and copied the files (dll, > pdb, includes,...) to c:\relax\vcpkg\installed\x64-windows ... > > Now, if I run 'make -f Makefile.win' I'm getting the following result: > > PS C:\relax\couchdb> make -f .\Makefile.win > ==> config (compile) > ==> b64url (compile) > ==> ets_lru (compile) > ==> khash (compile) > ==> snappy (compile) > ==> bear (compile) > ==> meck (compile) > ==> folsom (compile) > ==> hyper (compile) > ==> ibrowse (compile) > ==> jiffy (compile) > ==> mochiweb (compile) > ==> recon (compile) > ==> couch_epi (compile) > ==> couch_log (compile) > ==> chttpd (compile) > ==> couch (compile) > Microsoft (R) Incremental Linker Version 14.16.27045.0 > Copyright (C) Microsoft Corporation. All rights reserved. > > Creating library priv/couch_ejson_compare.lib and object > priv/couch_ejson_compare.exp > couch_ejson_compare.o : error LNK2019: unresolved external symbol > u_getVersion_60 referenced in function get_collator > couch_ejson_compare.o : error LNK2019: unresolved external symbol > uiter_setUTF8_60 referenced in function compare_strings > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_open_60 referenced in function get_collator > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_close_60 referenced in function on_unload > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_strcollIter_60 referenced in function compare_strings > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_getUCAVersion_60 referenced in function get_collator > priv/couch_ejson_compare.dll : fatal error LNK1120: 6 unresolved externals > ERROR: sh(cmd /q /c link.exe > priv/couch_ejson_compare/couch_ejson_compare.o icuin.lib icudt.lib > icuuc.lib /DLL /LIBPATH:"c:/Program > Files/erl9.3.3.14/lib/erl_interface-3.10.2.2/lib" ei.lib > /OUT:priv/couch_ejson_compare.dll) > failed with return code 1120 and the following output: > Microsoft (R) Incremental Linker Version 14.16.27045.0 > Copyright (C) Microsoft Corporation. All rights reserved. > > Creating library priv/couch_ejson_compare.lib and object > priv/couch_ejson_compare.exp > couch_ejson_compare.o : error LNK2019: unresolved external symbol > u_getVersion_60 referenced in function get_collator > couch_ejson_compare.o : error LNK2019: unresolved external symbol > uiter_setUTF8_60 referenced in function compare_strings > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_open_60 referenced in function get_collator > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_close_60 referenced in function on_unload > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_strcollIter_60 referenced in function compare_strings > couch_ejson_compare.o : error LNK2019: unresolved external symbol > ucol_getUCAVersion_60 referenced in function get_collator > priv/couch_ejson_compare.dll : fatal error LNK1120: 6 unresolved externals > > ERROR: compile failed while processing c:/relax/couchdb/src/couch: > rebar_abort > make: *** [.\Makefile.win:109: couch] Error 1 > > > Any new ideas? > > Cheers, > Ronny > > Florian Beckert & Ronny Berndt GbR > Saalstr. 3 > 07743 Jena > > Tel. 03641 - 6391110 > Fax. 03641 - 219637 > E-Mail: p...@kioskkinder.com > > > Am Mi., 17. Nov. 2021 um 14:53 Uhr schrieb Peng Hui Jiang < > jian...@cn.ibm.com>: > >> HI Ronny, >> >> Not sure whether you noticed the document >> >> https://github.com/apache/couchdb-glazier/blob/main/build-spidermonkey60.md >> when I worked on porting to SpiderMonkey 60. From the errors you listed, >> we know that it is related to unresolved symbols. Can we narrow down >> which >> library to defined and implement them? >> >> Sorry that I have to find one windows environment and work on weekend for >> follow up. >> >> Peng Hui @ Beijing >> >> >> >> >> From: "Ronny Berndt" <ro...@kioskkinder.com.INVALID> >> To: dev@couchdb.apache.org >> Date: 2021/11/17 04:51 PM >> Subject: [EXTERNAL] Re: Glazier (Was: [VOTE] Release Apache >> CouchDB >> 3.2.1) >> >> >> >> Good morning, >> >> yesterday I discussed with Jan about the "compile CouchDB on windows" >> problem. >> I followed the steps and ended with the same problem like Jan. >> >> The first problem is, that there is no pkg-config executable. So I >> installed it via choco: >> >> > choco install pkgconfiglite >> >> Then I started the mozilla-build shell: >> >> > C:\mozilla-build\start-shell.bat >> >> and added the chocolatey bin path to the path: >> >> > export PATH="/c/ProgramData/chocolatey/bin/:$PATH" >> >> so pkg-config --version should print 0.28 . >> >> then i also needed to set the PKG_CONFIG_PATH to >> >> > export >> PKG_CONFIG_PATH=/c/relax/vcpkg/installed/x64-windows/lib/pkgconfig >> >> and now, you should do the configure step and the run the mozmake command >> and you should end by the "new" error see >> >> https://pastebin.com/q26uEg6K >> >> >> There is a linker error with unresolved symbols. Any new ideas or tips to >> go further? >> >> Cheers, >> Ronny >> >> Florian Beckert & Ronny Berndt GbR >> Saalstr. 3 >> 07743 Jena >> >> Tel. 03641 - 6391110 >> Fax. 03641 - 219637 >> E-Mail: p...@kioskkinder.com >> >> >> Am Fr., 12. Nov. 2021 um 17:06 Uhr schrieb Joan Touzet >> <woh...@apache.org>: >> >> > On 12/11/2021 08:40, Jan Lehnardt wrote: >> > > My post is from just going through the README. Since then I found the >> > separate SM60 README, but haven’t acted on it just yet. >> > > >> > > I see no notes for esr68, if you have anything, even temp commits, I’d >> > take them :) >> > >> > Sorry, I must have aborted trying esr68, you are right that it's esr60 >> > that I was building against. >> > >> > Looking at the gecko-dev-60 tree I have the following in a git diff: >> > >> > >> https://gist.github.com/wohali/304db8e9ae2a97b562eb7c0c95e86388 >> >> > >> > I'm not sure the vswhere.exe change is required, but if so, it is copied >> > over from the default install. >> > >> >> >> >> >>