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

Bug 636604

Summary: sys-libs/compiler-rt-sanitizers: -D_FORTIFY_SOURCE=2 flag gives error: redefinition of 'realpath'
Product: Gentoo Linux Reporter: Haelwenn Monnier <contact>
Component: Current packagesAssignee: LLVM support project <llvm>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: lzma /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/temp/build.log

Description Haelwenn Monnier 2017-11-05 11:51:03 UTC
When building with '-D_FORTIFY_SOURCE=2' in the CLFAGS/CXXFLAGS the build fails, when the flag isn’t present the build doesn’t fail.

I found this issue (http://llvm.1065342.n5.nabble.com/llvm-dev-Thin-LTO-llvm-build-td100633i120.html) leading me to it.
Comment 1 Haelwenn Monnier 2017-11-05 11:58:43 UTC
Created attachment 502690 [details]
lzma /var/tmp/portage/sys-libs/compiler-rt-sanitizers-4.0.1/temp/build.log
Comment 2 Haelwenn Monnier 2018-02-20 03:51:36 UTC
I have this bug again on 5.0.1 btw.