Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 919684 - dev-java/antlr-3.2-r1: failed with jdk:21 (compile phase): - ./.../CodeGenerator.java:119: error: reference to StringTemplate is ambiguous
Summary: dev-java/antlr-3.2-r1: failed with jdk:21 (compile phase): - ./.../CodeGenera...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 918647
  Show dependency tree
 
Reported: 2023-12-10 09:44 UTC by Toralf Förster
Modified: 2024-04-15 07:45 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.46 KB, text/plain)
2023-12-10 09:44 UTC, Toralf Förster
Details
dev-java:antlr-3.2-r1:20231210-065140.log (dev-java:antlr-3.2-r1:20231210-065140.log,47.73 KB, text/plain)
2023-12-10 09:44 UTC, Toralf Förster
Details
emerge-history.txt.xz (emerge-history.txt.xz,59.79 KB, application/x-xz)
2023-12-10 09:44 UTC, Toralf Förster
Details
environment (environment,92.41 KB, text/plain)
2023-12-10 09:44 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.14 KB, application/x-xz)
2023-12-10 09:44 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,36.73 KB, application/x-xz)
2023-12-10 09:44 UTC, Toralf Förster
Details
qlist-info.txt.xz (qlist-info.txt.xz,66.91 KB, application/x-xz)
2023-12-10 09:44 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-12-10 09:44:50 UTC
As a result, alternative(s) 2 were disabled for that input
javac -source 1.8 -target 1.8 -d target/classes -encoding UTF-8 -classpath /var/tmp/portage/dev-java/antlr-3.2-r1/work/antlr-3.2/antlr-runtime.jar:/usr/share/antlr/lib/antlr.jar:/usr/share/stringtemplate/lib/stringtemplate.jar @sources.lst
warning: [options] bootstrap class path not set in conjunction with -source 8
warning: [options] source value 8 is obsolete and will be removed in a future release
warning: [options] target value 8 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
./java/org/antlr/codegen/CodeGenerator.java:119: error: reference to StringTemplate is ambiguous
	protected StringTemplate recognizerST;
	          ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20231206-190509

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-13 *
clang/llvm (if any):
clang version 17.0.6
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.6
Python 3.11.7
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.74.1
  [2]   rust-1.74.1 *
GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.1_p12"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 17.0.8.1_p1 [openjdk-bin-17]
*)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
3)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-17 
  [3]   openjdk-bin-21  system-vm

php cli (if any):
go version go1.21.4 linux/amd64

  HEAD of ::gentoo
commit 33ab19e432dc0e48016804e15d7e2ceff51e393f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Dec 10 01:47:02 2023 +0000

    2023-12-10 01:47:00 UTC

emerge -qpvO dev-java/antlr
[ebuild  NS   ] dev-java/antlr-4.9.3 [2.7.7-r9] USE="(-doc%) (-examples%) (-source%*)"
Comment 1 Toralf Förster gentoo-dev 2023-12-10 09:44:51 UTC
Created attachment 878623 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-12-10 09:44:52 UTC
Created attachment 878624 [details]
dev-java:antlr-3.2-r1:20231210-065140.log
Comment 3 Toralf Förster gentoo-dev 2023-12-10 09:44:53 UTC
Created attachment 878625 [details]
emerge-history.txt.xz
Comment 4 Toralf Förster gentoo-dev 2023-12-10 09:44:55 UTC
Created attachment 878626 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-12-10 09:44:55 UTC
Created attachment 878627 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-12-10 09:44:56 UTC
Created attachment 878628 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-12-10 09:44:58 UTC
Created attachment 878629 [details]
qlist-info.txt.xz
Comment 8 Volkmar W. Pogatzki 2023-12-11 08:18:46 UTC
(In reply to Toralf Förster from comment #2)
> Created attachment 878624 [details]
> dev-java:antlr-3.2-r1:20231210-065140.log

GENTOO_VM=openjdk-bin-21  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-21.0.1_p12"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
Comment 9 Volkmar W. Pogatzki 2024-01-07 10:23:19 UTC
Upstream: https://github.com/antlr/antlr3/issues/223
Comment 10 Larry the Git Cow gentoo-dev 2024-04-15 07:45:23 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=005afcc264209c3a0f0bbfe8ad473986eabaced4

commit 005afcc264209c3a0f0bbfe8ad473986eabaced4
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-03-29 08:21:05 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-04-15 07:45:12 +0000

    dev-java/antlr: java21.patch
    
    Closes: https://bugs.gentoo.org/919684
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 .../{antlr-3.2-r1.ebuild => antlr-3.2-r2.ebuild}    |  3 ++-
 dev-java/antlr/files/antlr-3.2-java21.patch         | 21 +++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletion(-)