Building lsp-plugins fails when using Clang with LTO. It builds fine in a clang-no-lto environment, and in a gcc-with-lto environment. There are plenty of warnings such as `in-class initializer for static data member of type 'const float' is a GNU extension` in the logs, but the main error I can spot is the "file format not recognized". I'm running no-multilib, could that be related? Full failed build.log attached.
Created attachment 816094 [details] First third of build log, compressed File too big, split in three and then compressed
Created attachment 816097 [details] Second third of build log, compressed File too big, split in three and then compressed
Created attachment 816100 [details] Last third of build log, compressed File too big, split in three and then compressed
Created attachment 816103 [details] emerge --info lsp-plugins
Created attachment 816106 [details] clean -Wno-gnu-static-float-init build.log
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd9f8c64fb3090149a26b66c872dbb1bb7f75fbe commit cd9f8c64fb3090149a26b66c872dbb1bb7f75fbe Author: Sam James <sam@gentoo.org> AuthorDate: 2022-10-03 01:50:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-10-03 01:55:09 +0000 media-libs/lsp-plugins: add 1.2.3 Bug: https://bugs.gentoo.org/683400 Bug: https://bugs.gentoo.org/832147 Bug: https://bugs.gentoo.org/874339 Closes: https://bugs.gentoo.org/768804 Closes: https://bugs.gentoo.org/853826 Thanks-to: Olivier Huber <oli.huber@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> media-libs/lsp-plugins/Manifest | 1 + media-libs/lsp-plugins/lsp-plugins-1.2.3.ebuild | 88 +++++++++++++++++++++++++ media-libs/lsp-plugins/lsp-plugins-9999.ebuild | 63 ++++++++++++++---- media-libs/lsp-plugins/metadata.xml | 3 +- 4 files changed, 140 insertions(+), 15 deletions(-)
Created attachment 816112 [details] build.log of version bump Still fails
This is probably because the build calls 'c++' directly. The package should be added to https://bugs.gentoo.org/243502. It needs to pass CXX="$(tc-getCXX)" to emake in the src_configure phase.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2e1a1763119efca3eaa26835bafdc664ca039b7d commit 2e1a1763119efca3eaa26835bafdc664ca039b7d Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-15 02:53:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-15 02:53:10 +0000 media-libs/lsp-plugins: backport LTO filtering Bug: https://bugs.gentoo.org/875833 Closes: https://bugs.gentoo.org/874339 Signed-off-by: Sam James <sam@gentoo.org> media-libs/lsp-plugins/lsp-plugins-1.2.3-r1.ebuild | 11 +++++++++++ media-libs/lsp-plugins/lsp-plugins-1.2.3.ebuild | 11 +++++++++++ media-libs/lsp-plugins/lsp-plugins-1.2.6.ebuild | 11 +++++++++++ 3 files changed, 33 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f33a8e2902830c31cd05c7900c8837eebbdb310c commit f33a8e2902830c31cd05c7900c8837eebbdb310c Author: Sam James <sam@gentoo.org> AuthorDate: 2024-03-15 02:51:29 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-15 02:51:29 +0000 media-libs/lsp-plugins: respect CC, CXX, LD Bug: https://bugs.gentoo.org/874339 Signed-off-by: Sam James <sam@gentoo.org> media-libs/lsp-plugins/lsp-plugins-1.2.14.ebuild | 8 +++++++- media-libs/lsp-plugins/lsp-plugins-1.2.3-r1.ebuild | 10 ++++++++-- media-libs/lsp-plugins/lsp-plugins-1.2.3.ebuild | 10 ++++++++-- media-libs/lsp-plugins/lsp-plugins-1.2.6.ebuild | 10 ++++++++-- media-libs/lsp-plugins/lsp-plugins-9999.ebuild | 8 +++++++- 5 files changed, 38 insertions(+), 8 deletions(-)