Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

Bug 1324068

Summary: Wrong install path of static libraries
Product: [Fedora] Fedora Reporter: Tatsuyuki Ishi <ishitatsuyuki>
Component: compiler-rtAssignee: Dave Airlie <airlied>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, davejohansen, jv+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: compiler-rt-3.8.0-2.fc24 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-10 11:48:39 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 Tatsuyuki Ishi 2016-04-05 12:54:56 UTC
Description of problem:
The static libraries are installed into /usr/lib64/clang/ver/lib, however clang assumes it in /usr/lib64/clang/ver/lib/linux.


How reproducible:
Always

Steps to Reproduce:
Following is an example using coverage and LTO flag with CMake. (Didn't tried other combination)

Actual results:

CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
  The C compiler "/usr/bin/clang" is not able to compile a simple test
  program.

  It fails with the following output:

  Run Build Command:"/usr/bin/ninja-build" "cmTC_301f1"

  [1/2] Building C object CMakeFiles/cmTC_301f1.dir/testCCompiler.c.o

  [2/2] Linking C executable cmTC_301f1

  FAILED: : && /usr/bin/clang -fprofile-instr-generate -fcoverage-mapping
  -flto CMakeFiles/cmTC_301f1.dir/testCCompiler.c.o -o cmTC_301f1 && :

  /usr/bin/ld: error: cannot open
  /usr/bin/../lib64/clang/3.8.0/lib/linux/libclang_rt.profile-x86_64.a: No
  such file or directory

Expected results:
The build should run properly.

Additional info:

Comment 1 Tatsuyuki Ishi 2016-04-29 10:12:10 UTC
Here's a ping.

I have found some redundant lines in the spec file, removing them should solve everything.

Comment 2 Fedora Update System 2016-05-03 20:20:49 UTC
compiler-rt-3.8.0-2.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-93368e80dc

Comment 3 Fedora Update System 2016-05-04 14:29:18 UTC
compiler-rt-3.8.0-2.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-93368e80dc

Comment 4 Fedora Update System 2016-05-10 11:48:37 UTC
compiler-rt-3.8.0-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.