Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 276083 - Failed building dev-java/ant-eclipse-ecj-3.4 (class file wrong version)
Summary: Failed building dev-java/ant-eclipse-ecj-3.4 (class file wrong version)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 161622
Blocks:
  Show dependency tree
 
Reported: 2009-07-01 16:24 UTC by Krzysztof Magusiak
Modified: 2010-01-09 18:13 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Magusiak 2009-07-01 16:24:17 UTC
dev-java/ant-eclipse-ecj-3.4 cannot be emerged when dev-java/eclipse-ecj-3.4 was build using USE="java6".

Reproducible: Always

Steps to Reproduce:
1. Set USE="java6" in /etc/make.conf
2. emerge dev-java/eclipse-ecj
3. eselect ecj ...
4. emerge -av1 dev-java/ant-eclipse-ecj

Actual Results:  
Compilation failure: ejavac failed
  Compilation log:
>>> Compiling source in /var/tmp/portage/dev-java/ant-eclipse-ecj-3.4/work ...
org/eclipse/jdt/core/JDTCompilerAdapter.java:34: cannot access org.eclipse.jdt.core.compiler.CharOperation
bad class file: /usr/share/eclipse-ecj-3.4/lib/ecj.jar(org/eclipse/jdt/core/compiler/CharOperation.class)
class file has wrong version 50.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
import org.eclipse.jdt.core.compiler.CharOperation;


Expected Results:  
Compile ant-eclipse-ecj with java6 globaly enabled. Maybe ant-eclipse-ecj should also have a java6 flag?

Right now the workarround is to emerge eclipse-ecj without the java6 flag.
# echo "dev-java/eclipse-ecj -java6" >> /etc/portage/package.use

My VM is icedtea6-bin.

  emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.30-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-gentoo-2.0.1
Timestamp of tree: Sun, 28 Jun 2009 14:45:01 +0000
app-shells/bash:     4.0_p24
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.0
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.5, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.29
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /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/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.ovh.net/gentoo-distfiles/ http://de-mirror.org/distro/gentoo/ ftp://de-mirror.org/distro/gentoo/ "
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en fr"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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.europe.gentoo.org/gentoo-portage"
USE="7zip X X509 aac acl acpi ada alsa amd64 ao apache2 archive ares aspell async audio bash-completion bcmath berkdb bzip2 cairo caps cdr chroot cleartype cli consolekit cpudetection cracklib crypt css ctype cups curl curlwrappers custom-optimization d dbase dbus dga dhcpcd dia directfb dmx dri dvd dvi emerald encode examples exif faac faad fam ffmpeg firefox firefox3 flac fortran ftp fuse gd gdbm gif gimp glitz gmp gnome gpm graphics gs gsm gstreamer gtk gzip hal hash hddtemp iconv image imagemagick ipv6 isdnlog jabber java java6 javascript jpeg jpeg2k json lame laptop latex libmms libnotify libsamplerate libssh2 lm_sensors log4j lzma lzo mad mhash midi mmap mmx mozilla mp2 mp3 mp4 mpd mplayer mudflap multilib mysql nautilus ncurses network nforce2 nls nptl nptlonly nsplugin ntfs nvidia odbc ogg opengl openid openmp pam pango pcre pdf perl php pidgin pmu png posix postgres pppd python readline reflection regex regexp reiser4 reiserfs rss samba screen sdl session sftp sndfile soap sockets socks5 source speex spell spl sql sqlite sqlite3 sse sse2 ssh ssl ssse3 startup-notification suhosin svg sysfs syslog taglib tcpd theora threads thunderbird tiff truetype unicode unzip urandom usb v4l v4l2 vcd vhook video vorbis wifi x264 xattr xcb xine xinerama xml xorg xrender xulrunner xvid zip zlib" ALSA_CARDS="hda-intel" 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 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard synaptics mouse evdev void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 lxg 2009-08-04 15:07:16 UTC
Same issue:

~ # emerge -pv eclipse-sdk

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

