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

Bug 773985

Summary: sys-kernel/gentoo-kernel-5.11.2 does not respect CFLAGS/LDFLAGS
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Distribution Kernel Project <dist-kernel>
Status: CONFIRMED ---    
Severity: normal CC: bertrand, esigra, mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 59506, 331933    

Description Agostino Sarubbo gentoo-dev 2021-03-02 14:54:48 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-kernel/gentoo-kernel-5.11.2 does not respect CFLAGS/LDFLAGS.
Discovered on: amd64 (internal ref: ci)

NOTE:
To reproduce this issue you may want to add "-frecord-gcc-switches" to CFLAGS/CXXFLAGS/FFLAGS/FCFLAGS and LDFLAGS="${LDFLAGS} -Wl,--defsym=__gentoo_check_ldflags__=0". If this is not something about c/c++ see this bug as an hint to hide the QA warning (with QA_FLAGS_IGNORED) where is not possible to respect CFLAGS/LDFLAGS.
Comment 1 Agostino Sarubbo gentoo-dev 2021-03-02 14:56:05 UTC
the log was too big for bugzilla.

The CFLAGS/LDFLAGS issue was on structleak_plugin.so
Comment 2 Agostino Sarubbo gentoo-dev 2021-03-02 15:23:55 UTC
 * QA Notice: Files built without respecting CFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/src/linux-5.11.2/scripts/gcc-plugins/structleak_plugin.so


 * QA Notice: Files built without respecting LDFLAGS have been detected
 *  Please include the following list of files in your report:
 * /usr/src/linux-5.11.2/scripts/gcc-plugins/structleak_plugin.so
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-02 15:50:44 UTC
This is fixed in -r2.
Comment 4 Agostino Sarubbo gentoo-dev 2021-03-02 15:57:17 UTC
(In reply to Michał Górny from comment #3)
> This is fixed in -r2.

which r2?
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-03-02 16:23:08 UTC
Ah, sorry, I thought this was -bin.