Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 596506

Summary: app-text/openjade-1.3.2-r6 - x86_64-pc-linux-gnu-clang-3.9: error: unknown argument: '-fno-lifetime-dse'
Product: Gentoo Linux Reporter: Aleksander <spider.ch>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: phceac, spider.ch
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 408963    
Attachments: Patch to check if -fno-lifetime-dso is supported, before adding to cxxflags

Description Aleksander 2016-10-08 06:52:56 UTC
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!
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2016-10-16 06:07:39 UTC
(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.
Comment 2 Mias van Klei 2016-10-16 09:43:02 UTC
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.
Comment 3 phceac 2016-11-16 08:36:58 UTC
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!).
Comment 4 David Seifert gentoo-dev 2016-11-27 08:40:41 UTC
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