Link error v8_context_snapshot_generator OSX Mojave on latest nw45
See original GitHub issueNWJS 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:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top GitHub Comments
@rogerwang Also, trying to build the Release build yields another failure:
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!