>>> Emerging (1 of 1) dev-java/jruby-0.9.1 to / * jruby-src-0.9.1.tar.gz MD5 ;-) ... [ ok ] * jruby-src-0.9.1.tar.gz RMD160 ;-) ... [ ok ] * jruby-src-0.9.1.tar.gz SHA1 ;-) ... [ ok ] * jruby-src-0.9.1.tar.gz SHA256 ;-) ... [ ok ] * jruby-src-0.9.1.tar.gz size ;-) ... [ ok ] * checking ebuild checksums ;-) ... [ ok ] * checking auxfile checksums ;-) ... [ ok ] * checking miscfile checksums ;-) ... [ ok ] * checking jruby-src-0.9.1.tar.gz ;-) ... [ ok ] * Using: blackdown-jdk-1.4.2 >>> Unpacking source... >>> Unpacking jruby-src-0.9.1.tar.gz to /var/tmp/portage/dev-java/jruby-0.9.1/work * Applying jruby-0.9.1-build.xml.patch ... [ ok ] >>> Source unpacked. Rewriting ./build.xml >>> Compiling source in /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1 ... Buildfile: build.xml init: prepare: [mkdir] Created dir: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build [mkdir] Created dir: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/classes [mkdir] Created dir: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/classes/jruby [mkdir] Created dir: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/classes/test [mkdir] Created dir: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/test-results [mkdir] Created dir: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/test-results/html compile.tasks: [javac] Compiling 1 source file to /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/classes/jruby [copy] Copying 1 file to /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/classes/jruby check-for-optional-packages: compile: [javac] Compiling 27 source files to /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build/classes/jruby [javac] /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/src/org/jruby/ast/executable/InstructionCompiler2.java:129: cannot access org.objectweb.asm.ClassWriter [javac] bad class file: /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/lib/asm.jar(org/objectweb/asm/ClassWriter.class) [javac] class file has wrong version 49.0, should be 48.0 [javac] Please remove or make sure it appears in the correct subdirectory of the classpath. [javac] import org.objectweb.asm.ClassWriter; [javac] ^ [javac] 1 error BUILD FAILED /var/tmp/portage/dev-java/jruby-0.9.1/work/jruby-0.9.1/build.xml:84: Compile failed; see the compiler error output for details. Total time: 17 seconds !!! ERROR: dev-java/jruby-0.9.1 failed. Call stack: ebuild.sh, line 1568: Called dyn_compile ebuild.sh, line 937: Called src_compile jruby-0.9.1.ebuild, line 50: Called eant 'jar' 'create-apidocs' java-utils-2.eclass, line 1345: Called die !!! eant failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! When you file a bug report, please include the following information: GENTOO_VM=blackdown-jdk-1.4.2 CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac" and of course, the output of emerge --info Portage 2.1.2_rc1-r3 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.4-r4, 2.6.18-suspend2 x86_64) ================================================================= System uname: 2.6.18-suspend2 x86_64 AMD Turion(tm) 64 Mobile Technology MT-32 Gentoo Base System version 1.12.6 Last Sync: Fri, 03 Nov 2006 16:30:01 +0000 app-admin/eselect-compiler: [Not Present] dev-java/java-config: 1.3.7, 2.0.30 dev-lang/python: 2.4.3-r4 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: [Not Present] dev-util/confcache: [Not Present] sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.60 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.14 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.17-r1 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=athlon64 -msse3 -pipe -fweb" CHOST="x86_64-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/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=athlon64 -msse3 -pipe -fweb" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="amd64 X a52 acpi alsa apache2 audiofile bitmap-fonts bzip2 cairo cdr cli contentcache cracklib crypt dbus disassembler djvu dlloader doc dvd dvdr dvdread dvi elibc_glibc encode examples fat ffmpeg firefox flac fuse gcc64 gd gdbm gif glibc-omitfp glitz gnome gpm gstreamer gtk hal howl iconv imagemagick immqt input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog java java5 jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux libg++ libnotify mad mikmod mjpeg mng mp3 mpeg music musicbrainz mysql nautilus ncurses nforce2 nls nptl nptlonly nsplugin ntfs nvidia ogg opengl pam pcre pdf pdo php plotutils pmu png postgres ppds pppd python qt3 quicktime readline reflection reiserfs ruby sdl session sharedmem sndfile spell spl sqlite ssl subtitles svg symlink tagwriting tcpd theora tidy truetype truetype-fonts type1-fonts udev unicode urandom usb userland_GNU vcd video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vmware vorbis xforms xfs xine xml xorg xv xvid zip zlib" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY java-config -L The following VMs are available for generation-2: 1) Blackdown JDK 1.4.2.03 [blackdown-jdk-1.4.2] 2) Sun 32bit JRE 1.5.0.08 [emul-linux-x86-java-1.5] *) Sun JDK 1.5.0.08 [sun-jdk-1.5]
Please run java-1.5 fixer or remerge =dev-java/asm-2.2* manually.
# java-1.5-fixer * Generating a list of jars which ant uses ... [ ok ] * Checking for > 1.4 bytecode in ant jars ... [ ok ] * Generating a list of jars in the system ... [ ok ] * Checking for > 1.4 bytecode in system jars ... [ ok ] * Congratulations! All system jars seem to have been sanely built already. remerging dev-java/asm-2.2.3 didn't help neither
Created attachment 101182 [details] asm-2.2.3.ebuild (should be -r1 ?) the ebuild depends on >=virtual/jdk-1.5 switching to 1.4 breaks as code is using syntax from 1.5 (while their ebuild says "source 1.3, target 1.2" !!! unbelievable...) attached you find the updated ebuild and a new patch that fixes the problem
Created attachment 101183 [details, diff] asm-2.2.3-code.patch new patch
sorry, saying "their ebuild" I've meant "their (asm) build.xml"
fixed :)
(In reply to comment #6) > fixed :) > This seems to be caused by our fixing of bug #148848. Federico: Probably best to get that patch included upstream. If you get that done, we can reopen this and add the patch.
Please don't mark 'resolved fixed'. That implies that something (ie the patch) has been committed which fixes the problem. This is not the case (yet).
Created attachment 101357 [details] asm-2.2.3-r1.ebuild upstream accepted the patch. I've asked for a new release but haven't seen it yet, so, just to close this, here is the updated ebuild and its new patch as applied by upstream
Created attachment 101358 [details, diff] asm-2.2.3-commons.patch
Created attachment 101359 [details, diff] differences from ebuilds
forgot to put reference to upstream bug it's even in the ebuild http://forge.objectweb.org/tracker/index.php?func=detail&aid=306349&group_id=23&atid=100023
Fixed in CVS with asm-2.2.3-r1. Give it a few hours to hit your local rsync.
*** Bug 148848 has been marked as a duplicate of this bug. ***