Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Failed to determine VM for building.

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
6 posts • Page 1 of 1
Author
Message
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

Failed to determine VM for building.

  • Quote

Post by jody » Wed Jul 02, 2008 12:57 pm

Hi
I am currently updating my gentoo machine, but i get stuck while emergin eclipse.

Code: Select all

 * checking hamcrest-1.1.tgz ;-) ...                                                                                                                   [ ok ]
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: >=virtual/jdk-1.5
        >=dev-java/jarjar-0.9
        =dev-java/qdox-1.6*  >=dev-java/java-config-2.0.33-r1 >=sys-apps/portage-2.1.2.7 source? ( app-arch/zip ) >=dev-java/javatoolkit-0.2.0-r1 >=sys-apps/portage-2.1.2.7  >=dev-java/ant-core-1.7.0 
VNEED: 
 * 
 * ERROR: dev-java/hamcrest-core-1.1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *               ebuild.sh, line 1254:  Called java-pkg-2_pkg_setup
 *       java-pkg-2.eclass, line   60:  Called java-pkg_init
 *     java-utils-2.eclass, line 2073:  Called java-pkg_switch-vm
 *     java-utils-2.eclass, line 2499:  Called die
 * The specific snippet of code:
 *                              die "Failed to determine VM for building."
 *  The die message:
 *   Failed to determine VM for building.
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/hamcrest-core-1.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/hamcrest-core-1.1/temp/die.env'.
 * 
!!! 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
My portage settings:

Code: Select all

aim-rush src # emerge --info
Portage 2.2_rc1 (default-linux/x86/2006.1/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.15-gentoo-r1-i686-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4800+-with-glibc2.0
Timestamp of tree: Wed, 02 Jul 2008 06:32:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.3-r4, 2.5.2-r5
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r2
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O3 -march=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.switch.ch/mirror/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.easynet.nl/mirror/gentoo/"
LDFLAGS=""
MAKEOPTS="-j4"
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="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X aac bash-completion berkdb bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dri dvd dvdr eds emboss encode esd fam fftw firefox flac fortran gdbm gif gimp glut gnome gnuplot gpm gstreamer gtk gtk2 hal iconv imagemagick ipv6 isdnlog jpeg kde latex ldap mad midi mikmod mmx mmxext mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session sid spell spl sse sse-filters sse2 ssl tcpd tetex threads tiff truetype unicode v4l vorbis win32codecs wma x86 xinerama xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1    emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m       maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
I suspect my java installation is completely wrong:

Code: Select all

aim-rush src # emerge -p sun-jdk

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-java/sun-jdk-1.6.0.06  
but

Code: Select all

aim-rush src # java -version
java version "1.5.0_15"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_15-b04)
Java HotSpot(TM) Server VM (build 1.5.0_15-b04, mixed mode)
Can anybody please tell me how to get things straightened out again?

Thank You
Jody
Top
Arfrever
Bodhisattva
Bodhisattva
Posts: 2463
Joined: Sat Apr 29, 2006 5:27 pm
Location: 異世界

  • Quote

Post by Arfrever » Wed Jul 02, 2008 4:01 pm

Try:

Code: Select all

emerge -1 java-config java-config-wrapper
Top
jody
l33t
l33t
User avatar
Posts: 682
Joined: Tue Oct 16, 2007 12:50 pm
Location: Switzerland

  • Quote

Post by jody » Wed Jul 02, 2008 4:12 pm

Thanks for the tip.

Code: Select all

emerge -1 java-config java-config-wrapper
got rid of the "VM"-problem.
However, a new one surfaced:

Code: Select all

>>> Compiling source in /var/tmp/portage/dev-java/junit-3.8.2-r1/work/junit3.8.2 ...
/usr/lib/portage/pym/portage_dep.py:39: DeprecationWarning: DEPRECATION NOTICE: The portage_dep module was replaced by portage.dep
/usr/lib/portage/pym/portage_dep.py:39: DeprecationWarning: DEPRECATION NOTICE: The portage_dep module was replaced by portage.dep
Rewriting attributes
Traceback (most recent call last):
  File "/usr/lib/javatoolkit/bin/xml-rewrite-3.py", line 30, in <module>
    from javatoolkit.xml.DomRewriter import DomRewriter
ImportError: No module named javatoolkit.xml.DomRewriter
 * If the output above contains:
 * ImportError:
 * /usr/lib/python2.4/site-packages/_xmlplus/parsers/pyexpat.so:
 * undefined symbol: PyUnicodeUCS2_DecodeUTF8
 * Try re-emerging dev-python/pyxml
 * 
 * ERROR: dev-java/junit-3.8.2-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3905:  Called java-pkg-2_src_compile
 *             environment, line 2114:  Called eant 'dist' '-f' 'build.xml'
 *             environment, line  787:  Called java-ant_bsfix
 *             environment, line 1947:  Called java-ant_bsfix_files './build.xml'
 *             environment, line 2040:  Called _bsfix_die 'xml-rewrite2 failed: ./build.xml'
 *             environment, line  269:  Called die
 * The specific snippet of code:
 *           die ${1} " Look at the eerror message above";
 *  The die message:
 *   xml-rewrite2 failed: ./build.xml  Look at the eerror message above
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-java/junit-3.8.2-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/junit-3.8.2-r1/temp/environment'.
 * 
!!! When you file a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.6  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.06"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info
I reemerged dev-python/pyxml, but this had no effect...

Any idea how i can solve this problem?
I guess it boiils down to find out, where javatoolkit.xml.DomRewrite is supposed to be created(?)

Thank You

Jody
Top
Matrix7
n00b
n00b
Posts: 54
Joined: Sat Feb 21, 2004 3:45 pm
Location: Sussex

  • Quote

Post by Matrix7 » Fri Jul 18, 2008 9:40 am

Have you tried python-updater? If python has been updated you need to run this to ensure packages compiled against python are re-compiled against the new version.
Top
lumiere
n00b
n00b
Posts: 21
Joined: Thu Oct 05, 2006 7:40 am

Updated Python?

  • Quote

Post by lumiere » Fri Jul 18, 2008 2:34 pm

I had the same bug as in your first post. It was the result of an update from Python 2.4 to 2.5. The later error might have the same origin.

After an update to Python, do a

Code: Select all

# python-updater
This rebuilt 58 (!) different packages on my system, including java-config and remedying the error above.
Top
BonezTheGoon
Bodhisattva
Bodhisattva
User avatar
Posts: 1408
Joined: Fri Jun 14, 2002 9:39 pm
Location: Albuquerque, NM -- birthplace of Microsoft and Gentoo

  • Quote

Post by BonezTheGoon » Mon Aug 11, 2008 4:36 pm

Arfrever wrote:Try:

Code: Select all

emerge -1 java-config java-config-wrapper
This also fixed the same errors and issue during my failed OpenOffice emerge.

Thanks!
mcgruff wrote:I can't promise to be civil.
pjp wrote:The greater evil is voting for the "lesser evil."
Top
Post Reply

6 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic