-
Notifications
You must be signed in to change notification settings - Fork 14.9k
Open
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.
Description
Our protobuf compile just started failing in LLVM 21.1.0. This worked on every other version of clang up until now.
/opt/llvm21.1.0/bin/clang++ -m64 -stdlib=libc++ -fno-ms-extensions -U_WIN32 -fsanitize=address -fsanitize-address-use-after-scope -fsanitize-address-use-after-return=always -fno-omit-frame-pointer -fno-optimize-sibling-calls -fsanitize=undefined -fno-sanitize=alignment -fno-sanitize=function -fsanitize=local-bounds -Wno-everything -g -glldb -gcolumn-info -g -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -mmacosx-version-min=15.6 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -m64 -fsanitize=address -fsanitize=undefined -fno-sanitize=function -fno-omit-frame-pointer -fsanitize=local-bounds CMakeFiles/protoc.dir/src/google/protobuf/compiler/main.cc.o -o protoc-3.21.12.0 libprotocd.a libprotobufd.a
ld64.lld: error: undefined symbol: std::__1::__hash_memory(void const*, unsigned long)
>>> referenced by /proto3774d1a7ae5e8/b/src/src/google/protobuf/compiler/command_line_interface.cc
>>> libprotocd.a(command_line_interface.cc.o):(symbol unsigned long std::__1::__do_string_hash[abi:ne210100]<char const*>(char const*, char const*)+0x24)
>>> referenced by /proto3774d1a7ae5e8/b/src/src/google/protobuf/compiler/cpp/file.cc
>>> libprotocd.a(file.cc.o):(symbol std::__1::hash<google::protobuf::Descriptor const*>::operator()[abi:ne210100](google::protobuf::Descriptor const*) const+0xe0)
>>> referenced by /proto3774d1a7ae5e8/b/src/src/google/protobuf/compiler/cpp/file.cc
>>> libprotocd.a(file.cc.o):(symbol std::__1::hash<google::protobuf::FileDescriptor const*>::operator()[abi:ne210100](google::protobuf::FileDescriptor const*) const+0xe0)
>>> referenced 2 more times
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [CMakeFiles/protoc.dir/build.make:102: protoc-3.21.12.0] Error 1
make[2]: Leaving directory '/proto3774d1a7ae5e8/b/build/Debug'
make[1]: *** [CMakeFiles/Makefile2:193: CMakeFiles/protoc.dir/all] Error 2
make[1]: Leaving directory '/proto3774d1a7ae5e8/b/build/Debug'
make: *** [Makefile:136: all] Error 2
peter-joo
Metadata
Metadata
Assignees
Labels
libc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.