Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 874339 - media-libs/lsp-plugins: not building with clang+lto (lsp-tk-lib/main/helpers/arrange.o: file not recognized: file format not recognized)
Summary: media-libs/lsp-plugins: not building with clang+lto (lsp-tk-lib/main/helpers/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthew Thode ( prometheanfire )
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: tc-directly systemwide-clang lto
  Show dependency tree
 
Reported: 2022-10-03 00:24 UTC by Mazunki Hoksaas
Modified: 2024-03-15 02:53 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
First third of build log, compressed (build.log-1.xz,850.05 KB, application/x-xz)
2022-10-03 00:42 UTC, Mazunki Hoksaas
Details
Second third of build log, compressed (build.log-2.xz,773.80 KB, application/x-xz)
2022-10-03 00:43 UTC, Mazunki Hoksaas
Details
Last third of build log, compressed (build.log-3.xz,723.98 KB, application/x-xz)
2022-10-03 00:43 UTC, Mazunki Hoksaas
Details
emerge --info lsp-plugins (lsp-plugins-emerge.info,16.59 KB, text/plain)
2022-10-03 00:43 UTC, Mazunki Hoksaas
Details
clean -Wno-gnu-static-float-init (lsp-plugins-build.log,463.18 KB, text/x-log)
2022-10-03 00:50 UTC, Mazunki Hoksaas
Details
build.log of version bump (lsp-plugin-1.2.3.log,874.56 KB, text/x-log)
2022-10-03 02:13 UTC, Mazunki Hoksaas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mazunki Hoksaas 2022-10-03 00:24:32 UTC
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.
Comment 1 Mazunki Hoksaas 2022-10-03 00:42:47 UTC
Created attachment 816094 [details]
First third of build log, compressed

File too big, split in three and then compressed
Comment 2 Mazunki Hoksaas 2022-10-03 00:43:05 UTC
Created attachment 816097 [details]
Second third of build log, compressed

File too big, split in three and then compressed
Comment 3 Mazunki Hoksaas 2022-10-03 00:43:18 UTC
Created attachment 816100 [details]
Last third of build log, compressed

File too big, split in three and then compressed
Comment 4 Mazunki Hoksaas 2022-10-03 00:43:37 UTC
Created attachment 816103 [details]
emerge --info lsp-plugins
Comment 5 Mazunki Hoksaas 2022-10-03 00:50:20 UTC
Created attachment 816106 [details]
clean -Wno-gnu-static-float-init

build.log
Comment 6 Larry the Git Cow gentoo-dev 2022-10-03 01:57:22 UTC
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(-)
Comment 7 Mazunki Hoksaas 2022-10-03 02:13:26 UTC
Created attachment 816112 [details]
build.log of version bump

Still fails
Comment 8 Peter Levine 2022-12-17 10:30:35 UTC
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.
Comment 9 Larry the Git Cow gentoo-dev 2024-03-15 02:53:45 UTC
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(-)