Fail to build nwjs sdk in latest nw70

58 views
Skip to first unread message

Niv

unread,
Dec 8, 2022, 4:20:30 AM12/8/22
to nw.js
Hey guys,

I'm failing to build nwjs on the latest nw70 branch.

The message i'm getting:
[53532/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/unorm.o
[53533/55253] LINK v8_context_snapshot_generator.exe v8_context_snapshot_generator.exe.pdb
[53534/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uprops.o
[53535/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/usc_impl.o
[53536/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/ures_cnv.o
[53537/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uresbund.o
[53538/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uresdata.o
[53539/55253] ACTION //tools/v8_context_snapshot:generate_v8_context_snapshot(//build/toolchain/win:win_
FAILED: v8_context_snapshot.bin
C:/depot_tools/bootstrap-2@3_8_10_chromium_23_bin/python3/bin/python3.exe ../../tools/v8_context_snapshoapshot_generator --output_file=v8_context_snapshot.bin
..\..\base\allocator\partition_allocator\partition_alloc.cc(128) Check failed: opts.thread_cache == Parte::kDisabled
[53540/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uscript_props.o
[53541/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uset.o
[53542/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uscript.o
[53543/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/usetiter.o
[53544/55253] CXX irt_x64/obj/third_party/icu/icuuc_private/uset_props.o
ninja: build stopped: subcommand failed.


When commenting the following lines in the attached picture, the build seems to work and passing the problematic error mentioned above

Attached also the build error picture


Did anyone faced this issue?

Thanks!
image_2022-12-08_11-01-16.png
image_2022-12-08_11-18-22.png

Steve Durham

unread,
Dec 8, 2022, 9:01:29 AM12/8/22
to nw.js
Yep I see this too hadn't posted yet.
On Mac, with shared library build. I've tried a bunch of things.

I get almost to the end of building nw and there are a bunch similar to this (v8_context_snapshot).
I would love to have this fixed, I don't know enough about the code base to do it.

I also have build issues in shared library build on Windows as well.

Niv

unread,
Dec 8, 2022, 9:42:09 AM12/8/22
to nw.js
Did you try nw69 / nw68?

I pulled the code but i didn't try to build them yet

Steve Durham

unread,
Dec 8, 2022, 11:39:51 AM12/8/22
to nw.js
No, haven't had time, sort of a side project.
We use nwjs, and I want to get things set up so I can actually step into chromium to track down some things but not the highest priority.

It might be nice if Roger could add this sort of build to buildbot... even if it doesn't create a deployed binary at least it would detect if the shared library builds break, and would show any differences in the build commands needed.

Niv

unread,
Dec 8, 2022, 6:06:14 PM12/8/22
to nw.js
It looks like nwjs71 is here, so I'll try to do the same in 71 and update here if it's happening over there too or not.

Niv

unread,
Dec 10, 2022, 2:55:01 AM12/10/22
to nw.js
Update:

Happens on NWJS 71 as well

Niv

unread,
Dec 11, 2022, 2:47:06 AM12/11/22
to nw.js
Update:

So i found a solution for this issue - you just need to add the following arguments to the args file (in out/nw):
v8_win64_unwinding_info=true use_allocator="none" use_allocator_shim=false
Reply all
Reply to author
Forward
0 new messages