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?
Created attachment 779291 [details] emerge-info.txt
I'm sorry, I hadn't realised it was so new. Good spot!
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(-)