| Summary: | eclipse-sdk-3.1-r1 build fails with java.lang.reflect.InvocationTargetException | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | slynn <slynn> |
| Component: | [OLD] Development | Assignee: | Development Tools Team <dev-tools> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cyberroadie, german.delacruz, j.d, karltk, lavish, maq, mike, omschaub, rmay31, voyageur, wilscarlet |
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | AMD64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | fix oom compile problem | ||
|
Description
slynn@granite-mtn.net
2005-07-26 06:56:43 UTC
I have a similar problem on my amd64 with blackdown-jdk-1.4.2.02 and
eclipse-sdk-3.1-r1 :
[javac] 1. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.java
[javac] (at line 66)
[javac] private boolean needsMerge = false;
[javac] ^^^^^^^^^^
[javac] The field CVSDecoration.needsMerge is never read locally
[javac] ----------
[javac] ----------
[javac] 2. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.java
[javac] (at line 78)
[javac] private String dirtyTextIndicator;
[javac] ^^^^^^^^^^^^^^^^^^
[javac] The field CVSDecoration.dirtyTextIndicator is never read locally
[javac] ----------
[javac] ----------
[javac] 3. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.java
[javac] (at line 79)
[javac] private String addedTextIndicator;
[javac] ^^^^^^^^^^^^^^^^^^
[javac] The field CVSDecoration.addedTextIndicator is never read locally
[javac] ----------
[javac] ----------
[javac] 4. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/CVSDecoration.java
[javac] (at line 87)
[javac] private static ImageDescriptor merged;
[javac] ^^^^^^
[javac] The field CVSDecoration.merged is never read locally
[javac] ----------
[javac] ----------
[javac] 5. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/HistoryFilter.java
[javac] (at line 19)
[javac] private HistoryView view;
[javac] ^^^^
[javac] The field HistoryFilter.view is never read locally
[javac] ----------
[javac] ----------
[javac] 6. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/RestoreFromRepositoryAction.java
[javac] (at line 58)
[javac] private static final String ATTIC = "Attic"; //$NON-NLS-1$
[javac] ^^^^^
[javac] The field RestoreFromRepositoryAction.AtticLogListener.ATTIC is
never read locally
[javac] ----------
[javac] ----------
[javac] 7. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java
[javac] (at line 28)
[javac] private CVSOutputConsole console;
[javac] ^^^^^^^
[javac] The field CVSConsolePageParticipant.console is never read locally
[javac] ----------
[javac] ----------
[javac] 8. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/console/CVSConsolePageParticipant.java
[javac] (at line 29)
[javac] private IPageBookViewPage page;
[javac] ^^^^
[javac] The field CVSConsolePageParticipant.page is never read locally
[javac] ----------
[javac] ----------
[javac] 9. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/ReconcileProjectOperation.java
[javac] (at line 38)
[javac] private CVSWorkspaceSubscriber subscriber =
CVSProviderPlugin.getPlugin().getCVSWorkspaceSubscriber();
[javac] ^^^^^^^^^^
[javac] The field ReconcileProjectOperation.subscriber is never read locally
[javac] ----------
[javac] ----------
[javac] 10. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java
[javac] (at line 79)
[javac] private Label tagAreaTextLabel;
[javac] ^^^^^^^^^^^^^^^^
[javac] The field TagSelectionArea.tagAreaTextLabel is never read locally
[javac] ----------
[javac] 10 problems (10 warnings)
BUILD FAILED
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/build.xml:37: The
following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/build.xml:8: The
following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.sdk/build.xml:35:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.sdk/build.xml:19:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.jdt/build.xml:84:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.jdt/build.xml:45:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/build.xml:311:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/build.xml:176:
java.lang.reflect.InvocationTargetException
#######################################################################
This is my emerge info:
lavish@darkstar ~ $ emerge info
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.4.1-r1
sys-apps/sandbox: 1.2.11
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
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -fweb -frename-registers -ftracer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -fweb -frename-registers -ftracer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aalib alsa avi bash-completion cddb cdr chroot crypt ctype curl dv
dvd dvdr encode fam flac foomaticdb fortran ftp gd gdbm gif glut gmail gpm
gstreamer gtk gtk2 imagemagick imlib ipv6 jpeg junit mad mjpeg motif
moznocompose moznoirc moznomail mp3 mpeg mpeg4 ncurses nls nowin nptl nptlonly
ntlm nvidia ogg oggvorbis opengl pam pdflib perl png python quicktime readline
real ruby sdl slang sms spell ssl svg tcltk tcpd tiff truetype-fonts type1-fonts
usb vorbis xml xml2 xpm xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LINGUAS
Thanks in advance
Cheers
Same problem here, it is true that I only have 512MB of RAM (and 1GB of swap), but it still failed when I added 4 * 1GB swap files (5GB of swap should be enough?). My emerge info: Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 3700+ Gentoo Base System version 1.6.13 ccache version 2.4 [disabled] dev-lang/python: 2.4.1-r1 sys-apps/sandbox: 1.2.11 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 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="fr_FR@euro" LC_ALL="fr_FR" LINGUAS="fr fr_FR" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 X aalib acpi aim alsa apache2 avi bash-completion berkdb bitmap-fonts bonobo bzip2 bzlib cddb cdr crypt cups curl curlwrappers dga dio dvb dvd dvdr dvdread eds encode exif fam fastcgi ffmpeg fftw flac foomaticdb fortran ftp gb gcj gd gdbm gif glut gnome gnustep gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile iconv imagemagick imap imlib ipv6 jabber java jikes joystick jpeg junit kde libcaca libwww lirc live lzw lzw-tiff mad matroska mbox mikmod mime mng motif mozilla mp3 mpeg msn nas ncurses nls nptl nptlonly nvidia objc offensive ogg oggvorbis openal opengl oscar oss pam pcmcia pcre pda pdflib perl php pic png posix ppds python qt quicktime readline real recode samba scanner sdl shared sharedmem simplexml slang snmp sockets socks5 speex spell ssl svg tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vcd vorbis wifi wxwindows xface xine xinerama xml xml2 xmlrpc xmms xosd xpm xv xvid yahoo zlib linguas_fr linguas_fr_FR userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS Same error here too as the original poster. I have 1GB of ram and 2GB swap. It's
a shame too, since the 3.1 built so well!
[javac] 10. WARNING in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/tags/TagSelectionArea.java
[javac] (at line 79)
[javac] private Label tagAreaTextLabel;
[javac] ^^^^^^^^^^^^^^^^
[javac] The field TagSelectionArea.tagAreaTextLabel is never read locally
[javac] ----------
[javac] 10 problems (10 warnings)
[javac] ----------
[javac] 1. ERROR in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/core
extension/org/eclipse/jdt/internal/corext/util/WorkingCopyUtil.java
[javac] (at line 0)
[javac]
/*******************************************************************************
[javac] ^
[javac] Internal compiler error
[javac] java.lang.OutOfMemoryError
[javac] ----------
BUILD FAILED
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/build.xml:37: The
following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/build.xml:8: The
following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.sdk/build.xml:35:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.sdk/build.xml:19:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.jdt/build.xml:84:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/features/org.eclipse.jdt/build.xml:45:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/build.xml:311:
The following error occurred while executing this line:
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/build.xml:176:
java.lang.reflect.InvocationTargetException
-----------------------------------------------------------------------
Portage 2.0.51.22-r2 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r0,
2.6.12-gentoo-r6 x86_64)
=================================================================
System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 2800+
Gentoo Base System version 1.6.13
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python: 2.3.5
sys-apps/sandbox: 1.2.11
sys-devel/autoconf: 2.13, 2.59-r6
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils: 2.15.92.0.2-r10
sys-devel/libtool: 1.5.18-r1
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=athlon64"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -pipe -march=athlon64"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
http://ftp-mirror.internap.com/pub/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/temp/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib adns alsa apache2 arts artswrappersuid atk avi
bash-completion berkdb bitmap-fonts browserplugin bzip2 cdr crypt cups curl dvd
dvdread eds encode esd ffmpeg firefox flac foomaticdb fortran gd gdbm gif gnome
gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib java jikes jpeg junit kde
libwww lzw lzw-tiff mad maildir mbox mikmod mozcalendar mozilla mozsvg mp3 mpeg
mysql mythtv nas ncurses nfsv4 nls nptl nvidia offensive ogg oggvorbis opengl
oss pam pdflib perl png ppds python qt readline real ruby samba sasl sdl server
slang speex spell ssl subtitles svg tcltk tcpd theora tiff truetype
truetype-fonts type1-fonts usb userlocales vorbis xine xinerama xml2 xmms xpm
xprint xv xvid xvmc zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
I have the same problem, sometimes OutOfMemoryError, sometimes just the version with java.lang.reflect.InvocationTargetException. I have 1.5 GB Memory, so this should not be a problem. (Even upping the ant_opts to use 2 GB did not work) I added a CC to Karl Trygve Kalleberg, because he is the author of the -r1 ebuild and fixed the last errors in it. This really seems to be an error in the ebuild, because the 3.1 ebuild did work on my system and both ebuild still use the same source from eclipse.org . The same problem happened to me. I tried setting my jvm to sun-jdk-1.5.0.04 and the build worked fine for me. Perhaps there is a bug in the blackdown jdk? P.S. If you use this method to emerge you will probably want to set the jdk back to a 1.4 version after eclipse is merged. On my amd64 system the ebuild also fails if i use the sun-jdk-1.5.0.04.
Last statement is:
[javac] <--------------------------
[javac] 1482. this.index = startPosition;
[javac] 1483. return false;
[javac] ---------------------------->
[javac] *** Semantic Error: These statements are unreachable.
[javac] jikes: expr.cpp:481: void
Semantic::ReportMethodNotFound(AstMethodInvocation*, TypeSymbol*): Assertion
`base' failed.
I don't have access to an amd64 to test this on yet, and the amd64 Java people are on an extended vacation, so I'll need a few hands to help out here. First, does the eclipse-sdk-3.1 work (i.e. not -r1)? Second, can anybody try the previous revisions of the ebuild and pinpoint which version it broke at? See http://www.gentoo.org/cgi-bin/viewcvs.cgi/dev-util/eclipse-sdk/eclipse-sdk-3.1-r1.ebuild?rev=1.6&view=log On my box I was able to emerge eclipse-sdk 3.0.1-r2, 3.0.2, 3.1 (the latest on july 4), with the following jvm: [sun-jre-bin-1.4.2.08] "Sun JRE 1.4.2.08" (/etc/env.d/java/20sun-jre-bin-1.4.2.08) [blackdown-jdk-1.4.2.02] "Blackdown JDK 1.4.2.02" (/etc/env.d/java/20blackdown-jdk-1.4.2.02) * [sun-jdk-1.5.0.04] "Sun JDK 1.5.0.04" (/etc/env.d/java/20sun-jdk-1.5.0.04) Right now I'm using 3.0.2, because 3.1 now gives me the following emerge error: BUILD FAILED /var/tmp/portage/eclipse-sdk-3.1/work/eclipse-sdk-3.1/jdtcoresrc/compilejdtcore.xml:47: Compiler Adapter org.eclipse.jdt.core.JDTCompilerAdapter caused an interesting exception. Total time: 2 seconds BUILD FAILED /var/tmp/portage/eclipse-sdk-3.1/work/eclipse-sdk-3.1/build.xml:238: The Eclipse compiler (ecj.jar) cannot be found. with both blackdown and sun 5 jdk. This looks like bug #100096 (ant version was vesrion-bumped after july 4 according to my genlop), I don't think this is related to this bug (too bad, this prevents me from having 3.1 anymore) Some things that I tested, maybe it will help:
My system jvm:
dev-java/blackdown-jdk-1.4.2.02 emerged on Jun 17 09:10:37
ant:
dev-java/ant-1.6.2-r6 since Oct 17 11:57:25 2004
(reemerge on Jul 26 20:12:33 2005)
ant-core:
dev-java/ant-core-1.6.2-r3 since May 15 22:01:52,
upgraded to dev-java/ant-core-1.6.2-r4 on Jul 26 20:10:49
I did a successfull build of dev-util/eclipse-sdk-3.1 on Jul 4 22:58:27, last
rsync before that was on Jul 4 19:51:45.
That last change (removing not working gcj support) should not matter.
I could not emerge any version of 3.1-r1 that I tried.
From /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/compilelog.txt:
@dot:
[mkdir] Created dir: /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/
plugins/org.eclipse.jdt.ui/temp.folder/@dot.bin
[javac] Compiling 1680 source files to /var/tmp/portage/eclipse-sdk-3.1-r1/wor
k/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/temp.folder/@dot.bin
[javac] ----------
[javac] 1. ERROR in /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/p
lugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Work
ingCopyUtil.java
[javac] (at line 0)
[javac] /*****************************************************************
**************
[javac] ^
[javac] Internal compiler error
[javac] java.lang.OutOfMemoryError
[javac]
[javac] ----------
BUILD FAILED
I tried to compile the classes in
/var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui
direct, this worked with:
ANT_OPTS=-Xmx256M ant @dot
Using -Xmx128M gave an OutOfMemory-Error, but 256 MB did generate 3381 class
files from 1680 source files without an error.
I did modify build.xml in this directory. I changed ${ws} to gtk, ${os} to
linux, ${arch} to x86_64 and set javacSource and javacTarget to 1.4, but even
without these changes there was no error when building.
Anything else I could try?
Here's my result on 3.1 as 3.1-r1 didn't work either. BUILD FAILED /var/tmp/portage/eclipse-sdk-3.1/work/eclipse-sdk-3.1/jdtcoresrc/compilejdtcore.xml:47: Compiler Adapter org.eclipse.jdt.core.JDTCompilerAdapter caused an interesting exception. Total time: 3 seconds BUILD FAILED /var/tmp/portage/eclipse-sdk-3.1/work/eclipse-sdk-3.1/build.xml:238: The Eclipse compiler (ecj.jar) cannot be found. Total time: 3 seconds !!! ERROR: dev-util/eclipse-sdk-3.1 failed. !!! Function src_compile, Line 109, Exitcode 1 !!! Failed to compile eclipse code (gtk+) !!! If you need support, post the topmost build error, NOT this status message. Emerge info: Portage 2.0.51.22-r2 (default-linux/amd64/2005.1, gcc-3.4.3, glibc-2.3.5-r0, 2.6.12-gentoo-r6 x86_64) ================================================================= System uname: 2.6.12-gentoo-r6 x86_64 AMD Athlon(tm) 64 Processor 2800+ Gentoo Base System version 1.6.13 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="ftp://gentoo.ccccom.com http://gentoo.ccccom.com http://mirrors. tds.net/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo" LINGUAS="ja zh_TW zh_CN ko" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X aac acl alsa anthy audiofile avi berkdb bidi bitmap-fonts bmp cdr cjk crypt cups curl doc dvd dvdread eds encode esd faad fam flac foomaticdb fortran ftp gif gpm gstreamer gtk gtk2 hal imagemagick imlib immqt-bc jack java jpeg junit kde kerberos ldap libclamav live lzw lzw-tiff mad matroska mime mozilla mozsvg mp3 mpeg mysql ncurses nls nptl nptlonly oav offensive ogg opengl oss pam pdflib perl png ppds python qt quicktime readline real samba sdl spell ssl tcltk tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales videos visualization vorbis xchatdccserver xchattext xine xml xml2 xmms xpm xprint xv xvid zeroconf zlib video_cards_radeon linguas_ja linguas_zh_TW linguas_zh_CN linguas_ko userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS (In reply to comment #9) > Some things that I tested, maybe it will help: > > My system jvm: > dev-java/blackdown-jdk-1.4.2.02 emerged on Jun 17 09:10:37 > > ant: > dev-java/ant-1.6.2-r6 since Oct 17 11:57:25 2004 > (reemerge on Jul 26 20:12:33 2005) > ant-core: > dev-java/ant-core-1.6.2-r3 since May 15 22:01:52, > upgraded to dev-java/ant-core-1.6.2-r4 on Jul 26 20:10:49 > > I did a successfull build of dev-util/eclipse-sdk-3.1 on Jul 4 22:58:27, last > rsync before that was on Jul 4 19:51:45. > That last change (removing not working gcj support) should not matter. > > I could not emerge any version of 3.1-r1 that I tried. > > From /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/compilelog.txt: > @dot: > [mkdir] Created dir: /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/ > plugins/org.eclipse.jdt.ui/temp.folder/@dot.bin > [javac] Compiling 1680 source files to /var/tmp/portage/eclipse-sdk-3.1-r1/wor > k/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui/temp.folder/@dot.bin > [javac] ---------- > [javac] 1. ERROR in /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/p > lugins/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/util/Work > ingCopyUtil.java > [javac] (at line 0) > [javac] /***************************************************************** > ************** > [javac] ^ > [javac] Internal compiler error > [javac] java.lang.OutOfMemoryError > [javac] > [javac] ---------- > > BUILD FAILED > > > I tried to compile the classes in > /var/tmp/portage/eclipse-sdk-3.1-r1/work/eclipse-sdk-3.1/plugins/org.eclipse.jdt.ui > direct, this worked with: > ANT_OPTS=-Xmx256M ant @dot > Using -Xmx128M gave an OutOfMemory-Error, but 256 MB did generate 3381 class > files from 1680 source files without an error. > > I did modify build.xml in this directory. I changed ${ws} to gtk, ${os} to > linux, ${arch} to x86_64 and set javacSource and javacTarget to 1.4, but even > without these changes there was no error when building. > > Anything else I could try? > > It did compile with: Sun JDK 1.5.0.04 (downloaded the amd64 binary) On my dual amd64, it took a rather long time, it seemed to get stuck on: [echo] Assembling..... But it compiled and it's running now :-) Is the combination amd64/blackdown maybe fatal? Created attachment 65646 [details, diff]
fix oom compile problem
The problem is that you don't use the "build" script anymore that sets the
ANT_OPTS correctly (which btw. makes the process-build function quite useless).
The attached patch fixes it, but it certainly is not a beauty (maybe there is
some way to pass those options to ant via the command line? That would be much
better IMHO).
patch in #12 fixed the ebuild for me. built using blackdown-jdk-1.4.2.02 Duh. #12 is right. Fixed. No revbump. |