Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151521 - azureus ebuild forces ecj but command doesn't work
Summary: azureus ebuild forces ecj but command doesn't work
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-15 18:52 UTC by Navin Kumar
Modified: 2006-10-15 22:30 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 Navin Kumar 2006-10-15 18:52:21 UTC
Whenever I try to emerge azureus, it tries to use ecj which I believe avoids OutOfMemory errors for javac.  However, this line in the ebuild doesn't seem to work:

# javac likes to run out of memory during build... use ecj instead
java-pkg_force-compiler ecj-3.2 ecj-3.1

The ebuild then uses javac to try to compile azureus and of course fails.

Steps To Reproduce: 
1) emerge -v azureus

Output:
Calculating dependencies... done!

>>> Emerging (1 of 1) net-p2p/azureus-2.5.0.0-r3 to /
 * Azureus_2.5.0.0_source.zip MD5 ;-) ...                                                                                                                                    [ ok ]
 * Azureus_2.5.0.0_source.zip RMD160 ;-) ...                                                                                                                                 [ ok ]
 * Azureus_2.5.0.0_source.zip SHA1 ;-) ...                                                                                                                                   [ ok ]
 * Azureus_2.5.0.0_source.zip SHA256 ;-) ...                                                                                                                                 [ ok ]
 * Azureus_2.5.0.0_source.zip size ;-) ...                                                                                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                         [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                        [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                       [ ok ]
 * checking Azureus_2.5.0.0_source.zip ;-) ...                                                                                                                               [ ok ]
 * Using: sun-jdk-1.5
>>> Unpacking source...
>>> Unpacking Azureus_2.5.0.0_source.zip to /var/tmp/portage/net-p2p/azureus-2.5.0.0-r3/work/azureus
 * Applying various patches (bugfixes/updates) ...
 *   azureus-cache-size.patch ...                                                                                                                                            [ ok ]
 *   azureus-no-restart.patch ...                                                                                                                                            [ ok ]
 *   azureus-remove-manifest-classpath.patch ...                                                                                                                             [ ok ]
 *   azureus-remove-win32-PlatformManagerUpdateChecker.patch ...                                                                                                             [ ok ]
 *   azureus-remove-win32-osx-platforms.patch ...                                                                                                                            [ ok ]
 * Done with patching
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-p2p/azureus-2.5.0.0-r3/work/azureus ...
/usr/portage/net-p2p/azureus/azureus-2.5.0.0-r3.ebuild: line 64: java-pkg_force-compiler: command not found
Buildfile: build.xml

init:
     [echo] Building Azureus2.jar...
    [mkdir] Created dir: /var/tmp/portage/net-p2p/azureus-2.5.0.0-r3/work/azureus/dist

compile:
    [javac] Compiling 1956 source files to /var/tmp/portage/net-p2p/azureus-2.5.0.0-r3/work/azureus


    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space

BUILD FAILED
/var/tmp/portage/net-p2p/azureus-2.5.0.0-r3/work/azureus/build.xml:32: Compile failed; see the compiler error output for details.

Total time: 17 seconds

!!! ERROR: net-p2p/azureus-2.5.0.0-r3 failed.
Call stack:
  ebuild.sh, line 1564:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  azureus-2.5.0.0-r3.ebuild, line 66:   Called eant 'jar'
  java-utils-2.eclass, line 1202:   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=sun-jdk-1.5  CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.5.0.08"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info

Output of emerge --info:
Portage 2.1.2_pre3-r1 (default-linux/x86/2006.1/desktop, gcc-3.4.6, glibc-2.5-r0, 2.6.17.8 i686)
=================================================================
System uname: 2.6.17.8 i686 Intel(R) Pentium(R) M processor 1400MHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 14 Oct 2006 18:00:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
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.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -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/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://gentoo.mirrors.pair.com/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
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/local/portage /usr/local/overlays/migration-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X Xaw3d aac acpi alsa arts bash-completion berkdb bitmap-fonts bluetooth cairo cdr cli crypt cups dbus dlloader dri dvd dvdr eds elibc_glibc emboss encode esd exif fam firefox fortran gdbm gif glitz gpm gstreamer gtk gtk2 hal input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 irda isdnlog java jingle joystick jpeg kde kerberos kernel_linux ldap libg++ mad mikmod mmx mp3 mpeg mysql ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline reflection ruby sdl session speex spell spl sse sse2 ssl svg tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fglrx video_cards_radeon video_cards_vesa vorbis win32codecs xinerama xml xml2 xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-10-15 22:30:21 UTC
Please stop using migration overlay, it's now included in main tree, and the overlay itself is outdated and obsolete. java-check-environment should also tell you that.