Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 832166 - app-emulation/virtualbox-6.1.32[java] compile appears to fail due to wsimport issue?
Summary: app-emulation/virtualbox-6.1.32[java] compile appears to fail due to wsimport...
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:
Depends on:
Blocks: jdk11
  Show dependency tree
 
Reported: 2022-01-27 17:28 UTC by Arnim Eijkhoudt
Modified: 2022-10-25 17:58 UTC (History)
6 users (show)

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


Attachments
emerge --info (emerge.info,18.37 KB, text/plain)
2022-01-27 17:29 UTC, Arnim Eijkhoudt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Arnim Eijkhoudt 2022-01-27 17:28:29 UTC
----
Emerge appears to crash at wsimport run for vboxwebService.wsdl (see below):

kmk_builtin_rm -f -- /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o.dep /var/
tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o  
x86_64-pc-linux-gnu-g++ -c -O2 -g -pipe -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-pa
rameter -Wlogical-op -Wno-variadic-macros -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wno-overloaded-virtual -Wno-array-
bounds -Wno-ignored-qualifiers -Wno-variadic-macros -Wno-multistatement-macros -Wno-class-memaccess -Wshadow -fshort-wchar -fpermissive -fexceptions -frtti -march=znver2 -O2 -pipe -fomit-frame-pointer -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -std=c++11 -fdollars-in-identifiers   -pthread -m64 -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/src/VBox/Frontends/Common -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/dtrace -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/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 -DUNICODE -DNDEBUG=1 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DVBOX_WITH_DTRACE_R3_MAIN -DVBOX_WITH_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -DNDEBUG -DTRIMMED -DVBOX_WITH_AHCI -DVBOX_WITH_E1000 -DVBOX_WITH_GUEST_CONTROL -DVBOX_WITH_GUEST_PROPS -DVBOX_WITH_HEADLESS -DVBOX_WITH_HGCM -DVBOX_WITH_HOSTNETIF_API -DVBOX_WITH_NETFLT -DVBOX_WITH_CLOUD_NET -DVBOX_WITH_PROXY_INFO -DVBOX_WITH_AUDIO_OSS -DVBOX_WITH_AUDIO_ALSA -DVBOX_WITH_SCSI -DVBOX_WITH_VBOXSDL -DVBOX_WITH_VIDEOHWACCEL -DVBOX_WITH_VIRTIO -DVBOX_WITH_USB_CARDREADER -DVBOX_WITH_RECORDING -DVBOX_WITH_AUDIO_RECORDING -DVBOX_WITH_NAT_SERVICE -DVBOX_WITH_SHARED_CLIPBOARD -DVBOX_WITH_VMSVGA -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o  /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
kmk_builtin_append -n "/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/VBoxManage/VBoxManageModifyVM.o.dep" "" "/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp:" ""
kmk: *** Exiting with status 2
kmk_builtin_rm -f -- 
  GEN {T}/vboxjws-gen/jwsgen/jwsglue.list
wsimport -Xnocompile -p org.virtualbox_6_1.jaxws -d /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/webservice/vboxwebService.wsdl
* wsimport is not available for openjdk-bin-11 on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/src/VBox/Main/webservice/Makefile.kmk:472: /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/jwsglue.list.ts] Error 1
 * ERROR: app-emulation/virtualbox-6.1.32::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-6.1.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-6.1.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32'
 * S: '/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32'

Reproducible: Always

Steps to Reproduce:
1. openjdk-bin-11
2. VirtualBox 6.1.32
3. ~x86_64
Actual Results:  
* wsimport is not available for openjdk-bin-11 on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures


Expected Results:  
Successful compile and merge.
Comment 1 Arnim Eijkhoudt 2022-01-27 17:29:54 UTC
Created attachment 763759 [details]
emerge --info

emerge --info output
Comment 2 Fulgurance 2022-01-29 14:49:34 UTC
I have the same issue, I confirm
Comment 3 Fulgurance 2022-01-29 14:50:40 UTC
* wsimport is not available for openjdk-bin-11 on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/src/VBox/Main/webservice/Makefile.kmk:472: /var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/jwsglue.list.ts] Error 1
 * ERROR: app-emulation/virtualbox-6.1.32::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-6.1.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-6.1.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32'
 * S: '/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32'
!!! When you file a bug report, please include the following information:
GENTOO_VM=  CLASSPATH="" JAVA_HOME=""
JAVACFLAGS="" COMPILER=""
and of course, the output of emerge --info =virtualbox-6.1.32

>>> Failed to emerge app-emulation/virtualbox-6.1.32, Log file:

>>>  '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/build.log'

 * Messages for package app-emulation/virtualbox-6.1.32:

 * ERROR: app-emulation/virtualbox-6.1.32::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=app-emulation/virtualbox-6.1.32::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=app-emulation/virtualbox-6.1.32::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/app-emulation/virtualbox-6.1.32/temp/environment'.
 * Working directory: '/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32'
 * S: '/var/tmp/portage/app-emulation/virtualbox-6.1.32/work/VirtualBox-6.1.32'
