Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 596506 - app-text/openjade-1.3.2-r6 - x86_64-pc-linux-gnu-clang-3.9: error: unknown argument: '-fno-lifetime-dse'
Summary: app-text/openjade-1.3.2-r6 - x86_64-pc-linux-gnu-clang-3.9: error: unknown ar...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2016-10-08 06:52 UTC by Aleksander
Modified: 2016-11-27 08:40 UTC (History)
2 users (show)

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


Attachments
Patch to check if -fno-lifetime-dso is supported, before adding to cxxflags (fix-append-cxxflags-clang.patch,426 bytes, patch)
2016-10-16 09:43 UTC, Mias van Klei
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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