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

Mac M2 Build Issue [OS 14.6.1] #166

Open
kaiming-uw opened this issue Nov 1, 2024 · 0 comments
Open

Mac M2 Build Issue [OS 14.6.1] #166

kaiming-uw opened this issue Nov 1, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@kaiming-uw
Copy link

Instructions To Reproduce the 🐛 Bug:

  1. Full runnable code or full changes you made:

None

  1. What exact command you run:
brew install cmake ninja ccache boost fmt cereal libpng jpeg lz4 zstd xxhash googletest
brew install node doxygen
cmake -S . -B build -G Ninja      
cd build
ninja all

  1. Full logs or other relevant observations:
[121/154] Linking CXX executable vrs/utils/xxhash/test_vrs_utils_xxhash
FAILED: vrs/utils/xxhash/test_vrs_utils_xxhash vrs/utils/xxhash/test_vrs_utils_xxhash[1]_tests.cmake /Users/kaiming/Downloads/vrs-1.3.0/build/vrs/utils/xxhash/test_vrs_utils_xxhash[1]_tests.cmake 
: && /usr/local/bin/ccache /Library/Developer/CommandLineTools/usr/bin/clang++ -O3 -DNDEBUG -arch x86_64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  vrs/utils/xxhash/CMakeFiles/test_vrs_utils_xxhash.dir/test/xxhashTest.cpp.o -o vrs/utils/xxhash/test_vrs_utils_xxhash  vrs/utils/xxhash/libvrs_utils_xxhash.a  vrs/oss/logging/libvrs_logging.a  /usr/local/lib/libfmt.11.0.2.dylib  /usr/local/lib/libxxhash.dylib  /usr/local/lib/libgtest_main.a  /usr/local/lib/libgtest.a && cd /Users/kaiming/Downloads/vrs-1.3.0/build/vrs/utils/xxhash && /usr/local/Cellar/cmake/3.30.5/bin/cmake -D TEST_TARGET=test_vrs_utils_xxhash -D TEST_EXECUTABLE=/Users/kaiming/Downloads/vrs-1.3.0/build/vrs/utils/xxhash/test_vrs_utils_xxhash -D TEST_EXECUTOR= -D TEST_WORKING_DIR=/Users/kaiming/Downloads/vrs-1.3.0/build/vrs/utils/xxhash -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D TEST_LIST=test_vrs_utils_xxhash_TESTS -D CTEST_FILE=/Users/kaiming/Downloads/vrs-1.3.0/build/vrs/utils/xxhash/test_vrs_utils_xxhash[1]_tests.cmake -D TEST_DISCOVERY_TIMEOUT=5 -D TEST_XML_OUTPUT_DIR= -P /usr/local/Cellar/cmake/3.30.5/share/cmake/Modules/GoogleTestAddTests.cmake
ld: warning: dylib (/usr/local/lib/libxxhash.dylib) was built for newer macOS version (14.0) than being linked (11.0)
ld: warning: dylib (/usr/local/lib/libfmt.11.0.2.dylib) was built for newer macOS version (14.0) than being linked (11.0)
ld: warning: object file (/usr/local/lib/libgtest.a(gtest-all.cc.o)) was built for newer macOS version (14.0) than being linked (11.0)
ld: warning: object file (/usr/local/lib/libgtest_main.a(gtest_main.cc.o)) was built for newer macOS version (14.0) than being linked (11.0)
Undefined symbols for architecture x86_64:
  "VTT for std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>", referenced from:
      testing::internal::DeathTestImpl::Passed(bool) in libgtest.a(gtest-all.cc.o)
      std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_ostringstream[abi:ue170006]() in libgtest.a(gtest-all.cc.o)
      std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>::~basic_ostringstream() in libgtest.a(gtest-all.cc.o)
  "vtable for std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>", referenced from:
      std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char>>::basic_ostringstream[abi:ue170006]() in libgtest.a(gtest-all.cc.o)
  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[124/154] Linking CXX static library vrs/oss/TestDataDir/libvrs_oss_testdatadir.a
ninja: build stopped: subcommand failed.

@kaiming-uw kaiming-uw added the bug Something isn't working label Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant