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

Bug 618372

Summary: sys-kernel/hardened-sources-4.9.24 make fails: scripts/gcc-plugins/randomize_layout_plugin.c:528:21: error: lvalue required as left operand of assignment DECL_ALIGN(decl) = 0; compiled with sys-devel/gcc-7.1.0-r1
Product: Gentoo Linux Reporter: Alpha Bravo <aos>
Component: Current packagesAssignee: Anthony Basile <blueness>
Status: RESOLVED OBSOLETE    
Severity: normal CC: anton.kochkov, hardened, jstein, kernel, mike, minipli, quentin, tsmksubc
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 617524    
Attachments: stderr log

Description Alpha Bravo 2017-05-13 15:19:41 UTC
Created attachment 472506 [details]
stderr log

sys-kernel/hardened-sources-4.9.24 make fails with sys-devel/gcc-7.1.0-r1:

$ make -j1

scripts/gcc-plugins/randomize_layout_plugin.c: In function 'void randomize_layout_finish_decl(void*, void*)':
scripts/gcc-plugins/randomize_layout_plugin.c:528:21: error: lvalue required as left operand of assignment
  DECL_ALIGN(decl) = 0;
                     ^
Comment 1 Mathias Krause 2017-06-14 06:24:20 UTC
The patch from [1] fixes this as has been confirmed by zeepob in [2] -- which was how I got the bug report in the first place.

[1] https://github.com/minipli/linux-unofficial_grsec/commit/c497a768008b727e36a8ed63cc252cf8891f1cc3
[2] https://github.com/minipli/linux-unofficial_grsec/issues/4
Comment 2 Anthony Basile gentoo-dev 2018-02-23 22:03:27 UTC
sorry guys, but we can't support hardened-sources anymore.