Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 237514 - net-libs/xulrunner-1.8.1.16 - Failed to determine VM for building.
Summary: net-libs/xulrunner-1.8.1.16 - Failed to determine VM for building.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-12 18:53 UTC by Tiago
Modified: 2009-08-13 10:38 UTC (History)
0 users

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


Attachments
new ebuild (derby-10.5.1.1.ebuild,991 bytes, text/plain)
2009-08-13 10:38 UTC, Kyle Cavin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tiago 2008-09-12 18:53:55 UTC
Hi,

Emerging xulrunner-1.8.1.16 fails:

Traceback (most recent call last):
  File "/usr/bin/depend-java-query", line 8, in <module>
    from java_config_2 import __version__
ImportError: No module named java_config_2
 * Unable to determine VM for building from dependencies:
NV_DEPEND: java? ( >=virtual/jdk-1.4 )
        >=sys-libs/zlib-1.1.4
        >=sys-devel/binutils-2.16.1
        >=dev-libs/nss-3.11.5
        >=dev-libs/nspr-4.6.5-r1
        java? ( >=virtual/jre-1.4 )
        dev-util/pkgconfig  =sys-devel/automake-1.10*
        =sys-devel/autoconf-2.1*
        sys-devel/libtool x11-libs/libXrender
        x11-libs/libXt
        x11-libs/libXmu
        >=sys-libs/zlib-1.1.4
        dev-util/pkgconfig x11-libs/libXrender
        x11-libs/libXt
        x11-libs/libXmu
        >=media-libs/jpeg-6b
        >=media-libs/libpng-1.2.1
        dev-libs/expat
        app-arch/zip
        app-arch/unzip
        >=x11-libs/gtk+-2.8.6
        >=dev-libs/glib-2.8.2
        >=x11-libs/pango-1.10.1
        >=dev-libs/libIDL-0.8.0
        gnome? ( >=gnome-base/gnome-vfs-2.3.5
                >=gnome-base/libgnomeui-2.2.0 )
        !<x11-base/xorg-x11-6.7.0-r2
        >=x11-libs/cairo-1.0.0
        xinerama? ( x11-proto/xineramaproto )
        xprint? ( x11-proto/printproto ) java? ( >=dev-java/java-config-2.0.33-r
1 >=sys-apps/portage-2.1.2.7 )
VNEED:
 *
 * ERROR: net-libs/xulrunner-1.8.1.16 failed.
 * Call stack:
 *                   ebuild.sh, line   49:  Called pkg_setup
 *   xulrunner-1.8.1.16.ebuild, line   51:  Called java-pkg-opt-2_pkg_setup
 *       java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
 *         java-utils-2.eclass, line 2090:  Called java-pkg_switch-vm
 *         java-utils-2.eclass, line 2516:  Called die
 * The specific snippet of code:
 *                              die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.


This seems to be related to the Java VM. Currently I only have Sun's JDK 1.6 installed. I've had similar problems when emerging other packages (for example, Subversion), all seemingly related to the Java VM. What can I do to further diagnose the problem?

As requested by the failure message, here are my environment variables:

GENTOO_VM not set
CLASSPATH=.
JAVA_HOME=/etc/java-config-2/current-system-vm
JAVAC=/etc/java-config-2/current-system-vm/bin/javac
JAVACFLAGS not set
COMPILER not set

and here is my emerge --info:

Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r8 i686)
=================================================================
System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
Timestamp of tree: Fri, 12 Sep 2008 14:04:02 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer notitles parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 apm arts asf audiofile avahi bash-completion berkdb bluetooth bootsplash bzip2 cairo caps cdda cddb cdparanoia cjk cli cracklib crypt cscope css ctype cups curl cvs dbus directfb djvu dri dts dv dvd dvdnav dvdread dvi emacs encode esd exif fam fame fat fbcon ffmpeg flac fortran ftp fuse gcj gd gdbm gif gimpprint glitz glut gnuplot gphoto2 gpm graphviz gstreamer gtk gtkhtml hal haskell howl iconv id3tag idn ieee1394 imagemagick imap imlib ipv6 jack java javascript jpeg jpeg2k justify kde kdeenablefinal kdexdeltas kerberos krb4 ladspa latex lcms ldap libcaca libsamplerate lm_sensors mad mbox mdnsresponder-compat midi mime mjpeg mmx mmxext mng mono mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer msn mudflap mule mysql ncurses network nls nptl nsplugin ntfs objc objc++ objc-gc offensive ogg opengl openmp pcre pdf perl php plotutils png pop3d posix ppds python qt3 qt4 quicktime rdesktop readline real reflection reiserfs rtsp ruby samba sasl scanner sdl session slang sndfile snmp sockets softmmu sox speech speex spell spl sse sse2 ssl stream subtitles subversion svg svga svnserve symlink syslog sysvipc tcl tcltk tcpd tetex theora threads tiff timidity tk tokenizer toolbar transcode truetype twolame type1 unicode usb utempter v4l v4l2 vamp vcd vorbis wavpack wifi win32codecs wma wmf x264 x86 xattr xcomposite xine xml xorg xpm xv xvid zeroconf zlib" ALSA_CARDS="intel8x0" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dav_svn dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Thanks.

