Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631588 - file collisions between sys-libs/compiler-rt-9999 and sys-libs/compiler-rt-sanitizers-9999
Summary: file collisions between sys-libs/compiler-rt-9999 and sys-libs/compiler-rt-sa...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: LLVM support project
URL: https://reviews.llvm.org/D38441
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-20 22:01 UTC by Johannes Janssen
Modified: 2017-10-02 05:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge--info.txt,15.65 KB, text/plain)
2017-09-20 22:01 UTC, Johannes Janssen
Details
patch (compiler-rt-9999-remove-profile.patch,515 bytes, patch)
2017-09-20 22:04 UTC, Johannes Janssen
Details | Diff
build log (build.log,687.29 KB, text/x-log)
2017-09-20 22:05 UTC, Johannes Janssen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Janssen 2017-09-20 22:01:46 UTC
Created attachment 495700 [details]
emerge --info

Both compiler-rt{,-sanitizers}-9999 try to install these files:
    /usr/lib/clang/6.0.0/lib/linux/libclang_rt.profile-x86_64.a
    /usr/lib/clang/6.0.0/lib/linux/libclang_rt.profile-i386.a

compiler-rt:5 did not provide the profile runtimes, but compiler-rt-sanitizers:5 did:

$ equery f --filter=obj compiler-rt
 * Searching for compiler-rt ...
 * Contents of sys-libs/compiler-rt-5.0.9999:
/usr/lib/clang/5.0.1/lib/linux/libclang_rt.builtins-i386.a
/usr/lib/clang/5.0.1/lib/linux/libclang_rt.builtins-x86_64.a
/usr/share/doc/compiler-rt-5.0.9999/README.txt.bz2
 * Contents of sys-libs/compiler-rt-9999:
/usr/lib/clang/6.0.0/lib/linux/libclang_rt.builtins-i386.a
/usr/lib/clang/6.0.0/lib/linux/libclang_rt.builtins-x86_64.a
/usr/lib/clang/6.0.0/lib/linux/libclang_rt.profile-i386.a
/usr/lib/clang/6.0.0/lib/linux/libclang_rt.profile-x86_64.a
/usr/share/doc/compiler-rt-9999/README.txt.bz2

$ equery f compiler-rt-sanitizers | grep profile
/usr/lib/clang/5.0.1/lib/linux/libclang_rt.profile-i386.a
/usr/lib/clang/5.0.1/lib/linux/libclang_rt.profile-x86_64.a

So this might be an upstream bug with the profiler runtimes not respecting COMPILER_RT_BUILD_SANITIZERS=OFF anymore, as I could not find a dedicated flag for profilers. Quick fix of course would be to manually remove profile files in compiler-rt as in the provided patch.
Comment 1 Johannes Janssen 2017-09-20 22:04:58 UTC
Created attachment 495702 [details, diff]
patch
Comment 2 Johannes Janssen 2017-09-20 22:05:41 UTC
Created attachment 495706 [details]
build log
Comment 3 Larry the Git Cow gentoo-dev 2017-10-02 05:15:26 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39fb9484619796bb6e8064e70f4fc5d0f937cddf

commit 39fb9484619796bb6e8064e70f4fc5d0f937cddf
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-10-02 05:10:46 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-10-02 05:15:18 +0000

    sys-libs/compiler-rt: Disable building profile libs
    
    Closes: https://bugs.gentoo.org/631588

 sys-libs/compiler-rt/compiler-rt-9999.ebuild | 1 +
 1 file changed, 1 insertion(+)