Summary: | dev-java/lucene-2.3.2-r1: emerge fails with javacc-5.0 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Bertrand Piétu <pietuguitarra> |
Component: | [OLD] Java | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | java, rose |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 315557 |
Description
Bertrand Piétu
2010-03-17 16:38:09 UTC
It doesn't work with lucene-2.3.0 to lucene-2.9.1-r1 with the sama error message, but emerge =lucene-3.0.0 works fine. Openoffice needs lucene-2.3.* so impossible to emerge it. The problem is javacc-5.0. All is fine with javacc-4.2. So I downgrade but there is a problem with javacc-5.0. *** Bug 309959 has been marked as a duplicate of this bug. *** javacc-5 has been masked for the time being. i guess this problem should be gone with 1.4 gone as all supported jdk versions now support annotations and generics please retest since no more jdk 1.4s exit. Testing, umasking javacc-5.0 and emerge -1av =lucene-2.3.2-r1 fails with the same error above: common.compile-core: [mkdir] Created dir: /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/build/classes/java [javac] Compiling 258 source files to /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/build/classes/java [javac] /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/src/java/org/apache/lucene/queryParser/CharStream.java:30: annotations are not supported in -source 1.4 [javac] (use -source 5 or higher to enable annotations) [javac] @Deprecated [javac] ^ [javac] /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/src/java/org/apache/lucene/queryParser/QueryParser.java:1465: generics are not supported in -source 1.4 [javac] (use -source 5 or higher to enable generics) [javac] private java.util.List<int[]> jj_expentries = new java.util.ArrayList<int[]>(); [javac] ^ [javac] 2 errors BUILD FAILED /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/common-build.xml:176: The following error occurred while executing this line: /var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2/common-build.xml:399: Compile failed; see the compiler error output for details. Total time: 1 second * ERROR: dev-java/lucene-2.3.2-r1 failed (compile phase): * eant failed * * Call stack: * ebuild.sh, line 56: Called src_compile * environment, line 4421: Called eant '-Dversion=2.3.2' 'jar-core' 'jar-demo' * environment, line 950: Called die * The specific snippet of code: * ant ${antflags} "${@}" || die "eant failed" * * If you need support, post the output of 'emerge --info =dev-java/lucene-2.3.2-r1', * the complete build log and the output of 'emerge -pqv =dev-java/lucene-2.3.2-r1'. !!! When you file a bug report, please include the following information: GENTOO_VM=icedtea6 CLASSPATH="" JAVA_HOME="/usr/lib64/icedtea6" JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac" and of course, the output of emerge --info * The complete build log is located at '/var/tmp/portage/dev-java/lucene-2.3.2-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-java/lucene-2.3.2-r1/temp/environment'. * S: '/var/tmp/portage/dev-java/lucene-2.3.2-r1/work/lucene-2.3.2' (In reply to comment #7) > Testing, umasking javacc-5.0 and emerge -1av =lucene-2.3.2-r1 fails with the > same error above: > robbat2: you should make dependencies >=virtual/jdk-1.5 to fix this problem. (In reply to comment #8) > (In reply to comment #7) > > Testing, umasking javacc-5.0 and emerge -1av =lucene-2.3.2-r1 fails with the > > same error above: > > > > robbat2: you should make dependencies >=virtual/jdk-1.5 to fix this problem. To be able to proceed with unmasking javacc-5.0 I added: =dev-java/lucene-2.2.0-r1 =dev-java/lucene-2.3.2-r2 =dev-java/lucene-2.4.1-r1 which now depend on >=jdk-1.5. Also removed =dev-java/lucene-2.1.0:2 which is the same as =dev-java/lucene-2.1.0-r2:2.1 apart from the slot. This removes the unused slot 2. To stabilize javacc-5.0, the following need to be stabilized: =dev-java/lucene-2.1.0-r2 =dev-java/lucene-2.2.0-r1 =dev-java/lucene-2.3.2-r2 =dev-java/lucene-2.4.1-r1 (In reply to comment #9) > [...] > To stabilize javacc-5.0, the following need to be stabilized: > =dev-java/lucene-2.1.0-r2 > =dev-java/lucene-2.2.0-r1 > =dev-java/lucene-2.3.2-r2 > =dev-java/lucene-2.4.1-r1 javacc-5.0 is no longer masked. Will track stabilization of the above in the javacc-5.0 stabilization bug ( bug 315557 ) as there are other packages with the same issue but no open bugs. Closing here, thanks for the report. |