Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 877273 - app-emulation/virtualbox-6.1.38 failed to compile with sys-kernel/linux-headers-6.0 (usbdevice_fs.h:134:41: error: flexible array member ‘usbdevfs_urb::iso_frame_desc’ not at end of ‘struct USBPROXYURBLNX’)
Summary: app-emulation/virtualbox-6.1.38 failed to compile with sys-kernel/linux-heade...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 876331
  Show dependency tree
 
Reported: 2022-10-16 05:24 UTC by Leonid Kopylov
Modified: 2022-10-17 21:05 UTC (History)
2 users (show)

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


Attachments
build.log.xz (build.log.xz,101.75 KB, application/xz)
2022-10-16 05:25 UTC, Leonid Kopylov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Leonid Kopylov 2022-10-16 05:24:25 UTC
# emerge -pqv '=app-emulation/virtualbox-6.1.38::gentoo'
[ebuild  N    ] app-emulation/virtualbox-6.1.38  USE="alsa doc dtrace java lvm opengl opus pam pulseaudio python qt5 sdk sdl udev vboxwebsrv vnc -debug -headless (-pax-kernel) (-pch)" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9"

# emerge --info '=app-emulation/virtualbox-6.1.38::gentoo'
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/gnome/systemd, gcc-11, glibc-2.36-r4, 6.0.2-gentoo-amd64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.0.2-gentoo-amd64-x86_64-12th_Gen_Intel-R-_Core-TM-_i7-12700-with-glibc2.36
KiB Mem:   131649544 total,  83871680 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Sun, 16 Oct 2022 04:00:02 +0000
Head commit of repository gentoo: 37ff32ec7ce8cc9dd937ae26a15b9e40c6653b01
sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.39 p5) 2.39.0
ccache version 4.6.3 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.36.0::gentoo
dev-lang/python:           3.10.8::gentoo, 3.11.0_rc2_p1::gentoo
dev-lang/rust-bin:         1.64.0::gentoo
dev-util/ccache:           4.6.3::gentoo
dev-util/cmake:            3.24.2::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.9::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-apps/systemd:          251.6::gentoo
sys-devel/autoconf:        2.71-r4::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.39-r3::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           15.0.2::gentoo
sys-devel/gcc:             11.3.1_p20221007::gentoo, 12.2.1_p20221008::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo, 15.0.2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.36-r4::gentoo
Repositories:

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

