-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Closed
Labels
Description
Bugzilla Link | 51230 |
Version | unspecified |
OS | All |
CC | @gkmhub,@MaskRay,@int3,@thevinster,@nico,@smeenai,@oontvoo |
Extended Description
I tried enabling the use of ld64.lld in our toolchain build that uses (regular) LTO but I see a number of BugPoint tests failure which all looks the same:
Error opening '/opt/s/w/ir/x/w/staging/llvm_build/tools/clang/stage2-bins/lib/BugpointPasses.dylib': dlopen(/opt/s/w/ir/x/w/staging/llvm_build/tools/clang/stage2-bins/lib/BugpointPasses.dylib, 9): Symbol not found: __ZNK4llvm4Pass11getPassNameEv
Referenced from: /opt/s/w/ir/x/w/staging/llvm_build/tools/clang/stage2-bins/lib/BugpointPasses.dylib
Expected in: flat namespace
in /opt/s/w/ir/x/w/staging/llvm_build/tools/clang/stage2-bins/lib/BugpointPasses.dylib
-load request ignored.
bugpoint: Unknown command line argument '-bugpoint-crashcalls'. Try: '/opt/s/w/ir/x/w/staging/llvm_build/tools/clang/stage2-bins/bin/bugpoint --help'
bugpoint: Did you mean '--print-after-all'?
I suspect it's related to the use of -flat_namespace, see
set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,-flat_namespace -Wl,-undefined -Wl,suppress") |
llvm-project/lld/MachO/LTO.cpp
Line 83 in d7d2e45
config->namespaceKind == NamespaceKind::flat || |