Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 845105 - media-libs/glm-0.9.9.8-r1 fails to build with USE=test and gcc-10.3.1
Summary: media-libs/glm-0.9.9.8-r1 fails to build with USE=test and gcc-10.3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Tupone Alfredo
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-17 00:25 UTC by Jonathan Lovelace
Modified: 2022-05-17 01:16 UTC (History)
0 users

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


Attachments
media-libs:glm-0.9.9.8-r1:20220516-231715.log (media-libs:glm-0.9.9.8-r1:20220516-231715.log,4.15 KB, text/x-log)
2022-05-17 00:25 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.82 KB, text/plain)
2022-05-17 00:25 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-05-17 00:25:14 UTC
Created attachment 779288 [details]
media-libs:glm-0.9.9.8-r1:20220516-231715.log

=media-libs/glm-0.9.9.8-r1 fails to (re)build when USE=test (but in src_config). Cmake's attempt to find a working C++ compiler fails because its attempt to compile a test program gives the error "x86_64-pc-linux-gnu-g++: error: unrecognized command-line option ‘-fno-ipa-modref’; did you mean ‘-fno-ipa-icf’?"

It looks like the fix for bug #818235 adds the compiler flag even for compilers that don't support it. Should support for it be tested using test-flag-CXX first?
Comment 1 Jonathan Lovelace 2022-05-17 00:25:48 UTC
Created attachment 779291 [details]
emerge-info.txt
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-17 01:16:03 UTC
I'm sorry, I hadn't realised it was so new. Good spot!
Comment 3 Larry the Git Cow gentoo-dev 2022-05-17 01:16:12 UTC
The bug has been closed via the following commit(s):

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

commit 122cd845c79ca3aee2ecbc8ed7cce797df1984da
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-05-17 01:15:35 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-05-17 01:15:38 +0000

    media-libs/glm: test for -fno-ipa-modref before using
    
    Closes: https://bugs.gentoo.org/845105
    Bug: https://bugs.gentoo.org/818235
    Thanks-to: Jonathan Lovelace <kingjon3377@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/glm/glm-0.9.9.8-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)