darkelf
    location: /var/lib/layman/darkelf
    sync-type: laymansync
    sync-uri: https://anongit.gentoo.org/git/repo/user/darkelf.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA android AnyDesk-TOS geekbench google-chrome microsoft-edge Microsoft-vscode NVIDIA-CUDA OPERA-2018 PUEL RAR TeamViewer Vivaldi"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
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 XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live ccache config-protect-if-modified 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 strict-keepdir unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://mirror.isoc.org.il/pub/gentoo/"
LANG="en_US.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j12"
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 aalib accessibility acl acpi activities alsa amd64 ao appindicator archive aspell audit bash-completion berkdb bidi bluetooth bluray boost bpf branding brotli btrfs bzip2 cairo cdda cddb cdio cdr cgi cli colord contrib cron crypt cryptsetup cuda cups curl dbi dbus designer device-mapper djvu doc dri dts dvb dvd dvdr eds emacs enchant encode evo examples executable exif experimental extra extras fam fastcgi fbcon fdk ffmpeg fftw flac fluidsynth fontconfig fontforge fortran ftp fuse gamepad games gcrypt gd gdbm gdk-pixbuf geoip geolocation gif git glade gme gmp gnome gnome-keyring gnome-online-accounts gnuplot gnutls go gpg gphoto2 gpm graphite graphviz gsm gssapi gstreamer gtk gtk-doc gtk3 gui guile harfbuzz hddtemp hdf5 heif help highlight hscolour html http http2 ibus iconv icu idn imagemagick imap imlib introspection iodbc ipv6 iso jack java javascript jbig jemalloc joystick jpeg jpeg2k json kde kerberos ladspa lame latex lcms ldap libass libcaca libevent libglvnd libnotify libsamplerate libsecret libtirpc libxml2 lm-sensors lmdb lua lv2 lvm lz4 lzma lzo mad magic maildir man mbedtls mbox memcached midi mms mng modplug mp3 mp4 mpeg mpi mtp multilib multimedia musepack mysql nas nautilus ncurses netlink nettle network networkmanager nfs nls nptl nss ntlm nvenc odbc offensive ogg openal opencl openexr opengl openmp openssl opus pam pango pcap pcre pdf perl phonon pkcs11 plasma plugins png policykit portaudio postgres postscript ppds pulseaudio python qdbm qml qrcode qt5 raw rdma readline redis rss samba sasl screencast sctp sdl seccomp semantic-desktop share skey smtp snappy sndfile sndio snmp sockets sound source sox speech speex spell split-usr sql sqlite ssh ssl startup-notification svg symlink syslog sysprof systemd taglib tbb tcl telemetry test-rust theora threads tiff tk tools tpm tracker tremor truetype twolame udev udisks unicode unwind upnp upnp-av upower usb utils uuid v4l vala vcd vdpau vim-syntax vnc vorbis vpx vulkan wavpack wayland webengine webkit webp websockets widgets wifi wmf wxwidgets x264 x265 xattr xcb xface xft xine xinerama xml xmp xpm xscreensaver xv xvid yaml zeroconf zeromq zip zlib zsh-completion zstd" ABI_X86="64 32" 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 stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev joystick libinput" KERNEL="linux" L10N="en en-US he ru" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" 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_10" PYTHON_TARGETS="python3_10" RUBY_TARGETS="ruby27 ruby30 ruby31" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, 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 Leonid Kopylov 2022-10-16 05:25:28 UTC
Created attachment 824353 [details]
build.log.xz
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-16 19:09:35 UTC
x86_64-pc-linux-gnu-g++ -c -O2 -march=native -O2 -pipe -fomit-frame-pointer -mno-abm -mno-avx -mno-avx2 -mno-bmi -mno-bmi2 -mno-fma -mno-fma4 -mno-popcnt -g -pipe -march=native -O2 -pipe -fomit-frame-pointer -mno-abm -mno-avx -mno-avx2 -mno-bmi -mno-bmi2 -mno-fma -mno-fma4 -mno-popcnt -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -fvisibility-inlines-hidden -Wno-sign-compare -m64 -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/RDP/client-1.8.4 -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/RDP/client-1.8.4/vrdp -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/Devices/USB -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/Main/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/include/VBox -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/out/linux.amd64/release/obj/rdesktop-vrdp/dtrace -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DIN_RING3 -DGC_ARCH_BITS=64 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DPACKAGE_NAME=\"rdesktop-vrdp\" -DPACKAGE_TARNAME=\"rdesktop-vrdp\" -DPACKAGE_VERSION=\"1.8.4\" -DPACKAGE_STRING=\"rdesktop\ -D1.8.4\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DL_ENDIAN=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_LOCALE_H=1 -DHAVE_LANGINFO_H=1 -DHAVE_ICONV_H=1 -DEGD_SOCKET=\"/var/run/egd-pool\" -DWITH_RDPSND=1 -DHAVE_DIRENT_H=1 -DHAVE_ICONV=1 -DHAVE_SYS_STATVFS_H=1 -DHAVE_SYS_PARAM_H=1 -DHAVE_SYS_MOUNT_H=1 -DHAVE_STRUCT_STATVFS_F_NAMEMAX=1 -DKEYMAP_PATH=RTPATH_APP_PRIVATE\"/rdesktop-vrdp-keymaps\" -DRDESKTOP=1 -DHAVE_MNTENT_H=1 -DHAVE_SETMNTENT=1 -DSTAT_STATVFS=1 -DHAVE_SYS_VFS_H=1 -DHAVE_STRUCT_STATFS_F_NAMELEN=1 -DICONV_CONST= -DRDPSND_OSS=1 -DWITH_RDPUSB=1 -DHAVE_SYS_STATFS_H=1 -DHAVE_DIRFD=1 -DHAVE_DECL_DIRFD=1 -DVBOX_USB_WITH_SYSFS=1 -DHC_ARCH_BITS=64 -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/out/linux.amd64/release/obj/rdesktop-vrdp/src/VBox/Devices/USB/linux/USBProxyDevice-linux.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/out/linux.amd64/release/obj/rdesktop-vrdp/src/VBox/Devices/USB/linux/USBProxyDevice-linux.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/out/linux.amd64/release/obj/rdesktop-vrdp/src/VBox/Devices/USB/linux/USBProxyDevice-linux.o  /var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp
In file included from /var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp:49:
/usr/include/linux/usbdevice_fs.h:134:41: error: flexible array member ‘usbdevfs_urb::iso_frame_desc’ not at end of ‘struct USBPROXYURBLNX’
  134 |         struct usbdevfs_iso_packet_desc iso_frame_desc[];
      |                                         ^~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp:98:37: note: next member ‘usbdevfs_iso_packet_desc USBPROXYURBLNX::aIsocPktsDonUseTheseUseTheOnesInKUrb [8]’ declared here
   98 |     struct usbdevfs_iso_packet_desc aIsocPktsDonUseTheseUseTheOnesInKUrb[8];
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/src/VBox/Devices/USB/linux/USBProxyDevice-linux.cpp:85:16: note: in the definition of ‘struct USBPROXYURBLNX’
   85 | typedef struct USBPROXYURBLNX
      |                ^~~~~~~~~~~~~~
kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:277: /var/tmp/portage/app-emulation/virtualbox-6.1.38/work/VirtualBox-6.1.38/out/linux.amd64/release/obj/rdesktop-vrdp/src/VBox/Devices/USB/linux/USBProxyDevice-linux.o] Error 1
kmk: *** Waiting for unfinished jobs....

It's linux-headers-6.0.
Comment 3 Jared B. 2022-10-16 20:31:42 UTC
I just ran into this myself.  Seems there's a new 6.1.40 release out to fix 6.0 compatibility:
https://www.virtualbox.org/wiki/Changelog-6.1#v40
Comment 4 blackmamba007 2022-10-16 21:23:22 UTC
I am facing this same issue running Kernel Version: 5.19.16-gentoo-dist(64-bit)
I have not had any compile errors with any other application except this one.
I have installed KDE Plasma Meta, The Kde Apps Meta Package, Chromium, Firefox, and VSCodium… all with no issues.

I conclude it is an issue with the updates to the package because on a previous install a couple of weeks ago, there was no issue.

Is there a workaround for this or just wait for the next update?
Thanks.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-10-16 21:32:33 UTC
(In reply to blackmamba007 from comment #4)
> I am facing this same issue running Kernel Version:
> 5.19.16-gentoo-dist(64-bit)
> I have not had any compile errors with any other application except this one.
> I have installed KDE Plasma Meta, The Kde Apps Meta Package, Chromium,
> Firefox, and VSCodium… all with no issues.
> 
> I conclude it is an issue with the updates to the package because on a
> previous install a couple of weeks ago, there was no issue.
> 
> Is there a workaround for this or just wait for the next update?
> Thanks.

Mask =sys-kernel/linux-headers-6.0 for now.
Comment 6 Larry the Git Cow gentoo-dev 2022-10-17 21:05:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a602feef34dcf2f45a0e7b7f2149c6a2e148eaf4

commit a602feef34dcf2f45a0e7b7f2149c6a2e148eaf4
Author:     Viorel Munteanu <ceamac.paragon@gmail.com>
AuthorDate: 2022-10-17 05:42:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-10-17 21:04:46 +0000

    app-emulation/virtualbox: add 6.1.40
    
    Closes: https://bugs.gentoo.org/877273
    Signed-off-by: Viorel Munteanu <ceamac.paragon@gmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/virtualbox/Manifest                 |   1 +
 app-emulation/virtualbox/virtualbox-6.1.40.ebuild | 663 ++++++++++++++++++++++
 2 files changed, 664 insertions(+)