Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926694 - net-misc/networkmanager-1.46.0: -flto-partition=none not supported. Disable link-time optimization with -Db_lto=false
Summary: net-misc/networkmanager-1.46.0: -flto-partition=none not supported. Disable l...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-10 13:41 UTC by hugegameartgd
Modified: 2024-03-17 09:49 UTC (History)
4 users (show)

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


Attachments
emerge --info (emerge.info,20.31 KB, text/plain)
2024-03-10 13:41 UTC, hugegameartgd
Details
build.log (build.log.gz,2.25 KB, application/gzip)
2024-03-10 13:42 UTC, hugegameartgd
Details
meson-log.txt (meson-log.txt.gz,4.38 KB, application/gzip)
2024-03-10 13:42 UTC, hugegameartgd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hugegameartgd 2024-03-10 13:41:42 UTC
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'
-----------
Comment 1 hugegameartgd 2024-03-10 13:42:05 UTC
Created attachment 887254 [details]
build.log
Comment 2 hugegameartgd 2024-03-10 13:42:31 UTC
Created attachment 887255 [details]
meson-log.txt
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 13:48:35 UTC
>clang: error: unknown argument: '-flto-partition=none'

hm.. https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/593?
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-10 13:48:50 UTC
sorry, didn't mean to close it yet
Comment 5 Larry the Git Cow gentoo-dev 2024-03-16 22:07:23 UTC
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(-)
Comment 6 Mart Raudsepp gentoo-dev 2024-03-16 22:09:54 UTC
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.