Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 907066

Summary: sys-libs/compiler-rt-15.0.7: Don't disable DCOMPILER_RT_BUILD_PROFILE by default
Product: Gentoo Linux Reporter: Morteza <mr.oneacer>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=873925
Whiteboard:
Package list:
Runtime testing required: ---

Description Morteza 2023-05-24 11:19:49 UTC
emerging python[pgo] complains about missing libclang_rt.profile-x86_64.a file 
please make DCOMPILER_RT_BUILD_PROFILE optional

Reproducible: Always

Steps to Reproduce:
1. dev-lang/python pgo
2. emerge python
3. compile error missing file /usr/lib/clang/15.0.7/lib/linux/libclang_rt.profile-x86_64.a
Actual Results:  
build fails

Expected Results:  
build success
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-24 11:22:06 UTC
It is already optional, just set USE=profile on sys-libs/compiler-rt-sanitizers?

See also bug 873925.
Comment 2 Morteza 2023-05-24 12:10:45 UTC
Thanks for quick response
Actually I had to emerge sys-devel/clang-runtime with sanitize use flag to make clang-runtime pull sys-libs/compiler-rt-sanitizers
can you document it somewhere in Clang wiki?
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-05-24 12:15:03 UTC
(In reply to Morteza from comment #2)
> Thanks for quick response
> Actually I had to emerge sys-devel/clang-runtime with sanitize use flag to
> make clang-runtime pull sys-libs/compiler-rt-sanitizers
> can you document it somewhere in Clang wiki?

Sure, will do now.
Comment 4 Morteza 2023-05-24 12:20:40 UTC
while you here can you take a look at this issue https://github.com/llvm/llvm-project/issues/86
this error show up on neovim when luajit compiled with clang