Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fail on macOS arm64 - ld: symbol(s) not found for architecture arm64 #53258

Closed
jakecastelli opened this issue Jun 2, 2024 · 1 comment

Comments

@jakecastelli
Copy link
Member

Version

main

Platform

Darwin arm64

Subsystem

No response

What steps will reproduce the bug?

on current main run make

How often does it reproduce? Is there a required condition?

No response

What is the expected behavior? Why is that the expected behavior?

No response

What do you see instead?

ninja -C out/Release  -j4
ninja: Entering directory `out/Release'
[6/25] LINK node_mksnapshot, POSTBUILDS
FAILED: node_mksnapshot 
c++ -Wl,-force_load,libzlib.a -Wl,-force_load,libuv.a -Wl,-force_load,libv8_snapshot.a -Wl,-force_load,libopenssl.a -Wl,-search_paths_first -mmacosx-version-min=11.0 -arch arm64 -L./ -stdlib=libc++ -o node_mksnapshot obj/src/node_mksnapshot.node_snapshot_stub.o obj/tools/snapshot/node_mksnapshot.node_mksnapshot.o libnode.a libhistogram.a libada.a libsimdjson.a libsimdutf.a libv8_snapshot.a libv8_libplatform.a libicui18n.a libzlib.a libllhttp.a libcares.a libuv.a libuvwasi.a libnghttp2.a libbrotli.a libopenssl.a libngtcp2.a libnghttp3.a libicuucx.a libicudata.a libv8_base_without_compiler.a libv8_libbase.a libv8_abseil.a libv8_zlib.a libv8_compiler.a libv8_turboshaft.a libv8_initializers.a libv8_initializers_slow.a libzlib_inflate_chunk_simd.a libzlib_adler32_simd.a libzlib_arm_crc32.a  -framework CoreFoundation -lm
Undefined symbols for architecture arm64:
  "vtable for node::permission::WASIPermission", referenced from:
      node::permission::Permission::Permission() in libnode.a(libnode.permission.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[7/25] LINK embedtest, POSTBUILDS
FAILED: embedtest 
c++ -Wl,-force_load,libzlib.a -Wl,-force_load,libuv.a -Wl,-force_load,libv8_snapshot.a -Wl,-force_load,libopenssl.a -Wl,-search_paths_first -mmacosx-version-min=11.0 -arch arm64 -L./ -stdlib=libc++ -o embedtest obj/src/embedtest.node_snapshot_stub.o obj/test/embedding/embedtest.embedtest.o libnode.a libhistogram.a libada.a libv8_snapshot.a libv8_libplatform.a libicui18n.a libzlib.a libllhttp.a libcares.a libuv.a libuvwasi.a libnghttp2.a libbrotli.a libopenssl.a libngtcp2.a libnghttp3.a libsimdjson.a libsimdutf.a libicuucx.a libicudata.a libv8_base_without_compiler.a libv8_libbase.a libv8_abseil.a libv8_zlib.a libv8_compiler.a libv8_turboshaft.a libv8_initializers.a libv8_initializers_slow.a libzlib_inflate_chunk_simd.a libzlib_adler32_simd.a libzlib_arm_crc32.a  -framework CoreFoundation -lm
Undefined symbols for architecture arm64:
  "vtable for node::permission::WASIPermission", referenced from:
      node::permission::Permission::Permission() in libnode.a(libnode.permission.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[9/25] CXX obj/test/cctest/cctest.test_per_process.o
ninja: build stopped: subcommand failed.
gmake: *** [Makefile:153: node] Error 1

The build failure starts from 3ab0499 commit hash (may related to #53124) as the commit 00a86fe after it builds fine on my machine.

Additional information

Build failed on both GNU make v3 and v4.

@jakecastelli
Copy link
Member Author

Sorry I forgot to run ./configure --node-builtin-modules-path "$(pwd)" --ninja

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant