Fails with: x86_64-pc-linux-gnu-clang-3.9: error: unknown argument: '-fno-lifetime-dse emerge --info: https://paste.pound-python.org/show/uNgqWnyfssvN1BUncdlJ/ build.log: https://paste.pound-python.org/show/AY42qptSNoUkpmPFrJAz/ With gcc builds fine Reproducible: Always Steps to Reproduce: 1. Set clang as system compiler 2. Try to rebuild openjade 3. ... 4. Profit!
(In reply to Aleksander from comment #0) > emerge --info: https://paste.pound-python.org/show/uNgqWnyfssvN1BUncdlJ/ > build.log: https://paste.pound-python.org/show/AY42qptSNoUkpmPFrJAz/ Please attach those.
Created attachment 450376 [details, diff] Patch to check if -fno-lifetime-dso is supported, before adding to cxxflags The cause of this bug is a flag added in the ebuild: append-cxxflags -fno-lifetime-dse. This flag was added because of bug #592590. To fix this change the line to: append-cxxflags $(test-flags-CXX -fno-lifetime-dse). Attached patch fixes the ebuild.
Without wanting to spam, this error also arose for me with an older in-tree version of gcc. I have not tested the patch. Workround for gcc users: use gcc-config to move to latest gcc (if possible!).
commit 6a0f2eed4c8fceed1d56ec0fcf113dfee996634e Author: Felix Janda <felix.janda@posteo.de> Date: Sat Nov 26 14:01:52 2016 -0500 app-text/openjade: fix build with clang and older gcc Gentoo-Bug: https://bugs.gentoo.org/596506