Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 566092 - app-emulation/virtualbox-4.3.32 fails to build with jdk:1.8
Summary: app-emulation/virtualbox-4.3.32 fails to build with jdk:1.8
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 1 vote (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
: 583644 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-11-18 03:20 UTC by Barnoid
Modified: 2017-08-31 18:18 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Barnoid 2015-11-18 03:20:51 UTC
virtualbox-4.3.32 fails to compile. Running make with -j1 reveals the culprit:

...
  GEN {T}/vboxjws-gen/jwsgen/jwsglue.list
/opt/oracle-jre-bin-1.8.0.66/bin/wsimport -Xnocompile -p org.virtualbox_4_3.jaxws -d /var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java /var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/webservice/vboxwebService.wsdl
kmk: /opt/oracle-jre-bin-1.8.0.66/bin/wsimport: Command not found
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/jwsglue.list.ts] Error 127
 * ERROR: app-emulation/virtualbox-4.3.32::gentoo failed (compile phase):
 *   emake failed



Reproducible: Always

Steps to Reproduce:
1. emerge virtualbox
Actual Results:  
Compilation fails with
  kmk: /opt/oracle-jre-bin-1.8.0.66/bin/wsimport: Command not found


$ emerge --info =virtualbox-4.3.32
Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.3, glibc-2.21-r1, 4.1.12-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.12-gentoo-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.2
KiB Mem:    32826888 total,  21037152 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Wed, 18 Nov 2015 00:45:01 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p39::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.10-r1::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.asia.gentoo.org/gentoo-portage
    priority: -1000

vmware
    location: /var/lib/layman/vmware
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /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-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/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="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.kaist.ac.kr/gentoo http://ftp.daum.net/gentoo/ http://distfiles.gentoo.org"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
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"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 apng bash-completion berkdb branding bzip2 cairo caps cdr cjk cli consolekit cracklib crypt cscope cups cxx dbus dri dts dvdr emboss exif fam ffmpeg firefox flac fortran gdbm gif glamor glib gnutls gtk gtk3 hpcups iconv ipv6 java jpeg jpeg2k lcms libnotify lock mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses networkmanager nls nptl nsplugin ntp opengl openmp orc pam pango pcre pdf pm-utils png policykit ppds python qt3support readline scanner seccomp session spell sqlite sse sse2 sse3 sse4_1 sse4_2 sse4a ssh ssl ssse3 startup-notification svg tcpd thunar tiff truetype udev udisks unicode upower usb vim-syntax wxwidgets x264 xattr xcb xft xinerama xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel" APACHE2_MODULES="actions alias auth_basic auth_digest authn_file authz_default authz_host authz_user dav dav_fs dav_lock deflate dir env filter headers include log_config log_forensic logio mime mime_magic rewrite status userdir vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ko de" NGINX_MODULES_HTTP="access auth_basic auth_pam autoindex browser charset dav dav_ext empty_gif fancyindex fastcgi geo gunzip gzip limit_conn limit_req map memcached metrics proxy referer rewrite scgi split_clients ssi stub_status upload upload_progress upstream_ip_hash userid" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Marc Lecuyer 2015-11-22 20:29:20 UTC
workaround:
using jdk instead of jre helps to workaround this issue.
Comment 2 Barnoid 2015-11-23 04:20:22 UTC
(In reply to Marc Lecuyer from comment #1)
> workaround:
> using jdk instead of jre helps to workaround this issue.

Thank you for the hint. kmk is found and runs, but chokes on the JavaDoc comments. I suspect this is caused by DocLint. Maybe error checks should be disabled as suggested here http://mail.openjdk.java.net/pipermail/build-infra-dev/2013-January/002899.html.

Here is what I get when trying to compile virtualbox:

$ sudo java-config -L
The following VMs are available for generation-2:
1)	IcedTea JDK 7.2.6.2 [icedtea-bin-7]
*)	Oracle JDK 1.8.0.66 [oracle-jdk-bin-1.8]
3)	Oracle JRE 1.8.0.66 [oracle-jre-bin-1.8]

$ sudo emerge -u app-emulation/virtualbox
...
kmk_builtin_mkdir -p /var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jdest-doc
  Generating javadoc html documentation 
/opt/oracle-jdk-bin-1.8.0.66/bin/javadoc -encoding UTF-8 -quiet \
	-sourcepath /var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java org.virtualbox_4_3 \
	-d /var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jdest-doc
/var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java/org/virtualbox_4_3/GuestUserState.java:89: error: unknown tag: ms
<pre>--vminfo-user-idle-threshold <ms></pre>, or by setting the per-VM guest property
                                  ^
/var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java/org/virtualbox_4_3/GuestUserState.java:90: error: unknown tag: ms
<pre>/VirtualBox/GuestAdd/VBoxService/--vminfo-user-idle-threshold <ms></pre>with the RDONLYGUEST flag on the host. In both cases VBoxService needs
                                                                   ^
/var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java/org/virtualbox_4_3/IAppliance.java:125: error: unknown tag: String
@return List<String>
            ^
[many more errors]

/var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/vboxjws-gen/jwsgen/java/org/virtualbox_4_3/IVirtualSystemDescription.java:212: warning: no @param for type
    public List<String> getValuesByType(org.virtualbox_4_3.VirtualSystemDescriptionType type, org.virtualbox_4_3.VirtualSystemDescriptionValueType which)
                        ^
100 errors
100 warnings
kmk: *** [/var/tmp/portage/app-emulation/virtualbox-4.3.32/work/VirtualBox-4.3.32/out/linux.amd64/release/obj/VBoxJWs-inst-jar/vboxjws-doc.jar] Error 1
 * ERROR: app-emulation/virtualbox-4.3.32::gentoo failed (compile phase):
 *   emake failed
Comment 3 Barnoid 2015-11-23 05:45:01 UTC
(In reply to Barnoid from comment #2)
> (In reply to Marc Lecuyer from comment #1)
> > workaround:
> > using jdk instead of jre helps to workaround this issue.
> 
> 

$ sudo java-config -L
The following VMs are available for generation-2:
*)	IcedTea JDK 7.2.6.2 [icedtea-bin-7]
2)	Oracle JDK 1.8.0.66 [oracle-jdk-bin-1.8]
3)	Oracle JRE 1.8.0.66 [oracle-jre-bin-1.8]


Update: with icedtea-bin-7 as the system VM compilation succeeds. Only recent Oracle versions seem to cause problems.
Comment 4 Pacho Ramos gentoo-dev 2016-05-24 09:49:05 UTC
*** Bug 583644 has been marked as a duplicate of this bug. ***
Comment 5 Pacho Ramos gentoo-dev 2016-05-24 09:50:36 UTC
bug 580552 is also about jre not being enough, maybe we can go there for that issue and keep this for 1.8 problem
Comment 6 Ben Kohler gentoo-dev 2017-08-31 18:18:39 UTC
Please reopen if this is still a problem on current versions