Bug 1304605

Summary: compiler-rt has wrong install path for static libraries and blacklist files
Product: [Fedora] Fedora Reporter: Keyue Hu <rwindz0>
Component: compiler-rtAssignee: Dave Airlie <airlied>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: airlied, davejohansen, jv+fedora, rwindz0
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-05 05:16:18 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:
Attachments:
Description Flags
patch for fixing this issue none

Description Keyue Hu 2016-02-04 07:12:53 UTC
Created attachment 1121034 [details]
patch for fixing this issue

Description of problem: clang is unable to find sanitize libraries in compiler-rt. and compiler-rt is totally unusable.



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


How reproducible: install clang and compiler-rt. clang is unable to find sanitize libraries in compiler-rt.


Steps to Reproduce:
1. echo 'int main() {}' > main.c
2. clang main.c -fsanitize=address (not found /usr/bin/../lib64/clang/3.7.1/lib)
3. strace clang main.c -fsanitize=address|& grep blacklist

Actual results:

1. ok

2. /usr/bin/ld: /usr/bin/../lib64/clang/3.7.1/lib/linux/libclang_rt.asan-x86_64.a: No such file: No such file or directory
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)

3. ENOENT on /usr/bin/../lib64/clang/3.7.1/asan_blacklist.txt


Expected results:

1. ok

2. no error

3. access returns 0 and open returns valid fd


Additional info:

patch available

Comment 1 Dave Airlie 2016-02-05 05:16:18 UTC
Thanks, I've pushed this patch and kicked off a new build.