Calculating dependencies... done!
[ebuild  N    ] dev-java/ant-eclipse-ecj-3.4  0 kB
[ebuild  N    ] dev-util/eclipse-sdk-3.4-r2  USE="java6 -doc" 0 kB

[...]


>>> Compiling source in /var/tmp/portage/dev-java/ant-eclipse-ecj-3.4/work ...                                                                                                                                                                         
org/eclipse/jdt/core/JDTCompilerAdapter.java:34: cannot access org.eclipse.jdt.core.compiler.CharOperation                                                                                                                                             
bad class file: /usr/share/eclipse-ecj-3.4/lib/ecj.jar(org/eclipse/jdt/core/compiler/CharOperation.class)                                                                                                                                              
class file has wrong version 50.0, should be 48.0                                                                                                                                                                                                      
Please remove or make sure it appears in the correct subdirectory of the classpath.                                                                                                                                                                    
import org.eclipse.jdt.core.compiler.CharOperation;                                                                                                                                                                                                    
                                     ^                                                                                                                                                                                                                 
1 error                                                                                                                                                                                                                                                
 *                                                                                                                                                                                                                                                     
 * ERROR: dev-java/ant-eclipse-ecj-3.4 failed.                                                                                                                                                                                                         
 * Call stack:                                                                                                                                                                                                                                         
 *               ebuild.sh, line   49:  Called src_compile                                                                                                                                                                                             
 *             environment, line 3994:  Called ejavac '-classpath' '/usr/share/ant-core/lib/ant-launcher.jar:/usr/share/ant-core/lib/ant.jar:/usr/share/ant-core/lib/ant-bootstrap.jar:/usr/share/eclipse-ecj-3.4/lib/ecj.jar' 'org/eclipse/jdt/core/JDTCompilerAdapter.java' 'org/eclipse/jdt/internal/antadapter/AntAdapterMessages.java'                                                                                                                                                                     
 *             environment, line  993:  Called die                                                                                                                                                                                                      
 * The specific snippet of code:                                                                                                                                                                                                                        
 *       ${compiler_executable} ${javac_args} "${@}" || die "ejavac failed"                                                                                                                                                                             
 *  The die message:                                                                                                                                                                                                                                    
 *   ejavac failed                                                                                                                                                                                                                                      


~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.3, glibc-2.10.1-r0, 2.6.29-gentoo-r1 x86_64)
=================================================================                                 
System uname: Linux-2.6.29-gentoo-r1-x86_64-AMD_Phenom-tm-_9650_Quad-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 04 Aug 2009 08:45:02 +0000                                                   
ccache version 2.4 [enabled]                                                                         
app-shells/bash:     4.0_p28                                                                         
dev-java/java-config: 2.1.8-r1                                                                       
dev-lang/python:     2.5.4-r2, 2.6.2-r1, 3.1                                                         
dev-util/ccache:     2.4-r8                                                                          
dev-util/cmake:      2.6.4-r2                                                                        
sys-apps/baselayout: 2.0.1                                                                           
sys-apps/openrc:     0.4.3-r3                                                                        
sys-apps/sandbox:    2.0                                                                             
sys-devel/autoconf:  2.13, 2.63-r1                                                                   
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=amdfam10 -msse4a"
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/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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=amdfam10 -msse4a"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.netcologne.de/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4 -s"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X a52 aac acl aiglx alsa amd64 apache2 arts avi berkdb bzip2 cdr cli cracklib crypt cups dbus dri dv dvb dvd dvdr dvdread encode fame ffmpeg firefox foomaticdb fortran gdbm gpm gtk2 hal iconv imlib ipv6 isdnlog java6 kde matroska mmx mp3 mpeg mudflap multilib mysql ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png pppd python qt3support qt4 readline reflection session spl sse sse2 ssl svg sysfs tcpd theora tiff unicode usb userlocales v4l v4l2 vlm vorbis wxwindows x264 xinerama xorg xvid zlib" 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 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" CAMERAS="fuji ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="radeonhd radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-01-09 18:13:41 UTC
As bug 161622 is fixed and releases in java-config-2.1.10 this shouldn't happen any more.