Public bug reported:
swiftlang 5.8.1-2 fails to build from source. While building the
compiler-rt module, the default LTO flags supplied by dpkg-buildflags
cause an attempt to configure the LLVM gold linker plugin, a part of the
LLVM project, which is not found [1].
/usr/bin/ld:
/<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64/bin/../lib/LLVMgold.so:
error loading plugin:
/<<PKGBUILDDIR>>/build/buildbot_linux/llvm-linux-x86_64/bin/../lib/LLVMgold.so:
cannot open shared object file: No such file or directory
The upstream swiftlang project sources include a downstream llvm-project
version. Though the LLVMGold.so plugin must be built as a part of the
llvm-project, I wasn't able to confirm if swiftlang's downstream llvm-project
enables this. The other possible reason is that we are trying to build the
compiler-rt component before building the gold plugin - I wasn't able to
confirm this either.
Disabling LTO lets the build pass. This solution has been implemented on
the swiftlang package in Debian [2]. Ideally, we should be try getting
the LLVMgold plugin built and made available for LTO. But we might just
want to sync with Debian for now, once a new swiftlang package release
is made.
[1]
https://launchpadlibrarian.net/760550460/buildlog_ubuntu-plucky-amd64.swiftlang_5.8.1-2_BUILDING.txt.gz
[2]
https://salsa.debian.org/pkg-llvm-team/swiftlang/-/commit/62cc113f1a492237df74741cb03aa81d261292af
** Affects: swiftlang (Ubuntu)
Importance: Undecided
Status: New
** Tags: update-excuse
** Tags added: update-excuse
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2090820
Title:
swiftlang 5.8.1-2 FTBFS : LLVM gold linker plugin not found
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/swiftlang/+bug/2090820/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs