Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 387039 - >=app-emulation/virtualbox-4.1.4: compilation fails with USE="java"
Summary: >=app-emulation/virtualbox-4.1.4: compilation fails with USE="java"
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major with 1 vote (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
: 383669 (view as bug list)
Depends on:
Reported: 2011-10-13 14:27 UTC by Alexander Brüning
Modified: 2013-10-03 19:11 UTC (History)
8 users (show)

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

ebuild patch (vbox_java.patch,4.10 KB, patch)
2011-12-13 10:45 UTC, Ian Delaney (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Brüning 2011-10-13 14:27:12 UTC
Using oracle-jdk-bin-1.7 as system vm, getting this error:

/home/tmp/portage/app-emulation/virtualbox-4.1.4/work/VirtualBox-4.1.4_OSE/out/linux.amd64/release/obj/vboxjxpcom-gen/jxpcomgen/java/glue/ error: name clash: unwrap(List<Integer>) and unwrap(List<Short>) have the same erasure

Virtualbox compiles fine with USE="-java".

Reproducible: Always

Portage (default/linux/amd64/10.0/desktop, gcc-4.4.6, glibc-2.13-r4, 3.0.4-gentoo-r1 x86_64)
System uname: Linux-3.0.4-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Extreme_CPU_@_2.40GHz-with-gentoo-2.1
Timestamp of tree: Thu, 13 Oct 2011 12:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.7-r2, 2.7.2-r3, 3.1.4-r3, 3.2.2
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.4.6-r1, 4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r3
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo arduino funroll-loops multimedia x-webos x-kshade_overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=native -O2 -pipe"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d/ /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 /etc/usb_modeswitch.d/"
CXXFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/var/lib/layman/luksans-arduino /var/lib/layman/funroll-loops /var/lib/layman/multimedia /var/lib/layman/webos /usr/local/portage/kshade_overlay"
USE="X a52 aac acl acpi alsa amd64 apng archive bash-completion berkdb bluetooth branding bzip2 cairo canvas cdda cddb cdparanoia cdr celt cleartype cli consolekit cracklib crypt cups cxx dbus devhelp device-mapper djvu dmx dri dtmf dts dv dvb dvd dvdr dvi emboss encode exif fam fat fax fbcon ffmpeg firefox flac fontconfig fortran fts3 fuse gdbm gdu gif glade glitz gnome gnome-keyring gnutls gpm graphviz gstreamer gtk h224 h281 hal hbci http iax iconv icu ilbc imagemagick imlib ipv6 ivr ixj java jpeg jpeg2k kdrive lame lcms ldap libcaca libevent libnotify libsamplerate lid lyrics lzo mad minizip mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib nautilus ncurses nls nptl nptlonly ntfs nvidia ofx ogg opengl openmp pam pango pcre pdf plotutils png pnm policykit portaudio postscript ppds pppd pvr python3 qt3support qt4 quicktime rar raw readline sbc scanner sdl secure-delete session sid sip sipim smp sound spell sqlite srtp sse sse2 sse3 sse4 ssl startup-notification stats subtitles svg sysfs syslog tcpd teletext tga theora threads tiff truetype twisted udev unicode usb v4l2 vala vdpau vorbis vpb vxml wav wifi wma wmf x264 xanim xcb xcomposite xinerama xml xorg xulrunner xv xvid xvmc zip zlib zoran" ALSA_CARDS="hdspm hdsp emu10k1x emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="dibusb-usb1 dibusb-usb2 bcm3510 ttusb-dec usb-a800 usb-af9015 usb-dib0700 usb-dtt200u usb-umt usb-vp702x usb-vp7045 usb-wt220u vp7041" 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 ubx" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" NETBEANS_MODULES="dlight harness websvccommon ide java cnd nb profiler xml" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vga vesa nv nvidia" 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"
Comment 1 aidar 2011-11-03 17:37:38 UTC
Hey, have this as well. Oracle jvm 1.7
This is not gentoo issue at all. See here :

Here is the upstream bug report :
Comment 2 Eric Siegel 2011-11-08 19:06:39 UTC
I am having this issue too, with icedtea 7 and virtualbox 4.1.4.

Also, see this other bug:
Comment 3 Ian Delaney (RETIRED) gentoo-dev 2011-12-13 10:38:35 UTC
gentoo64 virtualbox # USE=java ebuild virtualbox-4.1.4.ebuild clean prepare
openpty failed: 'out of pty devices'
 * VirtualBox-4.1.4.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                         [ ok ]
 * checking ebuild checksums ;-) ...                                                                [ ok ]
 * checking auxfile checksums ;-) ...                                                               [ ok ]
 * checking miscfile checksums ;-) ...                                                              [ ok ]
 * checking VirtualBox-4.1.4.tar.bz2 ;-) ...                                                        [ ok ]
 * Using: icedtea-bin-6
>>> Unpacking source...
>>> Unpacking VirtualBox-4.1.4.tar.bz2 to /mnt/gen2/TmpDir/portage/app-emulation/virtualbox-4.1.4/work
>>> Source unpacked in /mnt/gen2/TmpDir/portage/app-emulation/virtualbox-4.1.4/work
>>> Preparing source in /mnt/gen2/TmpDir/portage/app-emulation/virtualbox-4.1.4/work/VirtualBox-4.1.4_OSE .

gentoo64 virtualbox # USE=java ebuild virtualbox-4.1.6-r1.ebuild clean configure
* Using: icedtea-bin-6
>>> Unpacking source...
>>> Unpacking VirtualBox-4.1.6.tar.bz2 to /mnt/gen2/TmpDir/portage/app-emulation/virtualbox-4.1.6-r1/work
>>> Source unpacked in /mnt/gen2/TmpDir/portage/app-emulation/virtualbox-4.1.6-r1/work
>>> Preparing source in /mnt/gen2/TmpDir/portage/app-emulation/virtualbox-4.1.6-r1/work/VirtualBox-4.1.6_OS

Try the patch for some success
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2011-12-13 10:45:59 UTC
Created attachment 295651 [details, diff]
ebuild patch

icedteab-bin-7 does have some name muddling but I shall leave that to the maintainer of the java devs.  This works for icdtea-bin-6, and you have a python fix thrown in for free.  rm -rf needs the / at the end of the path.  How did this make stable?
Comment 5 DaggyStyle 2011-12-21 20:10:10 UTC
same issue with dev-java/icedtea-7.2.0-r3 and vb-4.1.8 here
Comment 6 Eric Siegel 2012-02-04 20:31:32 UTC
Here's a workaround from a similar bug (

JAVA_PKG_FORCE_VM=icedtea-6 emerge -1 virtualbox
Comment 7 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2012-06-19 21:03:54 UTC
Should all be settled now. Latest vbox versions compile with java-7.
Comment 8 2012-06-19 23:45:00 UTC
I am also now able to compile latest version against java 7.  I think this is taken care of with latest versions.
Comment 9 Ben Kohler gentoo-dev 2013-10-03 19:11:07 UTC
*** Bug 383669 has been marked as a duplicate of this bug. ***