Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149098 - xerces-2.7.1 build fails with USE="jikes": TYPE_MISMATCH_ERR was not found
Summary: xerces-2.7.1 build fails with USE="jikes": TYPE_MISMATCH_ERR was not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-25 11:20 UTC by Mark D.
Modified: 2006-09-27 19:48 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 Mark D. 2006-09-25 11:20:42 UTC
Problem: I cannot emerge xerces with the jikes use flag enabled. Xerces compiles perfectly with the jikes use flag disabled.

# emerge xerces

   [xjavac]    644.                     throw new DOMException(DOMException.TYPE_MISMATCH_ERR, msg);
   [xjavac]                                                                 ^---------------^
   [xjavac] *** Semantic Error: No accessible field named "TYPE_MISMATCH_ERR" was found in type "org.w3c.dom.DOMException".


   [xjavac]    661.                     throw new DOMException(DOMException.TYPE_MISMATCH_ERR, msg);
   [xjavac]                                                                 ^---------------^
   [xjavac] *** Semantic Error: No accessible field named "TYPE_MISMATCH_ERR" was found in type "org.w3c.dom.DOMException".

etc.

I have migrated to the new java setup.

# java-config-1 -L
[sun-jdk-1.4.2.12] "Sun JDK 1.4.2.12" (/etc/env.d/java/20sun-jdk-1.4.2.12) *
# java-config-2 -L
The following VMs are available for generation-2:
*)      Sun JDK 1.4.2.12 [sun-jdk-1.4]
2)      Sun JDK 1.5.0.08 [sun-jdk-1.5]
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-25 14:16:59 UTC
Can't reproduce it, I blame it on jikes' weirdness. Can you try xerces-2.7.1-r1 using jikes as gen-2 compiler to see if it fails too?
Comment 2 Mark D. 2006-09-25 20:41:48 UTC
Unfortunately I do not know how to tell portage to use a gen-2 compiler.
Comment 3 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2006-09-26 03:31:13 UTC
(In reply to comment #2)
> Unfortunately I do not know how to tell portage to use a gen-2 compiler.
> 

JAVA_PKG_FORCE_COMPILER=jikes emerge =xerces-2.7.1-r1
Comment 4 Mark D. 2006-09-26 11:10:21 UTC
Since xerces-2.7.1-r1 is no longer in the tree I used xerces-2.7.1-r2.

BUILD SUCCESSFUL
Total time: 8 seconds


# JAVA_PKG_FORCE_COMPILER=jikes emerge =xerces-2.7.1-r2 -va

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ] dev-java/xerces-2.7.1-r2 [2.7.1] USE="-doc -examples -source" 0 kB 

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] y

>>> Emerging (1 of 1) dev-java/xerces-2.7.1-r2 to /
 * Xerces-J-src.2.7.1.tar.gz MD5 ;-) ...                                                                               [ ok ]
 * Xerces-J-src.2.7.1.tar.gz RMD160 ;-) ...                                                                            [ ok ]
 * Xerces-J-src.2.7.1.tar.gz SHA1 ;-) ...                                                                              [ ok ]
 * Xerces-J-src.2.7.1.tar.gz SHA256 ;-) ...                                                                            [ ok ]
 * Xerces-J-src.2.7.1.tar.gz size ;-) ...                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                 [ ok ]
 * checking Xerces-J-src.2.7.1.tar.gz ;-) ...                                                                          [ ok ]
 * Using: sun-jdk-1.5
Comment 5 Josh Nichols (RETIRED) gentoo-dev 2006-09-27 19:48:44 UTC
Disabled jikes support in 2.7.1. Newer versions should be working. Thanks for reporting!