Eclipse SDK 3.1 RC3 fails to build wit GTK+ Reproducible: Always Steps to Reproduce: 1. echo dev-util/eclipse-sdk >> /etc/portage/package.unmask 2. emerge eclipse-sdk Actual Results: * Native gtk+ bindings built * Building GTK+ frontend (compile) -- see compilelog.txt for details BUILD FAILED java.lang.UnsupportedClassVersionError: com/jcraft/jsch/UserInfo (Unsupported major.minor version 49.0) Total time: 1 second !!! ERROR: dev-util/eclipse-sdk-3.1_pre3 failed. !!! Function build-gtk-java, Line 329, Exitcode 1 !!! Failed to compile Java code (gtk+) !!! If you need support, post the topmost build error, NOT this status message. Expected Results: emerge successful Portage 2.0.51-r3 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.9 i686) ================================================================= System uname: 2.6.9 i686 Pentium III (Coppermine) Gentoo Base System version 1.6.6 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /usr/ share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/te x/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -pipe -mmmx -msse" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.osuosl.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://192.168.0.1/gentoo-portage" USE="X alsa apm avi berkdb bitmap-fonts cdr crypt directfb encode f77 foomaticdb fortran gdbm gif gpm gtk gtk2 imli b java jpeg junit libg++ libwww mad mikmod mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quic ktime readline samba sdl slang spell ssl svga tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
I cannot emerge eclips-sdk-3.1_pre3 too. But I have different error message. [javac] 1. ERROR in /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/FeatureWriter.java (at line 23) [javac] public class FeatureWriter extends XMLWriter implements IPDEBuildConstants { [javac] ^^^^^^^^^^^^^ [javac] The return type is incompatible with Writer.append(char), PrintWriter.append(char) [javac] ---------- [javac] 2. ERROR in /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/FeatureWriter.java (at line 23) [javac] public class FeatureWriter extends XMLWriter implements IPDEBuildConstants { [javac] ^^^^^^^^^^^^^ [javac] The return type is incompatible with Writer.append(CharSequence, int, int), PrintWriter.append(CharSequence, int, int) [javac] ---------- [javac] 3. ERROR in /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/plugins/org.eclipse.pde.build/src/org/eclipse/pde/internal/build/FeatureWriter.java (at line 23) [javac] public class FeatureWriter extends XMLWriter implements IPDEBuildConstants { [javac] ^^^^^^^^^^^^^ [javac] The return type is incompatible with Writer.append(CharSequence), PrintWriter.append(CharSequence) [javac] ---------- [javac] 3 problems (3 errors) BUILD FAILED /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/build.xml:37: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/build.xml:8: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/features/org.eclipse.sdk/build.xml:35: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/features/org.eclipse.sdk/build.xml:21: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/features/org.eclipse.pde/build.xml:59: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/features/org.eclipse.pde/build.xml:20: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/plugins/org.eclipse.pde.build/build.xml:184: The following error occurred while executing this line: /var/tmp/portage/eclipse-sdk-3.1_pre3/work/eclipse-sdk-3.1_pre3/plugins/org.eclipse.pde.build/build.xml:48: Compile failed; see the compiler error output for details. Total time: 3 minutes 46 seconds !!! ERROR: dev-util/eclipse-sdk-3.1_pre3 failed. !!! Function build-gtk-java, Line 329, Exitcode 1 !!! Failed to compile Java code (gtk+) !!! If you need support, post the topmost build error, NOT this status message.
This should still be in java for now until the dev-tools herd becomes alive.
Comment #1 is due to mixing of 1.5 and 1.4 SDKs. Recompile jsch with a 1.4 JDK.
Sorry, I couldn't reproduce it... >>> dev-util/eclipse-sdk-3.1_pre3 merged. >>> Recording dev-util/eclipse-sdk in "world" favorites file... Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.8 i686) ================================================================= System uname: 2.6.8 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.7 distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r2 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.10-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -mtune=athlon-xp -O2 -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/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/share/config /usr/lib/fax /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -mtune=athlon-xp -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache cvs distcc distlocks sandbox sfperms userpriv usersandbox" GENTOO_MIRRORS="http://megatron.arnolds.bogus/gentoo/" MAKEOPTS="-j7" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://megatron.arnolds.bogus/gentoo-portage" USE="3dnow X aalib acl acpi alsa apm arts avi bitmap-fonts bonobo cdr crypt cscope cups dga directfb dvd emacs encode esd evo f77 fam fbcon flac foomaticdb fortran freetype freetype2 gb gcj gd gdbm gif gnome gphoto2 gpm gps graphviz gstreamer gtk gtk2 gtkhtml hal icq imagemagick imap imlib ipv6 jabber java jbig jikes jpeg jpg junit kde lame lcms ldap libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls ogg oggvorbis opengl oss pam pda pdflib perl plotutils png postgres python qt quicktime readline samba sasl sdl slang slp spell sse ssl tcltk tcpd tetex tiff truetype v4l v4l2 vorbis wifi x86 xine xml xml2 xmms xv zeo zlib video_cards_radeon"
Regarding the FeatureWriter problems: Have you run java-config --set-system-classpath (do you have a /etc/env.d/21java-classpath)? If so, delete it, regen your environment and relogin to clear residual env settings (or at least try export CLASSPATH=) to flush it. Then retry to compile.
(exporting classpath won't work unless you do it in the ebuild, since portage will source /etc/profile)
I have similar FeatureWriter errors when trying to emerge eclipse-sdk-3.1_pre4. I tried cleaning CLASSPATH up with `java-config -X`, which gave me CLASSPATH=. I have sun-jdk-1.5.0_01. It seemed to be a JDK-1.5 problem, because Writer.append functions started showing up @since 1.5, and FeatureWriter extends XMLWriter extends PrintWriter extends Writer. Trying to compile it using jdk-1.4 gave me the jsch error. When I try to re-emerge jsch, I got errors. *I think* portage is telling me that I need to recompile my ant toolchain using jdk-1.4.
Apparently, eclipse-sdk-3.0.1-r2 has FeatureWriter, and it compiles just fine with sun-jdk-1.5.0.01. So maybe it's not a sun-jdk problem. Continuing investigation.
I have reproduced this problem with pre4 as well. It only happens if you try to compile Eclipse with sun-jdk-1.5.0 (or 0.1).
I also have sun-jdk 1.5.0 and this is the error I got: Any ideas to solve it? # emerge -v eclipse-sdk Calculating dependencies ...done! >>> emerge (1 of 12) dev-java/rhino-1.5.5 to / >>> md5 src_uri ;-) rhino1_5R5.zip >>> md5 src_uri ;-) rhino-swing-ex-1.0.zip >>> Unpacking source... >>> Unpacking rhino1_5R5.zip to /var/tmp/portage/rhino-1.5.5/work * Applying 00_dont-fetch-swing-ex.patch ... [ ok ] >>> Source unpacked. Buildfile: build.xml properties: init: [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/classes [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/rhino1_5R5 [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/rhino1_5R5/src [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/rhino1_5R5/toolsrc [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/rhino1_5R5/examples [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/rhino1_5R5/docs [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/rhino1_5R5/docs/apidocs compile: properties: compile: [javac] Compiling 109 source files to /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/classes [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:1835: warning: [deprecation] org.mozilla.javascript.WrapHandler in org.mozilla.javascript has been deprecated [javac] WrapHandler _handler; [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:1837: warning: [deprecation] org.mozilla.javascript.WrapHandler in org.mozilla.javascript has been deprecated [javac] WrapHandlerProxy(WrapHandler handler) [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:450: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Object for a varargs call [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning [javac] = (Context[])threadLocalGet.invoke(threadLocalCx, null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:2428: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Class for a varargs call [javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning [javac] threadLocalGet = cl.getMethod("get", null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/src/org/mozilla/javascript/NativeJavaObject.java:849: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Class for a varargs call [javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning [javac] meth = value.getClass().getMethod("doubleValue", null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/src/org/mozilla/javascript/NativeJavaObject.java:859: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Object for a varargs call [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning [javac] return ((Number)meth.invoke(value, null)).doubleValue(); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 6 warnings [copy] Copying 2 files to /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/classes properties: get-swing-ex: [unzip] Expanding: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/swingExSrc.zip into /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger [delete] Deleting: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/FileSystemModel2.java [delete] Deleting: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/MergeSort.java [delete] Deleting: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/TreeTableExample2.java compile: [javac] Compiling 22 source files to /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build/classes [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1545: warning: [deprecation] disable() in javax.swing.JComponent has been deprecated [javac] public void disable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1545: warning: [deprecation] disable() in java.awt.Component has been deprecated [javac] public void disable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1553: warning: [deprecation] enable() in javax.swing.JComponent has been deprecated [javac] public void enable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1553: warning: [deprecation] enable() in java.awt.Component has been deprecated [javac] public void enable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java:127: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match [javac] new CodeSource(null, null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java:170: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match [javac] CodeSource cs = new CodeSource(url, null); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors [javac] 4 warnings BUILD FAILED /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/build.xml:51: The following error occurred while executing this line: /var/tmp/portage/rhino-1.5.5/work/rhino1_5R5/toolsrc/build.xml:69: Compile failed; see the compiler error output for details. Total time: 18 seconds
cifroes : that is already fixed for about 1 week or something, please emerge sync again.
After talking to the Eclipse devs, it turns out that 3.1 is not supposed to compile with 1.5 yet, so I've added a check for that in the ebuild.