question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Link error v8_context_snapshot_generator OSX Mojave on latest nw45

See original GitHub issue

NWJS Version : nw45 Operating System : OSX Mojave

❯ sw_vers ProductName: Mac OS X ProductVersion: 10.15.3 BuildVersion: 19D76

❯ clang --version Apple clang version 11.0.3 (clang-1103.0.32.29) Target: x86_64-apple-darwin19.3.0 Thread model: posix InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

SDK: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk

Expected behavior

It should compile normally

Actual behavior

[263/689] LINK ./v8_context_snapshot_generator
FAILED: v8_context_snapshot_generator
TOOL_VERSION=1586670580 ../../build/toolchain/mac/linker_driver.py -Wcrl,strippath,/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip ../../third_party/llvm-build/Release+Asserts/bin/clang++ -B /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/  -Wl,-fatal_warnings -stdlib=libc++ -arch x86_64 -Werror -nostdlib++ -isysroot ../../../../../../Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -mmacosx-version-min=10.10.0 -Wl,-ObjC -Wl,-rpath,@loader_path/. -lc++abi -Wl,-rpath,@loader_path/../../.. -weak_framework MediaPlayer -o "./v8_context_snapshot_generator" -Wl,-filelist,"./v8_context_snapshot_generator.rsp" ./libgin.dylib ./libmojo_core_embedder.dylib ./libservice_manager_cpp.dylib ./libv8.dylib ./libbase.dylib ./libboringssl.dylib ./libicui18n.dylib ./libicuuc.dylib ./libservice_manager_cpp_types.dylib ./libbindings.dylib ./libbindings_base.dylib ./libmojo_public_system_cpp.dylib ./libmojo_public_system.dylib ./libmojo_cpp_platform.dylib ./libmessage_support.dylib ./libmojo_mojom_bindings.dylib ./libmojo_mojom_bindings_shared.dylib ./libservice_manager_mojom.dylib ./libservice_manager_mojom_shared.dylib ./libservice_manager_mojom_constants_shared.dylib ./libmojo_base_mojom_shared.dylib ./libservice_manager_mojom_constants.dylib ./libmojo_base_mojom.dylib ./libmojo_base_lib.dylib ./libmojo_base_shared_typemap_traits.dylib ./libbase_i18n.dylib ./libservice_manager_mojom_traits.dylib ./liburl.dylib ./libnet.dylib ./libprotobuf_lite.dylib ./libcrcrypto.dylib ./libskia.dylib ./libblink_common.dylib ./libnetwork_cpp.dylib ./libnetwork_cpp_base.dylib ./libip_address_mojom_support.dylib ./liburl_ipc.dylib ./libipc.dylib ./libipc_mojom.dylib ./libipc_mojom_shared.dylib ./libtracing_cpp.dylib ./libperfetto.dylib ./libstartup_tracing.dylib ./libtracing_mojom.dylib ./libtracing_mojom_shared.dylib ./libcontent_settings_features.dylib ./libwebrtc_component.dylib ./libskia_shared_typemap_traits.dylib ./libgeometry.dylib ./libgfx.dylib ./libcolor_space.dylib ./libcolor_utils.dylib ./libgeometry_skia.dylib ./libgfx_switches.dylib ./libanimation.dylib ./libcodec.dylib ./librange.dylib ./libcc_paint.dylib ./libcc_base.dylib ./libcc_debug.dylib ./libgpu.dylib ./libgfx_ipc.dylib ./libgfx_ipc_geometry.dylib ./libvulkan_ycbcr_info.dylib ./liblearning_common.dylib ./libmedia.dylib ./libshared_memory_support.dylib ./libleveldb_proto.dylib ./libkeyed_service_core.dylib ./libleveldatabase.dylib ./libgfx_ipc_color.dylib ./libmojom_modules_shared.dylib ./libandroid_mojo_bindings_shared.dylib ./libmojom_core_shared.dylib ./libmojom_platform_shared.dylib ./libauthenticator_test_mojo_bindings_shared.dylib ./libmojom_mhtml_load_result_shared.dylib ./libweb_feature_mojo_bindings_mojom_shared.dylib ./libdom_storage_mojom_shared.dylib ./libframe_mojom_shared.dylib ./libusb_shared.dylib ./libmedia_session_base_cpp.dylib ./libfido.dylib ./libbluetooth.dylib ./libweb_feature_mojo_bindings_mojom.dylib ./libcc.dylib ./libviz_common.dylib ./libviz_resource_format_utils.dylib ./libviz_metal_context_provider.dylib ./libcc_ipc.dylib ./libmetrics_cpp.dylib ./libplatform.dylib ./libdom_storage_mojom.dylib ./libframe_mojom.dylib ./libui_base_ime_types.dylib ./libdisplay.dylib ./libdisplay_types.dylib ./libevents.dylib ./libevents_base.dylib ./libui_events_ipc.dylib ./libui_base_clipboard_types.dylib ./libweb_bluetooth_mojo_bindings_shared.dylib ./libui_accessibility_ax_mojom.dylib ./libui_accessibility_ax_mojom_shared.dylib ./libcapture_base.dylib ./libcapture_lib.dylib ./libmedia_webrtc.dylib ./libwtf.dylib ./libui_base.dylib ./libui_base_features.dylib ./libui_data_pack.dylib ./libfile_info.dylib ./libblink_controller.dylib ./libblink_core.dylib ./libblink_mojom_broadcastchannel_bindings_shared.dylib ./libweb_feature_mojo_bindings_mojom_blink.dylib ./libwtf_support.dylib ./libmojo_base_mojom_blink.dylib ./libservice_manager_mojom_blink.dylib ./libservice_manager_mojom_constants_blink.dylib ./libblink_platform.dylib ./libcc_animation.dylib ./libgles2_utils.dylib ./libresource_coordinator_public_mojom_blink.dylib ./libresource_coordinator_public_mojom_shared.dylib ./libchrome_zlib.dylib ./libcrdtp.dylib ./libnative_theme.dylib ./libblink_modules.dylib ./libc++.dylib
Undefined symbols for architecture x86_64:
  "V8_Fatal(char const*, int, char const*, ...)", referenced from:
        v8::internal::ArrayFlattenAssembler::FlattenIntoArray(v8::internal::TNode<v8::internal::Context>, v8::internal::TNode<v8::internal::JSReceiver>, v8::internal::TNode<v8::internal::JSReceiver>, v8::internal::TNode<v8::internal::UnionT<v8::internal::Smi, v8::internal::HeapNumber> >, v8::internal::TNode<v8::internal::UnionT<v8::internal::Smi, v8::internal::HeapNumber> >, v8::internal::TNode<v8::internal::UnionT<v8::internal::Smi, v8::internal::HeapNumber> >, v8::base::Optional<v8::internal::TNode<v8::internal::HeapObject> >, v8::base::Optional<v8::internal::TNode<v8::internal::Object> >) in builtins-array-gen.o

