Summary: | app-emulation/virtualbox-modules-6.1.28 fails with stddef.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Konstantin Sobolev <konstantin.sobolev> |
Component: | Current packages | Assignee: | Viorel Munteanu <ceamac> |
Status: | RESOLVED OBSOLETE | ||
Severity: | normal | CC: | jstein, liaoyuan, orzel, proxy-maint |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 836383 | ||
Bug Blocks: | |||
Attachments: |
build.log
build log with gcc 11 |
Description
Konstantin Sobolev
2022-03-13 05:29:59 UTC
Created attachment 766898 [details]
build.log
(In reply to Konstantin Sobolev from comment #1) > Created attachment 766898 [details] > build.log warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115 You are using: x86_64-pc-linux-gnu-gcc (Gentoo 8.4.0-r2 p3) 8.4.0 make -f ./scripts/Makefile.build obj=/var/tmp/portage/app-emulation/virtualbox-modules-6.1.28/work/vboxdrv \ single-build= \ This is almost certainly it. I don't think so. That was me trying different GCC version just in case. Still same build error after switching back to 11, though this warning is still printed for some reason: warning: the compiler differs from the one used to build the kernel The kernel was built by: gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115 You are using: x86_64-pc-linux-gnu-gcc (Gentoo 11.2.1_p20220115 p4) 11.2.1 20220115 looks like the same version to me. Full build log attached Created attachment 766993 [details]
build log with gcc 11
This is a known issue with some latest kernels, especially 5.16 according to the upstream's change log <https://www.virtualbox.org/wiki/Changelog>. I could remember seeing someone using Linux 5.15 reporting it somewhere else online too. While your kernel is 5.14.9-gentoo-x86_64, sys-kernel/linux-headers is on 5.15, which might have something to do with this issue. The upstream has added support for newer kernels in version 6.1.30: VirtualBox 6.1.30 (released November 22 2021) * Linux host and guest: Introduced initial support for kernel 5.16 Could you try installing 6.1.30 and see if this issue still persists? > Could you try installing 6.1.30 and see if this issue still persists?
6.1.32 emerges fine
Had the problem here with both kernel 5.17.1 and 5.16.17. sys-kernel/linux-headers is 5.15-r3 I'm on amd64 (stable). Accepting ~amd64 for app-emulation/virtualbox-modules brought up 6.1.32, which installed fine. |