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

apple x86-64 build Symbol not found __ZNSt3__122__libcpp_verbose_abortEPKcz #74559

Open
calvin2021y opened this issue Dec 6, 2023 · 3 comments

Comments

@calvin2021y
Copy link

build with

llvm/utils/release/test-release.sh \
  -release 17.0.6\
  -final \
  -triple x86_64-apple-darwin22 \
  -j 8 \
  -use-ninja \
  -configure-flags  "-DLLVM_USE_STATIC_ZSTD=ON" \
  -lldb
cd /opt/procjets/llvm-project/final/Phase3/Release/llvmCore-17.0.6-final.obj && /opt/procjets/llvm-project/final/Phase3/Release/llvmCore-17.0.6-final.obj/bin/llvm-min-tblgen -gen-vt -I /opt/procjets/llvm-project/final/llvm-project/llvm/include/llvm/CodeGen -I/opt/procjets/llvm-project/final/Phase3/Release/llvmCore-17.0.6-final.obj/include -I/opt/procjets/llvm-project/final/llvm-project/llvm/include /opt/procjets/llvm-project/final/llvm-project/llvm/include/llvm/CodeGen/ValueTypes.td --write-if-changed -o include/llvm/CodeGen/GenVT.inc -d include/llvm/CodeGen/GenVT.inc.d
dyld[85665]: Symbol not found: __ZNSt3__122__libcpp_verbose_abortEPKcz
  Referenced from: <CB47C4F5-A6AD-3C77-9708-F01B764A6FA9> /opt/procjets/llvm-project/final/Phase3/Release/llvmCore-17.0.6-final.obj/bin/llvm-min-tblgen
  Expected in:     <B8339FB2-CBAE-3D84-B080-BD19DDB2981C> /usr/lib/libc++.1.dylib

arm64-apple-darwin22 get the same error.

macOS 13.2.1 with xcode 14.3.1

@ykfq
Copy link

ykfq commented Jan 10, 2024

Got same error when building latest ungoogled-chromium-macos from source for Intel Core i5:

dyld[57934]: Symbol not found: (__ZNSt3__122__libcpp_verbose_abortEPKcz)
  Referenced from: '~/workpsace/ungoogled-chromium-macos/build/src/third_party/llvm-build/Release+Asserts/bin/clang-17'
  Expected in: '/usr/lib/libc++.1.dylib'
ninja: build stopped: subcommand failed.

@Rubyer77
Copy link

Rubyer77 commented Aug 4, 2024

@ykfq did you find a fix, i have the same problem

@calvin2021y
Copy link
Author

I use cmake build now, this will skip IOS related files:

cmake -S llvm -B build -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DLLVM_ENABLE_PROJECTS="clang;lld" \
-DCMAKE_INSTALL_PREFIX=/opt/local/llvm \
-DLLVM_TARGETS_TO_BUILD='AArch64' \
-DLLVM_DEFAULT_TARGET_TRIPLE='aarch64-apple-darwin23' \
-DLLVM_ENABLE_RUNTIMES="compiler-rt;libcxx;libcxxabi;libunwind;openmp" \
-DLLVM_CREATE_XCODE_TOOLCHAIN=OFF \
-DDEFAULT_SYSROOT="$(xcrun --show-sdk-path)" \
-DLLVM_ENABLE_LIBCXX=ON \
-DLIBCXX_PSTL_CPU_BACKEND=libdispatch

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

No branches or pull requests

4 participants