How to reproduce

Build on OSX against latest nw45 branches and HEAD for nwjs/nw.js, nwjs/node, and nwjs/v8, gclient config --name=src https://github.com/nwjs/chromium.src.git@origin/nw45

Maybe some more detailed build instructions for MacOS are available than http://docs.nwjs.io/en/latest/For Developers/Building NW.js/#building-nwjs

Or some build system scripts?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thedraclecommented, Apr 13, 2020

@rogerwang Also, trying to build the Release build yields another failure:

src on  HEAD (b32921e) [?] via 🐍 v2.7.16 took 6s
❯ gn gen out/nw "--args=is_debug=true"

Done. Made 10891 targets from 1887 files in 4674ms

src on  HEAD (b32921e) [?] via 🐍 v2.7.16 took 4s
❯ gn gen out/nw "--args=is_debug=false"

ERROR Unresolved dependencies.
//content/nw:dump(//build/toolchain/mac:clang_x64)
  needs //chrome:nw_sym_archive(//build/toolchain/mac:clang_x64)
0reactions
shikhakcommented, Dec 9, 2022

Does anyone found out the solution to this? I am facing the same issue. Cant do it in Release because of the below error : ERROR Unresolved dependencies. //content/nw:dump(//build/toolchain/mac:clang_x64) needs //chrome:nw_sym_archive(//build/toolchain/mac:clang_x64)

And debug has v8__context_snapshot_generator linking error. Any help is appreciated!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Mojave - "An error occurred installing ma… - Apple Community
I am trying to upgrade my 2018 MacBook Pro 15" from High Sierra to Mojave, but it says "An error occurred installing macOS"...
Read more >
How to install macOS Mojave on Unsupported Macs - iFixit
1. Grab a copy of the Mojave Patch Tool at the link below: 2. Once the patch tool has finished downloading, open it...
Read more >
How to Install macOS 10.14 Mojave on an Unsupported Mac
In this video, I go over the process of installing macOS 10.14 Mojave on an unsupported Mac. This entire process involves the use...
Read more >
How to Downgrade MacOS Catalina to Mojave and fix an error ...
Post testing and upgrading from Mojave to Catalina (Macbook pro Mid 2012) my personal experience is that it had performance issues and ...
Read more >
How to Fix “application is damaged, can't be used to install ...
“This copy of the Install macOS Mojave.app application is damaged, ... macOS” error message, and did you fix it by downloading a new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found