Bug 1324068 - Wrong install path of static libraries
Summary: Wrong install path of static libraries
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: compiler-rt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Dave Airlie
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-05 12:54 UTC by Tatsuyuki Ishi
Modified: 2016-05-10 11:48 UTC (History)
3 users (show)

Fixed In Version: compiler-rt-3.8.0-2.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 11:48:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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