Bug 1647076 - llvm-config --cxxflags outputs options that g++ doesn't understand (-mcet)
Summary: llvm-config --cxxflags outputs options that g++ doesn't understand (-mcet)
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: llvm3.9
Version: 29
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Milan Bouchet-Valat
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-11-06 16:07 UTC by Anders Blomdell
Modified: 2018-12-10 23:19 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-12-10 23:19:57 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Anders Blomdell 2018-11-06 16:07:05 UTC
Description of problem:

  '/usr/lib64/llvm3.9/bin/llvm-config --cxxflags'
  gives the invalid flag -mcet (gcc 8.2.1)
  
  

Version-Release number of selected component (if applicable):

  llvm3.9-devel-3.9.1-13.fc29.x86_64
  gcc-c++-8.2.1-4.fc29.x86_64

How reproducible:

  always

Steps to Reproduce:
1. touch /tmp/x.c
2. g++ $(/usr/lib64/llvm3.9/bin/llvm-config --cxxflags) -c /tmp/x.c

Actual results:

  cc1plus: error: unrecognized command line option ‘-mcet’

Expected results:

  /tmp/x.o 

Additional info:

  Rebuilding with gcc-8.2.1 seems to fix the problem (current version built with 'gcc 8.0.1 20180222')

Comment 1 Tom Stellard 2018-11-12 19:37:52 UTC
Why are you using the compatibility package (llvm3.9) instead of the main package llvm?

Comment 2 Anders Blomdell 2018-11-13 08:25:50 UTC
Because I for compatibility reasons needed to build an old version of
julia, and this excerpt shows why I needed it. 

julia.spec: 

  %global llvmversion 3.9

  Name:           julia
  Version:        0.6.3
  Release:        2%{?dist}
  .
  .
  .
  BuildRequires:  llvm%{llvmversion}-devel

And besides I think it is reasonable to expect that provided packages are functional ;-)

Comment 3 Fedora Update System 2018-11-18 11:17:19 UTC
llvm3.9-3.9.1-14.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-82f1e21f4d

Comment 4 Randy Barlow 2018-12-10 23:19:57 UTC
An update associated with this bug has been pushed to stable.


Note You need to log in before you can comment on or make changes to this bug.