Comment 4 Fulgurance 2022-01-29 14:51:06 UTC
 root  /  home  zohran  1  emerge --info
Portage 3.0.30 (python 3.9.10-final-0, default/linux/amd64/17.1/hardened/selinux, gcc-11.2.1, glibc-2.34-r7, 5.16.1-gentoo x86_64)
=================================================================
System uname: Linux-5.16.1-gentoo-x86_64-Intel-R-_Core-TM-_i9-10980HK_CPU_@_2.40GHz-with-glibc2.34
KiB Mem:    32470564 total,   9981136 free
KiB Swap:   41943036 total,  41943036 free
Timestamp of repository gentoo: Sat, 29 Jan 2022 14:30:01 +0000
Head commit of repository gentoo: 7eed98c6ba9b44d953fa8bf663adb7fcdca9e5eb
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
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:           3.9.10-r1::gentoo, 3.10.2-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sec-policy/selinux-base:   2.20210908-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           13.0.0::gentoo
sys-devel/gcc:             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.0::gentoo
sys-devel/llvm:            13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.16::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r7::gentoo
sys-libs/libselinux:       3.3::gentoo
Repositories:

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

pentoo
    location: /var/lib/layman/pentoo
    sync-type: laymansync
    sync-uri: https://github.com/pentoo/pentoo-overlay.git
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    sync-type: laymansync
    sync-uri: https://github.com/anyc/steam-overlay.git
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
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 -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live candy config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=skylake -O2 -pipe -mmovbe -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2 -mpopcnt -mavx -mavx2 -maes -mpclmul -mfsgsbase -mrdrnd -mfma -mbmi -mbmi2 -mf16c -mrdseed -madx -mprefetchwt1 -mclflushopt -mxsavec -mxsaves"
GENTOO_MIRRORS="http://gentoo.mirrors.ovh.net/gentoo-distfiles/ https://mirrors.aliyun.com/gentoo/ http://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_FR.UTF-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j16"
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 aac acl acpi alsa amd64 audit bluetooth btrfs bzip2 caps compat crypt cryptsetup cups custom-cflags custom-optimization dbus device-mapper dri dri3 elogind experimental ffmpeg git glamor gstreamer hardened iconv ipv6 jpeg kde libglvnd libtirpc lvm mp3 mp4 mtp multilib ncurses networkmanager nls nptl ogg open_perms opengl openmp pam pcre peer_perms phonon pie plasma png policykit pulseaudio readline seccomp selinux split-usr ssl ssp svg tiff ubac udev udisks unconfined unicode uvm v4l vorbis vulkan wayland wifi wireless x264 x265 xattr xtpax zlib" ABI_X86="32 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 rdrand sse sse2 sse3 ssse3 sse4_1 sse4_2" 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="libinput synaptics" KERNEL="linux" L10N="fr fr-FR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="NVPTX" 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" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby26 ruby27 ruby30" USERLAND="GNU" VIDEO_CARDS="intel i965 iris 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 5 Fulgurance 2022-02-06 10:38:05 UTC
You can confirm the bug please, I said I have the same problem as well
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-02-06 11:01:17 UTC
(In reply to Fulgurance from comment #5)
> You can confirm the bug please, I said I have the same problem as well

UNCONFIRMED/CONFIRMED doesn't make much difference for us in Gentoo. Please don't pay any attention to it.
Comment 7 Fulgurance 2022-02-09 10:18:51 UTC
Oh okay, I apologize
Comment 8 Fulgurance 2022-02-18 11:08:23 UTC
Nothing ? :(
Comment 9 Arnim Eijkhoudt 2022-02-18 11:09:51 UTC
I did some testing the other day. Temporary workaround is installing OpenJDK 8, setting that as the system Java implementation. That will provide a working wsimport and will let virtualbox compile successfully.
Comment 10 Marcel Greter 2022-07-05 23:22:31 UTC
Hope this gets fixed soon as it also blocked my upgrade path for some time now. Finally took the effort to get it solved (thanks for the hint to openjdk8, that indeed seems to provide a working `wsimport` command). You can easily check if you will hit this blocker by simply executing the command `wsimport`. It will either generate a help the message you see in the original error report:

* wsimport is not available for openjdk-bin-XX on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures

Not sure how this tool fits into the java world, but wondering if this is also an issue with the oracle jdks? Don't get me wrong, I'm all for open alternatives, but these subtle little breaks are of course not encouraging, but lets hope the tool reappears on a newer openjdk version again soon.

Other than that nothing more substantially to add beside the commands it took me to compile VirtualBox successfully. Adjust versions etc. as needed. You hopefully get the basic gist how to do it:

ebuild /var/db/repos/gentoo/dev-java/openjdk-bin/openjdk-bin-8.332_p09.ebuild compile install qmerge
eselect java-vm list
# choose jdk 8 (should be 1; aka the oldest)
eselect java-vm set system 1first/oldest
source /etc/profile
ebuild /var/db/repos/gentoo/app-emulation/virtualbox/virtualbox-6.1.32-r2.ebuild clean compile install qmerge
# reset to previous version
eselect java-vm set system 2 
emerge --depclean openjdk-bin
source /etc/profile

I guess it should be safe to remove the old openjdk version once it served its purpose, but I'll need to see when using VirtualBox. For now I'm happy my world merge went through for the first time in a few months.
Comment 11 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-06 00:04:06 UTC
Nobody seems to have actually attached a build.log which contains more information.
Comment 12 Marcel Greter 2022-07-06 01:26:43 UTC
It's actually pretty simple, build seems to call out the a tool named `wsimport`:

# which `wsimport`
/usr/bin/wsimport

That file seems to be just a wrapper, unknown to me if from gentoo or upstream, but does some magic with `java-config-2` to figure out if it can run or not, at least that's what I get from glancing over the code in that file.

So if that command can run, the build works (e.g. with openjdk 8) or it fails with the mentioned message (as is hardcoded in the file I mentioned):

* wsimport is not available for openjdk-bin-11 on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures

If you really insist I can revert and probably reproduce the error to provide a log. But the analysis is pretty clear, that command is just not working on the current default OpenJDK (AFAICT) and VirtualBox build seems to rely on it.
Comment 13 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-06 01:31:11 UTC
(In reply to Marcel Greter from comment #12)
> It's actually pretty simple, build seems to call out the a tool named
> `wsimport`:
> 

I get that, and thanks for your analysis. It's just that I wanted to be able to look at the log and see the e.g. USE flags needed before I sat down to try reproduce it.

While I can assume you need USE-java for it, I don't know. I also don't know whether the JVM eclass stuff is done correctly ebcause I don't see the log.
Comment 14 Marcel Greter 2022-07-06 01:33:36 UTC
No problem with providing you my use flags (I'm pretty sure they are the default for my default/linux/amd64/17.1/hardened profile):

app-emulation/virtualbox-6.1.32-r2:0/6.1::gentoo  USE="headless java pam qt5 sdk udev vboxwebsrv vnc -alsa -debug -doc -dtrace -lvm -opengl -opus -pax-kernel (-pch) -pulseaudio -python" PYTHON_SINGLE_TARGET="python3_10 -python3_8 -python3_9"
Comment 15 Marcel Greter 2022-07-06 01:38:15 UTC
Btw. a quick grep through the virtualbox sources brought up one interesting bit:
# With Java 11 wsimport was removed, usually part of a separate install now.
Comment 16 Marcel Greter 2022-07-06 01:49:19 UTC
And it seems I lied about my USE flags being default (mea culpa).
Culprit seems to be "+vboxwebsrv" which in turn requires "+java".
app-emulation/virtualbox vboxwebsrv java headless vnc -opus -opengl
Comment 17 Larry the Git Cow gentoo-dev 2022-07-06 02:06:06 UTC
The bug has been closed via the following commit(s):

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

commit c250435ca78aad838432b4b3ee02e42634b3b378
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-06 02:04:49 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-06 02:05:40 +0000

    app-emulation/virtualbox: force Java 8 for wsimport
    
    wsimport was dropped in Java 11+. We need to put the dep for 8
    in DEPEND rather than (just?) BDEPEND for the eclass magic
    to actually enforce the right env vars & java.
    
    Thanks to Marcel for the pointers.
    
    Closes: https://bugs.gentoo.org/832166
    Thanks-to: Marcel Greter <bugzilla@ocbnet.ch>
    Signed-off-by: Sam James <sam@gentoo.org>

 .../virtualbox/virtualbox-6.1.34-r2.ebuild         | 511 +++++++++++++++++++++
 1 file changed, 511 insertions(+)
Comment 18 Larry the Git Cow gentoo-dev 2022-07-06 06:05:32 UTC
The bug has been referenced in the following commit(s):

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

commit c811211d3a19f9b79a9e0e9afc4aaf5e3fa5ed54
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-06 06:04:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-06 06:05:18 +0000

    app-emulation/virtualbox: add more wsimport context
    
    Bug: https://bugs.gentoo.org/832166
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/virtualbox/virtualbox-6.1.34-r4.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Comment 19 Volkmar W. Pogatzki 2022-07-06 06:22:29 UTC
(In reply to Marcel Greter from comment #15)
> Btw. a quick grep through the virtualbox sources brought up one interesting
> bit:
> # With Java 11 wsimport was removed, usually part of a separate install now.

Seems to be "jaxws-ri/bundles/jaxws-tools/" from [1]
with JAVA_MAIN_CLASS="com.sun.tools.ws.WsImport" [2]

[1] https://github.com/eclipse-ee4j/metro-jax-ws/
[2] https://github.com/eclipse-ee4j/metro-jax-ws/blob/4.0.0/jaxws-ri/bundles/jaxws-tools/pom.xml#L187