Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213897 - www-servers/tomcat-6.0.16 requires ant-eclipse-ecj (~amd64) on amd64
Summary: www-servers/tomcat-6.0.16 requires ant-eclipse-ecj (~amd64) on amd64
Status: RESOLVED DUPLICATE of bug 312293
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on: 214768
Blocks:
  Show dependency tree
 
Reported: 2008-03-19 08:22 UTC by Clemens Renner
Modified: 2010-06-06 12:44 UTC (History)
1 user (show)

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 Clemens Renner 2008-03-19 08:22:29 UTC
Tomcat 6.0.16 (other 6.x versions may be affected as well) requires
ant-eclipse-ecj because the build fails with an
java.lang.OutOfMemoryError (given below). This happens if eclipse-ecj is
available but the ant task is missing. Tomcat should thus probably
depend on ant-eclipse-ecj as well.

>>> Emerging (7 of 7) www-servers/tomcat-6.0.16 to /
 * Using: sun-jdk-1.5
 * Applying build-xml.patch ...
                                                     [ ok ]
removed `jstl.jar'
removed `standard.jar'
 * Could not find configuration for ecj-3.3, skipping
 * Perhaps it is not installed?
 * No suitable compiler found: defaulting to JDK default for compilation
 * Using following ANT_TASKS: ant-trax
    [javac]
    [javac]
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError: Java heap space
    [javac]     at com.sun.tools.javac.comp.Enter.classEnter(Enter.java:233)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.signature(MemberEnter.java:340)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.visitMethodDef(MemberEnter.java:555)
    [javac]     at
com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:478)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:383)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.memberEnter(MemberEnter.java:395)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.finishClass(MemberEnter.java:405)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.finish(MemberEnter.java:953)
    [javac]     at
com.sun.tools.javac.comp.MemberEnter.complete(MemberEnter.java:920)
    [javac]     at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)
    [javac]     at
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:612)
    [javac]     at com.sun.tools.javac.comp.Enter.complete(Enter.java:455)
    [javac]     at com.sun.tools.javac.comp.Enter.main(Enter.java:433)
    [javac]     at
com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:404)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:592)
    [javac]     at com.sun.tools.javac.main.Main.compile(Main.java:544)
    [javac]     at com.sun.tools.javac.Main.compile(Main.java:67)
    [javac]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
    [javac]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [javac]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:585)
    [javac]     at
org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:56)
    [javac]     at
org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:997)
    [javac]     at
org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:820)
    [javac]     at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [javac]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
Source)
    [javac]     at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [javac]     at java.lang.reflect.Method.invoke(Method.java:585)
    [javac]     at
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
    [javac]     at org.apache.tools.ant.Task.perform(Task.java:348)
    [javac]     at org.apache.tools.ant.Target.execute(Target.java:357)
    [javac]     at org.apache.tools.ant.Target.performTasks(Target.java:385)

BUILD FAILED
/tmp/portage/www-servers/tomcat-6.0.16/work/apache-tomcat-6.0.16-src/build.xml:88:
Compile failed; see the compiler error output for details.

Total time: 30 seconds
 *
 * ERROR: www-servers/tomcat-6.0.16 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3965:  Called eant 'src_compile'
'src_compile' 'build-jasper-jdt' 'deploy'
'-Dbase.path=/tmp/portage/www-servers/tomcat-6.0.16/temp'
'-Dcompile.debug=false' '-Dnobuild.docs=true'
'-Dant.jar=/usr/share/ant-core/lib/ant.jar'
'-Dcommons-daemon.jar=/usr/share/commons-daemon/lib/commons-daemon.jar'
'-Djdt.jar=/usr/share/eclipse-ecj-3.3/lib/ecj.jar'
 *             environment, line  883:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 *  The die message:
 *   eant failed



Reproducible: Always

Steps to Reproduce:
Just emerge / upgrade tomcat to the 6.0.16 without having ant-eclipse-ecj installed.
Actual Results:  
The OutOfMemoryError occurred during compilation.

Expected Results:  
Emerge should succeed.

Portage 2.1.4.4 (default-linux/amd64/2006.1, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3-rinux2 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3-rinux2 x86_64 AMD Opteron(tm) Processor 146
Timestamp of tree: Wed, 19 Mar 2008 01:46:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -funroll-loops -march=athlon64 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -funroll-loops -march=athlon64 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ http://gentoo.intergenia.de"
LINGUAS="en_GB"
MAKEOPTS="-j3 -s"
PKGDIR="/usr/portage/packages"
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="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="a52 aac acpi amd64 berkdb bzip2 cli cracklib crypt dri emul-linux-x86 exif fam flac ftp gdbm gif gnutls gpm hal iconv isdnlogjava jpeg jpeg2k ldap libwww lm_sensors mad matroska mhash midi ming mp3 mpeg mudflap ncurses nls nptl nptlonly offensive ogg openmp pam pcre pdf perl png posix ppds pppd python readline reflection ruby session sndfile spell spl ssl svg tcpd theora unicode vhosts vorbis wmf xorg xpm xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter 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_cacheenv 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" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glkhd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesavga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2008-03-25 20:56:02 UTC
As soon as I can get ant-eclipse-ecj keyword on x86-fbsd I will commit a updated ebuild with that depedency included. Till then, not much I can do.
Comment 2 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-04-06 21:08:32 UTC
(In reply to comment #1)
> As soon as I can get ant-eclipse-ecj keyword on x86-fbsd I will commit a
> updated ebuild with that depedency included. Till then, not much I can do.

you can do a !x86-fbsd? ( dev-java/ant-eclipse-ecj )
Comment 3 Łukasz Damentko (RETIRED) gentoo-dev 2008-10-30 16:21:02 UTC
Reassigning to herd since wltjr has left Gentoo, bug #135927.
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-06-06 12:44:36 UTC
This was actually implemented some time ago.

*** This bug has been marked as a duplicate of bug 312293 ***