Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 773985 - sys-kernel/gentoo-kernel-5.11.2 does not respect CFLAGS/LDFLAGS
Summary: sys-kernel/gentoo-kernel-5.11.2 does not respect CFLAGS/LDFLAGS
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: cflags ldflags
  Show dependency tree
 
Reported: 2021-03-02 14:54 UTC by Agostino Sarubbo
Modified: 2021-03-03 17:33 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.