Skip to content

Commit c24d8bd

Browse files
[lldb][Arm] Use lld for linking and tests (#263)
Since https://lab.llvm.org/buildbot/#/builders/18/builds/3578 the build has been failing with: ``` FAILED: lib/libclang-cpp.so.20.0git : && /usr/local/bin/c++ -fPIC -fPIC -fno-semantic-interposition <...> -lm /usr/lib/arm-linux-gnueabihf/libz.so && : /usr/bin/ld.gold: internal error in open, at ../../gold/descriptors.cc:99 ``` gold is no longer maintained and in my own experience hitting this same sort of error, my only solution was to switch to ld or lld. There's no particular reason to use gold here I think it was just set that way before lld was useable on Arm. Since we're linking clang with it we might as well use it in tests too, so make lld clang's default linker.
1 parent cce600b commit c24d8bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

buildbot/osuosl/master/config/builders.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1310,7 +1310,8 @@
13101310
extra_cmake_args=[
13111311
'-DLLVM_ENABLE_ASSERTIONS=True',
13121312
'-DLLVM_LIT_ARGS=-vj 4',
1313-
'-DLLVM_USE_LINKER=gold',
1313+
'-DLLVM_USE_LINKER=lld',
1314+
'-DCLANG_DEFAULT_LINKER=lld',
13141315
'-DLLDB_ENFORCE_STRICT_TEST_REQUIREMENTS=ON'])},
13151316

13161317
{'name' : "lldb-aarch64-windows",

0 commit comments

Comments
 (0)