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

Bug 706162

Summary: sys-kernel/gentoo-sources-5.4.14 with sys-devel/make-4.3 - In file included from scripts/gcc-plugins/structleak_plugin.c:32: scripts/gcc-plugins/gcc-common.h:5:10: fatal error: bversion.h: No such file or directory
Product: Gentoo Linux Reporter: Sven B. <s.bahro+bgo>
Component: Current packagesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 706074    
Attachments: einfo
entire build log with make 4.3

Description Sven B. 2020-01-23 13:59:49 UTC
Works fine with previous make.

make: gcc: Permission denied
make[2]: gcc: Permission denied
In file included from scripts/gcc-plugins/structleak_plugin.c:32:
scripts/gcc-plugins/gcc-common.h:5:10: fatal error: bversion.h: No such file or directory
    5 | #include "bversion.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:158: scripts/gcc-plugins/structleak_plugin.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from scripts/gcc-plugins/stackleak_plugin.c:30:
scripts/gcc-plugins/gcc-common.h:5:10: fatal error: bversion.h: No such file or directory
    5 | #include "bversion.h"
      |          ^~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.host:158: scripts/gcc-plugins/stackleak_plugin.o] Error 1
make[1]: *** [scripts/Makefile.build:509: scripts/gcc-plugins] Error 2
make[1]: *** Waiting for unfinished jobs....
make[3]: gcc: Permission denied
make[3]: *** [Makefile:46: /usr/src/linux-5.4.14-gentoo/tools/objtool/fixdep] Error 127
make[2]: *** [/usr/src/linux-5.4.14-gentoo/tools/build/Makefile.include:5: fixdep] Error 2
make[1]: *** [Makefile:67: objtool] Error 2
make: *** [Makefile:1754: tools/objtool] Error 2
make: *** Waiting for unfinished jobs....
make: *** [Makefile:1097: scripts] Error 2
Failed to build the Kernel.
Comment 1 Mike Pagano gentoo-dev 2020-01-24 15:14:27 UTC
Please attach the output of:

emerge --info 

Does the file exist?

On my system it's provided by gcc and here:
/usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/plugin/include/bversion.h
Comment 2 Sven B. 2020-01-24 15:19:25 UTC
Created attachment 604138 [details]
einfo
Comment 3 Sven B. 2020-01-24 15:21:31 UTC
(In reply to Mike Pagano from comment #1)
> Please attach the output of:
> 
> emerge --info 
> 
> Does the file exist?
> 
> On my system it's provided by gcc and here:
> /usr/lib/gcc/x86_64-pc-linux-gnu/9.2.0/plugin/include/bversion.h

The file exists, and downgrading make to 4.2.1-r4 works to compile the kernel.
Comment 4 Mike Pagano gentoo-dev 2020-01-24 18:17:17 UTC
Can you attach the entire build log ?
Comment 5 Sven B. 2020-01-24 19:01:31 UTC
Created attachment 604208 [details]
entire build log with make 4.3

Well fails right at the start. Also:
[ebuild   R    ] sys-kernel/gentoo-sources-5.4.14:5.4.14::gentoo  USE="experimental -build -symlink" 0 Ki
Comment 6 Mike Pagano gentoo-dev 2020-01-24 22:07:11 UTC
No problems here building that kernel with make 4.3.  FYI, the Gold linker is not supported for building kernels.
Comment 7 Sven B. 2020-01-24 22:24:17 UTC
(In reply to Mike Pagano from comment #6)
> No problems here building that kernel with make 4.3.  FYI, the Gold linker
> is not supported for building kernels.

Hmm seems like an env issue with my setup; thanks for checking and the work. 
If i source /etc/profile explicitly before running make, it seems to work. But it doesn't seem to persist. Anyways another issue.