Created attachment 887253 [details] emerge --info net-misc/networkmanager-1.46.0::gentoo fails to build with Clang 17 and Clang 19 and -flto (amd64 musl llvm) Checking for size of "pid_t" : 4 Checking for size of "uid_t" : 4 Checking for size of "gid_t" : 4 Checking for size of "dev_t" : 8 Checking for size of "ino_t" : 8 Checking for size of "time_t" : 8 Checking for size of "rlim_t" : 8 Compiler for C supports arguments -flto-partition=none: NO ../NetworkManager-1.46.0/meson.build:170:2: ERROR: Assert failed: -flto-partition=none not supported. Disable link-time optimization with -Db_lto=false. A full log can be found at /var/tmp/portage/net-misc/networkmanager-1.46.0/work/NetworkManager-1.46.0-abi_x86_64.amd64/meson-logs/meson-log.txt * ERROR: net-misc/networkmanager-1.46.0::gentoo failed (configure phase): meson-log: ----------- Command line: `clang /var/tmp/portage/net-misc/networkmanager-1.46.0/work/NetworkManager-1.46.0-abi_x86_64.amd64/meson-private/tmpmmqp18tb/testfile.c -o /var/tmp/portage/net-misc/networkmanager-1.46.0/work/NetworkManager-1.46.0-abi_x86_64.amd64/meson-private/tmpmmqp18tb/output.obj -c -O3 -pipe -march=native -mtune=native -D_FORTIFY_SOURCE=3 -g0 -D_LARGEFILE64_SOURCE -Werror=odr -Werror=conditional-type-mismatch -Werror=pointer-type-mismatch -Werror=selector-type-mismatch -Werror=strict-aliasing -fPIC -D_FILE_OFFSET_BITS=64 -O0 -Werror=implicit-function-declaration -Werror=unknown-warning-option -Werror=unused-command-line-argument -Werror=ignored-optimization-argument -flto-partition=none` -> 1 stderr: clang: error: unknown argument: '-flto-partition=none' -----------
Created attachment 887254 [details] build.log
Created attachment 887255 [details] meson-log.txt
>clang: error: unknown argument: '-flto-partition=none' hm.. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/593?
sorry, didn't mean to close it yet
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=36bae5c1a5ea87aad0072f6b5f38de561540b884 commit 36bae5c1a5ea87aad0072f6b5f38de561540b884 Author: Mart Raudsepp <leio@gentoo.org> AuthorDate: 2024-03-16 21:58:09 +0000 Commit: Mart Raudsepp <leio@gentoo.org> CommitDate: 2024-03-16 22:06:37 +0000 net-misc/networkmanager: disable ebpf due to problems for some, filter lto for clang Both bugs left open on purpose as ebpf would hopefully be fixed and re-enabled and LTO should be fine for clang but build system issues force us to filter it temporarily until a proper fix. Bug: https://bugs.gentoo.org/926943 Bug: https://bugs.gentoo.org/926694 Signed-off-by: Mart Raudsepp <leio@gentoo.org> ...etworkmanager-1.46.0.ebuild => networkmanager-1.46.0-r1.ebuild} | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
Dropping LTO tracker blocker as for its purpose we aren't failing anymore, just not letting LTO be used when it really could due to upstream issues.