llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[-fmodules] linker errors when building llvm with libc++

Open Trass3r opened this issue 3 years ago • 2 comments

Same build of llvm as #59063, just with libc++. https://github.com/Trass3r/llvm-project/actions/runs/3652405070/jobs/6170757099

https://github.com/Trass3r/llvm-project/blob/64a7e047880c0c7211be9db740deb1ac4949a545/.github/workflows/CI.yml#L146-L163

Error: ld.lld: error: undefined symbol: clang::ast_matchers::internal::DynTypedMatcher::matches(clang::DynTypedNode const&, clang::ast_matchers::internal::ASTMatchFinder*, clang::ast_matchers::internal::BoundNodesTreeBuilder*) const

Trass3r avatar Nov 18 '22 13:11 Trass3r

@llvm/issue-subscribers-clang-modules

llvmbot avatar Nov 18 '22 16:11 llvmbot

It might be related to those old hacks: https://github.com/llvm/llvm-project/blob/main/clang/include/module.modulemap#L14 https://github.com/llvm/llvm-project/commit/91cef98d2c41eff0dea474a760d2dce5ba873209 https://github.com/llvm/llvm-project/blob/main/clang/include/module.modulemap#L193 https://github.com/llvm/llvm-project/commit/d0782a69ff4c04dc4f1dc1c11cb2fb43c6b638f5

Trass3r avatar Dec 21 '23 11:12 Trass3r