| Summary: | java-config fails to determine suitable VM when java-virtuals present | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Java team <java> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | gentoo, idella4, phajdan.jr |
| Priority: | Normal | Keywords: | InVCS |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| See Also: | https://bugs.gentoo.org/show_bug.cgi?id=754393 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 451998 | ||
| Bug Blocks: | 403199 | ||
| Attachments: | The same issue with 2.1.12 | ||
|
Description
Juergen Rose
2012-02-05 23:22:40 UTC
Would you please test after setting your system vm to sun-jdk-1.6. I believe this issue is actually java-config related, and it is just scala and your system setup in combo that is triggering the issue. Changing system vm should (i hope) confirm this. With "Sun JDK 1.6.0.30" 'emerge scala' works without problems. After switching back to "IcedTea JDK 7.2.0" emerge scala' fails with the old error: root@impala:/root(4)# java-config -L The following VMs are available for generation-2: *) IcedTea JDK 7.2.0 [icedtea-7] 2) Sun JDK 1.6.0.30 [sun-jdk-1.6] root@impala:/root(5)# emerge -v scala These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-lang/scala-2.9.1 USE="doc emacs examples -binary -source" 0 kB Total: 1 package (1 reinstall), Size of downloads: 0 kB >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-lang/scala-2.9.1 * scala-2.9.1.tar.xz RMD160 SHA1 SHA256 size ;-) ... [ ok ] !!! ERROR: Couldn't find suitable VM. Possible invalid dependency string. Due to jdk-with-com-sun requiring a target of 1.7 but the virtual machines constrained by virtual/jdk-1.6 and/or this package requiring virtual(s) jdk-with-com-sun * Unable to determine VM for building from dependencies: Updating defect summary as this is not specific to scala. *** Bug 403333 has been marked as a duplicate of this bug. *** (In reply to comment #1) > Would you please test after setting your system vm to sun-jdk-1.6. > > I believe this issue is actually java-config related, and it is just scala > and your system setup in combo that is triggering the issue. Changing > system vm should (i hope) confirm this. Sorry for taking so long to investigate this, but i have finally gotten around to it. Just to document what ive found, so i don't forget. VersionManager.py:218 makes a call to a packages and virtuals target method. Issue with this is that virtuals prefer not to change version of vm, as java7 is a valid vm for the virtual it therefore returns the target of the current vm if it is supported. aka 1.7 for java7. the rest of the code then assumes that it must meet that requirement and is unable to. *** Bug 419737 has been marked as a duplicate of this bug. *** Please test with java-config-2.1.12. With java-conifg-2.1.12 being stable this should no longer happen. Thanks for the report. Created attachment 338322 [details]
The same issue with 2.1.12
Python doesn't make ones life simple, fixed in svn. http://overlays.gentoo.org/proj/java/changeset/9182 Hi! dev-java/jsr173 fails with oracle-jre-bin(-1.7.0.65). Switching the system-vm to dev-java/oracle-jdk-bin(-1.7.0.67) via eselect fixes it. Maybe the ebuild check and change to a working vm? Build log: # cat /var/log/portage/dev-java:jsr173-1.0-r1:20141014-184725.log * Package: dev-java/jsr173-1.0-r1 * Repository: gentoo * Maintainer: java@gentoo.org * USE: abi_x86_64 amd64 elibc_glibc kernel_linux policykit userland_GNU * FEATURES: preserve-libs sandbox userpriv usersandbox >>> cfg-update-1.8.2-r1: Checksum index is up-to-date ... !!! ERROR: The javac executable was not found in the Java path * Using: oracle-jre-bin-1.7 >>> Unpacking source... * jar is not available for oracle-jre-bin-1.7 on x86_64 * IMPORTANT: some Java tools are not available on some VMs on some architectures * ERROR: dev-java/jsr173-1.0-r1::gentoo failed (unpack phase): * failed to unpack * * Call stack: * ebuild.sh, line 93: Called src_unpack * environment, line 3903: Called die * The specific snippet of code: * jar xvf ${DISTDIR}/${A} || die "failed to unpack"; * * If you need support, post the output of `emerge --info '=dev-java/jsr173-1.0-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-java/jsr173-1.0-r1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM=oracle-jre-bin-1.7 CLASSPATH="" JAVA_HOME="/opt/oracle-jre-bin-1.7.0.65" JAVACFLAGS="-source 1.3 -target 1.3" COMPILER="" and of course, the output of emerge --info =jsr173-1.0 * The complete build log is located at '/var/log/portage/dev-java:jsr173-1.0-r1:20141014-184725.log'. * For convenience, a symlink to the build log is located at '/var/tmp/portage/dev-java/jsr173-1.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/jsr173-1.0-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-java/jsr173-1.0-r1/work' * S: '/var/tmp/portage/dev-java/jsr173-1.0-r1/work' emerge --info: # emerge --info Portage 2.2.8-r2 (default/linux/amd64/13.0/desktop/kde, gcc-4.7.3, glibc-2.19-r1, 3.16.2-gentooVillenMyytti x86_64) ================================================================= System uname: Linux-3.16.2-gentooVillenMyytti-x86_64-AMD_Athlon-tm-_Dual_Core_Processor_4850e-with-gentoo-2.2 KiB Mem: 6101432 total, 748988 free KiB Swap: 19433468 total, 19371444 free Timestamp of tree: Tue, 14 Oct 2014 17:00:01 +0000 ld GNU ld-versio (GNU Binutils) 2.23.2 app-shells/bash: 4.2_p53 dev-java/java-config: 2.2.0 dev-lang/perl: 5.18.2-r1 dev-lang/python: 2.7.7, 3.3.5-r1, 3.4.1 dev-util/cmake: 2.8.12.2-r1 dev-util/pkgconfig: 0.28-r1 sys-apps/baselayout: 2.2 sys-apps/openrc: 0.12.4 sys-apps/sandbox: 2.6-r1 sys-devel/autoconf: 2.13, 2.69 sys-devel/automake: 1.11.6, 1.12.6, 1.13.4 sys-devel/binutils: 2.23.2 sys-devel/gcc: 4.7.3-r1 sys-devel/gcc-config: 1.7.3 sys-devel/libtool: 2.4.2-r1 sys-devel/make: 4.0-r1 sys-kernel/linux-headers: 3.13 (virtual/os-headers) sys-libs/glibc: 2.19-r1 Repositories: gentoo luman gamerlay daktak mythtv x-portage ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=athlon64-sse3 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" EMERGE_DEFAULT_OPTS="--keep-going -j 3 --load-average 1.90" FCFLAGS="-O2 -pipe" FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync metadata-transfer 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://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/" LANG="fi_FI.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" 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" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/luman /var/lib/layman/gamerlay /var/lib/layman/daktak /usr/local/mythtv_portage/Gentoo /usr/local/portage" USE="32bit 3dnow 3dnowext S3TC X a52 aac aacplus aacs aalib ace acl acpi alsa amd64 apache2 bash-completion berkdb bittorrent bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr cdrom chardet cli consolekit cracklib crypt cscope css cuda cups cxx dbus declarative dri dts dvb dvd dvdnav dvdr embedded emboss enca encode examples exif fam ffmpeg fftw fi firefox flac floppy fluidsynth fontconfig fortran ftp g3dvl gd gdbm gif git glamor google-gadgets goom gpm gtk hddtemp iconv icu id3 id3tag ieee1394 imlib ipod ipv6 ithreads jack java javascript joystick jpeg jpeg2k kde kdecards kdepim kipi latin1 lcd lcms ldap libnotify libsamplerate lirc lm_sensors logrotate mad maildir matroska mbox md5sum midi mikmod mixer mjpeg mmx mmxext mng mod modplug modules mp3 mp4 mpeg mplayer mtp multilib multiuser musepack music mysql mythtv ncurses nls nodrm nptl nsplugin ntfs ntfsprogs nvcontrol nvidia offensive ogg ogg123 openal opengl openmp pam pango pcre pdf phonon php plasma png policykit ppds projectm projectx pvr qt3support qt4 quicktime rar readline real rpc rtc rtmp s3tc scanner screensaver sdl semantic-desktop sensord session sftp sid sndfile spell sse sse2 sse3 ssl startup-notification stk stream subtitles svg systray taglib tcpd test-programs tga theora threads tiff timidity tk transcode truetype udev udisks unicode unzip upower usb uvm v4l vaapi vcd vdpau vdr vhosts vim vim-pager vim-syntax vim-with-x vorbis vst wallpapers wavpack webdav webdav-neon win32 wma wxwidgets x264 xcb xcomposite xinerama xml xmltv xrandr xscreensaver xterm xv xvfb xvid zip zlib" ABI_X86="64" ALSA_CARDS="hda-intel virmidi" 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="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse joystick synaptics evdev" KERNEL="linux" LCD_DEVICES="imon" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="fi en_GB en" LIRC_DEVICES="userspace" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="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" Unset: CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON Sorry! Too many tabs open in browser, I was supposed to make a new bug report! Category java-virtuals has been removed with commit #89fcd3bf5dac8e6dece95e683efc9ca17ca71b15. Closing |