Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142692 - xerces 2.7.1-r1 compile fails
Summary: xerces 2.7.1-r1 compile fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 12:37 UTC by Cayenne Boyer
Modified: 2006-09-10 06:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch for xjavac -r3 from user masayuko on IRC #gentoo-java (xjavac-vendors.patch,1.52 KB, patch)
2006-08-07 00:41 UTC, Vlastimil Babka (Caster) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Cayenne Boyer 2006-08-03 12:37:10 UTC
xerces 2.7.1-r1 fails to compile on my iBook (2.7.1 is fine) :

   [xjavac] Compiling 657 source files to /var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1/build/classes
   [xjavac] /var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1/build/src/org/apache/xerces/dom/NodeImpl.java:22: cannot find symbol
   [xjavac] symbol  : class Hashtable
   [xjavac] location: package java.util
   [xjavac] import java.util.Hashtable;
   [xjavac]                  ^
   [xjavac] /var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1/build/src/org/apache/xerces/dom/NodeImpl.java:80: cannot access java.lang.Object
   [xjavac] file java/lang/Object.class not found

snip: 98 more errors about not finding things that it should be able to

   [xjavac] 100 errors

BUILD FAILED
/var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1/build.xml:217: Compile failed; see the compiler error output for details.

Total time: 1 minute 27 seconds

!!! ERROR: dev-java/xerces-2.7.1-r1 failed.
Call stack:
  ebuild.sh, line 1543:   Called dyn_compile
  ebuild.sh, line 938:   Called src_compile
  xerces-2.7.1-r1.ebuild, line 48:   Called eant 'jars'
  java-utils-2.eclass, line 1229:   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=ibm-jdk-bin-1.5  CLASSPATH="" JAVA_HOME="/opt/ibm-jdk-bin-1.5.0.2"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info

I have gone through the java update instructions at http://www.gentoo.org/proj/en/java/java-upgrade.xml and everything seems to be good.

emerge --info
Portage 2.1.1_pre4-r2 (default-linux/ppc/2005.1/ppc/G4, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.15-gentoo-r2 ppc)
=================================================================
System uname: 2.6.15-gentoo-r2 ppc 7447A, altivec supported
Gentoo Base System version 1.12.4
app-admin/eselect-compiler: 2.0.0_rc2-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
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: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X alsa altivec apache2 berkdb bitmap-fonts browserplugin c3p0 cdr cli crypt cups dlloader dri dvd eds exif fbcon foomaticdb fortran gif gnome gpm gstreamer gtk gtk2 imap isdnlog java jpeg libwww motif mp3 mpeg ncurses nls nptl nptlonly opengl oss pam pcre pdflib perl png ppds pppd readline reflection session spell spl ssl tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales xml2 xorg xv zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Josh Nichols (RETIRED) gentoo-dev 2006-08-03 14:15:53 UTC
Could you try emerging with ibm-jdk-1.4 ? ie:

JAVA_PKG_FORCE_VM="ibm-jdk-bin-1.4" emerge xerces
Comment 2 Cayenne Boyer 2006-08-03 14:38:23 UTC
Yes that works
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-04 14:36:36 UTC
Narrowed down to problem with ibm-jdk-bin-1.5 (on x86 also). Happens also with manually trying to build vanilla sources with their bundled tools/jars. No problem with sun-jdk-1.5. After renaming all xjavac targets to javac, ibm-jdk-bin-1.5 starts to work while all other jdk's break (exact opposite).
Comment 4 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-05 13:16:10 UTC
Please update xjavac to -r3 - it has a fix that makes xerces compile.
Comment 5 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-05 17:34:32 UTC
Tried to do more thorough testing with all the JDK's I have on my x86, which is:
    blackdown-jdk-1.4.2
    ibm-jdk-bin-1.4
    ibm-jdk-bin-1.5
    jrockit-jdk-bin-1.4
    jrockit-jdk-bin-1.5
    kaffe
    sun-jdk-1.4
    sun-jdk-1.5

Looks like the problem isn't limited to ibm-jdk-bin. These JDK's failed before the new xjavac revision:
ibm-jdk-bin-1.5 jrockit-jdk-bin-1.4 jrockit-jdk-bin-1.5

After merging new xjavac, these still fail:
jrockit-jdk-bin-1.4 jrockit-jdk-bin-1.5

After changing xjavac tasks to javac in build.xml (which I initially found helping for ibm-jdk-bin-1.5):
blackdown-jdk-1.4.2 ibm-jdk-bin-1.4 jrockit-jdk-bin-1.4 jrockit-jdk-bin-1.5 sun-jdk-1.4 sun-jdk-1.5

So, both jrockit-jdk-bin's break in all cases.

Comment 6 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-08-06 09:11:23 UTC
Reopening due to jrockit-jdk-bin
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-06 09:18:13 UTC
There are many errors, the first being (both jrockit 1.4 and 1.5):

   [xjavac] 5. ERROR in /var/tmp/portage/xerces-2.7.1-r1/work/xerces-2_7_1/build/src/org/apache/html/dom/HTMLFrameElementImpl.java
   [xjavac]  (at line 27)
   [xjavac]     public class HTMLFrameElementImpl
   [xjavac]                  ^^^^^^^^^^^^^^^^^^^^
   [xjavac] The type HTMLFrameElementImpl must implement the inherited abstract method HTMLFrameElement.getContentDocument()
   [xjavac] ----------
   [xjavac] ----------
Comment 8 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-08-07 00:41:48 UTC
Created attachment 93637 [details, diff]
patch for xjavac -r3 from user masayuko on IRC #gentoo-java

I've tested this patch with all the JDK's listed in previous comment and it works, including jrockit's. xerces-2.8.0 from experimental overlay builds ok too.
Comment 9 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-10 06:55:20 UTC
Fixed in xjavac-20041208-r4