Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 809695 - net-misc/networkmanager-1.32.10: CC=clang & USE=lto configure failure
Summary: net-misc/networkmanager-1.32.10: CC=clang & USE=lto configure failure
Status: RESOLVED FIXED
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: 2021-08-22 23:21 UTC by James Beddek
Modified: 2021-10-20 01:54 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Beddek 2021-08-22 23:21:23 UTC
Clang does not support -flto-partition

Compiler for C supports arguments -flto-partition=none: NO

../NetworkManager-1.32.10/meson.build:174:2: ERROR: Assert failed: -flto-partition=none not supported. Disable link-time optimization with -Db_lto=false.

Please add a tc-is-gcc check or some other. Thanks
Comment 1 Larry the Git Cow gentoo-dev 2021-10-20 01:54:20 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be97ee5738137df06466efe7a3a4c02471853c40

commit be97ee5738137df06466efe7a3a4c02471853c40
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2021-09-24 06:47:55 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-10-20 01:53:29 +0000

    net-misc/networkmanager: Version bump to 1.32.12
    
    - Add USE=gtk-doc (enabled by default) and require it if USE=introspection,
      since building docs requires introspection support. This should also
      allow us to fix the build issue when building without introspection by
      turning off doc generation as well.
    - Do not allow building with clang if USE=lto since clang does not
      support -flto-partition
    - Couple of minor syntax changes (adding a missing `|| die`, changing
      `rm -rf` to `rm -r`, sort inherits alphabetically etc.)
    
    Closes: https://bugs.gentoo.org/811564
    Closes: https://bugs.gentoo.org/809695
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/22386
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/networkmanager/Manifest                   |   1 +
 .../networkmanager/networkmanager-1.32.12.ebuild   | 392 +++++++++++++++++++++
 2 files changed, 393 insertions(+)