Reproducible: Always
Comment 1 Nethemas 2008-09-13 23:24:19 UTC
java-config-2 is likely broken.  It does that periodically I'm not sure why.  Just re-emerge java-config and the problem will be solved.  

(In reply to comment #0)
> Hi,
> 
> Emerging xulrunner-1.8.1.16 fails:
> 
> Traceback (most recent call last):
>   File "/usr/bin/depend-java-query", line 8, in <module>
>     from java_config_2 import __version__
> ImportError: No module named java_config_2
>  * Unable to determine VM for building from dependencies:
> NV_DEPEND: java? ( >=virtual/jdk-1.4 )
>         >=sys-libs/zlib-1.1.4
>         >=sys-devel/binutils-2.16.1
>         >=dev-libs/nss-3.11.5
>         >=dev-libs/nspr-4.6.5-r1
>         java? ( >=virtual/jre-1.4 )
>         dev-util/pkgconfig  =sys-devel/automake-1.10*
>         =sys-devel/autoconf-2.1*
>         sys-devel/libtool x11-libs/libXrender
>         x11-libs/libXt
>         x11-libs/libXmu
>         >=sys-libs/zlib-1.1.4
>         dev-util/pkgconfig x11-libs/libXrender
>         x11-libs/libXt
>         x11-libs/libXmu
>         >=media-libs/jpeg-6b
>         >=media-libs/libpng-1.2.1
>         dev-libs/expat
>         app-arch/zip
>         app-arch/unzip
>         >=x11-libs/gtk+-2.8.6
>         >=dev-libs/glib-2.8.2
>         >=x11-libs/pango-1.10.1
>         >=dev-libs/libIDL-0.8.0
>         gnome? ( >=gnome-base/gnome-vfs-2.3.5
>                 >=gnome-base/libgnomeui-2.2.0 )
>         !<x11-base/xorg-x11-6.7.0-r2
>         >=x11-libs/cairo-1.0.0
>         xinerama? ( x11-proto/xineramaproto )
>         xprint? ( x11-proto/printproto ) java? (
> >=dev-java/java-config-2.0.33-r
> 1 >=sys-apps/portage-2.1.2.7 )
> VNEED:
>  *
>  * ERROR: net-libs/xulrunner-1.8.1.16 failed.
>  * Call stack:
>  *                   ebuild.sh, line   49:  Called pkg_setup
>  *   xulrunner-1.8.1.16.ebuild, line   51:  Called java-pkg-opt-2_pkg_setup
>  *       java-pkg-opt-2.eclass, line   44:  Called java-pkg_init
>  *         java-utils-2.eclass, line 2090:  Called java-pkg_switch-vm
>  *         java-utils-2.eclass, line 2516:  Called die
>  * The specific snippet of code:
>  *                              die "Failed to determine VM for building."
>  *  The die message:
>  *   Failed to determine VM for building.
> 
> 
> This seems to be related to the Java VM. Currently I only have Sun's JDK 1.6
> installed. I've had similar problems when emerging other packages (for example,
> Subversion), all seemingly related to the Java VM. What can I do to further
> diagnose the problem?
> 
> As requested by the failure message, here are my environment variables:
> 
> GENTOO_VM not set
> CLASSPATH=.
> JAVA_HOME=/etc/java-config-2/current-system-vm
> JAVAC=/etc/java-config-2/current-system-vm/bin/javac
> JAVACFLAGS not set
> COMPILER not set
> 
> and here is my emerge --info:
> 
> Portage 2.1.4.4 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0,
> 2.6.24-gentoo-r8 i686)
> =================================================================
> System uname: 2.6.24-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 2.66GHz
> Timestamp of tree: Fri, 12 Sep 2008 14:04:02 +0000
> ccache version 2.4 [disabled]
> app-shells/bash:     3.2_p33
> dev-java/java-config: 1.3.7, 2.1.6
> dev-lang/python:     2.4.4-r13, 2.5.2-r7
> dev-python/pycrypto: 2.0.1-r6
> dev-util/ccache:     2.4-r7
> sys-apps/baselayout: 1.12.11.1
> sys-apps/sandbox:    1.2.18.1-r2
> sys-devel/autoconf:  2.13, 2.61-r2
> sys-devel/automake:  1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
> sys-devel/binutils:  2.18-r3
> sys-devel/gcc-config: 1.4.0-r4
> sys-devel/libtool:   1.5.26
> virtual/os-headers:  2.6.23-r3
> ACCEPT_KEYWORDS="x86"
> CBUILD="i686-pc-linux-gnu"
> CFLAGS="-march=pentium4 -O3 -pipe"
> CHOST="i686-pc-linux-gnu"
> CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
> /usr/kde/3.5/shutdown /usr/share/config /var/bind"
> CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/
> /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/
> /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild
> /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
> CXXFLAGS="-march=pentium4 -O3 -pipe"
> DISTDIR="/usr/portage/distfiles"
> FEATURES="distlocks fixpackages metadata-transfer notitles parallel-fetch
> sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
> GENTOO_MIRRORS="http://distfiles.gentoo.org"
> LC_ALL="en_US.UTF-8"
> LINGUAS="en"
> MAKEOPTS="-j2"
> PKGDIR="/usr/portage/packages"
> PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
> --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles
> --exclude=/local --exclude=/packages"
> PORTAGE_TMPDIR="/tmp"
> PORTDIR="/usr/portage"
> PORTDIR_OVERLAY="/usr/local/portage"
> SYNC="rsync://rsync.gentoo.org/gentoo-portage"
> USE="X a52 aac aalib acl acpi alsa apache2 apm arts asf audiofile avahi
> bash-completion berkdb bluetooth bootsplash bzip2 cairo caps cdda cddb
> cdparanoia cjk cli cracklib crypt cscope css ctype cups curl cvs dbus directfb
> djvu dri dts dv dvd dvdnav dvdread dvi emacs encode esd exif fam fame fat fbcon
> ffmpeg flac fortran ftp fuse gcj gd gdbm gif gimpprint glitz glut gnuplot
> gphoto2 gpm graphviz gstreamer gtk gtkhtml hal haskell howl iconv id3tag idn
> ieee1394 imagemagick imap imlib ipv6 jack java javascript jpeg jpeg2k justify
> kde kdeenablefinal kdexdeltas kerberos krb4 ladspa latex lcms ldap libcaca
> libsamplerate lm_sensors mad mbox mdnsresponder-compat midi mime mjpeg mmx
> mmxext mng mono mozilla moznocompose moznoirc moznomail mozsvg mp3 mpeg mplayer
> msn mudflap mule mysql ncurses network nls nptl nsplugin ntfs objc objc++
> objc-gc offensive ogg opengl openmp pcre pdf perl php plotutils png pop3d posix
> ppds python qt3 qt4 quicktime rdesktop readline real reflection reiserfs rtsp
> ruby samba sasl scanner sdl session slang sndfile snmp sockets softmmu sox
> speech speex spell spl sse sse2 ssl stream subtitles subversion svg svga
> svnserve symlink syslog sysvipc tcl tcltk tcpd tetex theora threads tiff
> timidity tk tokenizer toolbar transcode truetype twolame type1 unicode usb
> utempter v4l v4l2 vamp vcd vorbis wavpack wifi win32codecs wma wmf x264 x86
> xattr xcomposite xine xml xorg xpm xv xvid zeroconf zlib" ALSA_CARDS="intel8x0"
> 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
> auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm
> authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache
> dav dav_fs dav_lock dav_svn dbd deflate dir disk_cache env expires ext_filter
> file_cache filter headers ident imagemap include info log_config logio
> mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer
> proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir
> usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse"
> KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001
> mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="radeon vesa
> fbdev"
> Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG,
> LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
> 
> 
> Thanks.
> 
> Reproducible: Always
> 

Comment 2 Tiago 2008-09-14 00:38:31 UTC
(In reply to comment #1)
> java-config-2 is likely broken.  It does that periodically I'm not sure why. 
> Just re-emerge java-config and the problem will be solved.  

Thanks for the tip, Nethemas. Problem solved.
Comment 3 Kyle Cavin 2009-08-13 10:38:32 UTC
Created attachment 201115 [details]
new ebuild