Bug 1647076

Summary: llvm-config --cxxflags outputs options that g++ doesn't understand (-mcet)
Product: [Fedora] Fedora Reporter: Anders Blomdell <anders.blomdell>
Component: llvm3.9Assignee: Milan Bouchet-Valat <nalimilan>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 29CC: jistone, nalimilan, orion, tstellar
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-12-10 23:19:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.