Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 835023 - app-emulation/virtualbox-modules-6.1.28 fails with stddef.h: No such file or directory
Summary: app-emulation/virtualbox-modules-6.1.28 fails with stddef.h: No such file or ...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on: 836383
Blocks:
  Show dependency tree
 
Reported: 2022-03-13 05:29 UTC by Konstantin Sobolev
Modified: 2022-09-08 13:08 UTC (History)
4 users (show)

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


Attachments
build.log (build.log,75.75 KB, text/plain)
2022-03-13 05:31 UTC, Konstantin Sobolev
Details
build log with gcc 11 (build2.log,62.60 KB, text/plain)
2022-03-13 17:48 UTC, Konstantin Sobolev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin Sobolev 2022-03-13 05:29:59 UTC
emerging `virtualbox-modules-6.1.28` fails with `stddef.h: No such file or directory``

Reproducible: Always

Steps to Reproduce:
1. emerge =app-emulation/virtualbox-modules-6.1.28
Actual Results:  
emerge fails

Expected Results:  
emerge succeeds

Dell 7540 running 64-bit Gentoo. File in question is present in the following locations:

precision ~ # locate stddef.h
/nix/store/9rmf9whh2m8fqlqp859d8pmsb63jarsp-gcc-10.2.0/lib/gcc/x86_64-unknown-linux-gnu/10.2.0/include/stddef.h
/nix/store/l0y34m1f4n1zr72f2235gbgn4w3cbspx-linux-headers-5.10.9/include/linux/stddef.h
/usr/include/boost/asio/detail/cstddef.hpp
/usr/include/linux/stddef.h
/usr/lib/clang/12.0.1/include/stddef.h
/usr/lib/clang/13.0.1/include/stddef.h
/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.1/include/stddef.h
/usr/lib/gcc/x86_64-pc-linux-gnu/8.4.0/include/stddef.h
/usr/share/man/man0p/stddef.h.0p.bz2
/usr/src/linux-5.14.9-gentoo/include/linux/stddef.h
/usr/src/linux-5.14.9-gentoo/include/uapi/linux/stddef.h
/usr/src/linux-5.16.14-gentoo/include/linux/stddef.h
/usr/src/linux-5.16.14-gentoo/include/uapi/linux/stddef.h
/var/lib/docker/overlay2/313587ef3d9fc591fa9703982db0b3e577b8ab6a222be19aa82b87d82b517c96/diff/usr/include/boost/asio/detail/cstddef.hpp
/var/lib/docker/overlay2/73ff67b321577ef60b207028e54d267763d03f8bec285643b01778647e19c87b/diff/usr/local/lib/gcc/x86_64-linux-gnu/8.4.0/include/stddef.h
/var/lib/docker/overlay2/75d6c2d578e6845b200f085cbc5ea2e96bb94516bae44dd7896c1511e54d2af3/diff/usr/include/linux/stddef.h
/var/lib/docker/overlay2/75d6c2d578e6845b200f085cbc5ea2e96bb94516bae44dd7896c1511e54d2af3/diff/usr/lib/gcc/x86_64-linux-gnu/8/include/stddef.h


emerge --info:

Portage 3.0.30 (python 3.9.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.1, glibc-2.34-r10, 5.14.9-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.14.9-gentoo-x86_64-x86_64-Intel-R-_Core-TM-_i9-9980HK_CPU_@_2.40GHz-with-glibc2.34
KiB Mem:    65084512 total,  41478596 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 12 Mar 2022 06:15:01 +0000
Head commit of repository gentoo: d78b190dd5af7bf086c020713e17024a81c6caba
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
distcc 3.4 x86_64-pc-linux-gnu [enabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           2.7.18_p14::gentoo, 3.9.9-r1::gentoo, 3.10.2_p1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:       2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.1::gentoo
sys-devel/gcc:             8.4.0-r2::gentoo, 11.2.1_p20220115::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.1::gentoo
sys-devel/llvm:            10.0.1::gentoo, 12.0.1::gentoo, 13.0.1::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r10::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-jobs: 1

localrepo
    location: /var/db/repos/localrepo
    masters: gentoo

nix-guix
    location: /var/lib/layman/nix-guix
    masters: gentoo
    priority: 50

throttled
    location: /var/lib/layman/throttled
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe -pipe -falign-functions=32"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf /var/lib/i2pd/certificates"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe -pipe -falign-functions=32"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=skylake -O2 -pipe -pipe -falign-functions=32"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe -pipe -falign-functions=32"
GENTOO_MIRRORS="https://mirror.leaseweb.com/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.gossamerhost.com http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j32 -l8"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
SHELL="/bin/bash"
USE="X a52 aac acl acpi activities alsa amd64 bluetooth branding bzip2 cairo cdda cli crypt cups dbus declarative device-mapper djvu dri dts dvd dvdr elogind encode evdev exif ffmpeg flac fontconfig fortran gdbm gif git glamor gphoto2 gpm graphite gtk gtk2 gui iconv icu initramfs inotify ipv6 jpeg kde kdesu kwallet lcms libglvnd libnotify libtirpc lm-sensors lspclient lvm mad matroska metalink mng mp3 mp4 mpeg mtp multilib ncurses networkmanager nls nptl offensive ogg opengl openmp pam pango pcre pdf pgo plasma png policykit postproc ppds pulseaudio python qml qt5 raw readline samba sdl seccomp semantic-desktop sftp spell split-usr ssh ssl sslv2 sslv3 startup-notification svg terminal tiff touchpad truetype udev udisks unicode upower usb vim-syntax vorbis vulkan widgets wifi wxwidgets x264 x265 xattr xcb xinerama xml xscreensaver xv xvid zeroconf zlib" ABI_X86="64" ADA_TARGET="gnat_2020" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Konstantin Sobolev 2022-03-13 05:31:15 UTC
Created attachment 766898 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-03-13 05:33:52 UTC
(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.
Comment 3 Konstantin Sobolev 2022-03-13 17:47:32 UTC
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
Comment 4 Konstantin Sobolev 2022-03-13 17:48:00 UTC
Created attachment 766993 [details]
build log with gcc 11
Comment 5 Yuan Liao (Leo3418) 2022-03-15 16:15:36 UTC
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?
Comment 6 Konstantin Sobolev 2022-03-25 21:06:38 UTC
> Could you try installing 6.1.30 and see if this issue still persists?

6.1.32 emerges fine
Comment 7 Thomas Capricelli 2022-03-29 21:52:06 UTC
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.