Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132764 - [migration-overlay] emerging dev-java/ant-tasks-1.6.5-r1 fails
Summary: [migration-overlay] emerging dev-java/ant-tasks-1.6.5-r1 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-05-09 00:55 UTC by Uwe Klosa
Modified: 2006-05-09 06:52 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 Uwe Klosa 2006-05-09 00:55:34 UTC
I'm using the migration-overlay. System vm is set to sun-jdk-1.4. When I emerge dev-java/ant-tasks-1.6.5-r1 the system uses sun-jdk-1.5 for compilation. Therfore the emerge fails. I tried setting GENTOO_VM=sun-jdk-1.4. That didn't help.

>>> Emerging (1 of 1) dev-java/ant-tasks-1.6.5-r1 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking apache-ant-1.6.5-src.tar.bz2 ;-)
 * Using: sun-jdk-1.5
>>> Unpacking source...
>>> Unpacking apache-ant-1.6.5-src.tar.bz2 to /var/tmp/portage/ant-tasks-1.6.5-r1/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5 ...
Buildfile: build.xml

prepare:

check_for_optional_packages:

build:
    [mkdir] Created dir: /var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5/build
    [mkdir] Created dir: /var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5/build/classes
    [mkdir] Created dir: /var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5/build/lib
    [javac] Compiling 565 source files to /var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5/build/classes
    [javac] /var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5/src/main/org/apache/tools/ant/AntClassLoader.java:19: cannot access java.io.ByteArrayOutputStream
    [javac] bad class file: /opt/sun-jdk-1.5.0.06/jre/lib/rt.jar(java/io/ByteArrayOutputStream.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 java.io.ByteArrayOutputStream;
    [javac]                ^
    [javac] 1 error

BUILD FAILED
/var/tmp/portage/ant-tasks-1.6.5-r1/work/apache-ant-1.6.5/build.xml:606: Compile failed; see the compiler error output for details.

Total time: 6 seconds

!!! ERROR: dev-java/ant-tasks-1.6.5-r1 failed.
Call stack:
  ebuild.sh, line 1527:   Called dyn_compile
  ebuild.sh, line 930:   Called src_compile
  ant-tasks-1.6.5-r1.ebuild, line 79:   Called die

!!! build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

!!! When you filing a bug report, please include the following information:
GENTOO_VM=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.4.2.10"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER=""
and of course, the output of emerge --info

Portage 2.1_pre10-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.4-r2, 2.6.16-suspend2-r5 i686)
=================================================================
System uname: 2.6.16-suspend2-r5 i686 Intel(R) Pentium(R) M processor 1.80GHz
Gentoo Base System version 1.12.0_pre19
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r1
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18
sys-devel/autoconf:  2.13, 2.59-r7
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.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="Yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="en sv"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/xgl-coffee /usr/portage/local/layman/migration /usr/portage/local/layman/java-experimental"
SYNC="rsync://gentoo.ub.uu.se/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 audiofile avi berkdb bzip2 cairo cdparanoia cdr crypt cups curl dba divx4linux dri dv dvd dvdr dvdread encode esd expat fam ffmpeg firefox flac fommaticdb foomaticdb gd gdbm gif gimpprint glitz gnome gpm gstreamer gtk gtk2 guile hal howl idn imagemagick imlib java jce jikes jpeg junit lame lcms ldap libg libg++ live logrotate lua mad mikmod mjpeg mmx mng motif mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg opengl oss other_var1 other_var2 pam pda perl png postgres ppds python qt quicktime radeon readline real samba sdl speex spell sse sse2 ssl svg tcltk tcpd tetex thunderbird tiff truetype udev unicode usb userlocales vcd vidix vorbis vorbix wavelan webdav win32codecs xine xml xml2 xmms xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_synaptics kernel_linux linguas_en linguas_sv userland_GNU video_cards_ati video_cards_vesa video_cards_fbdev video_cards_fglrx"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-05-09 05:53:46 UTC
Fixed now in svn. Do an svn update to get the cupdate, and try remerging.
Comment 2 Uwe Klosa 2006-05-09 06:52:44 UTC
Yes. Worked. Thanks.