Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831559 - dev-java/eclipse-ecj-4.21 - ./.../TypeElementImpl.java:36: error: cannot find symbol RecordComponentElement
Summary: dev-java/eclipse-ecj-4.21 - ./.../TypeElementImpl.java:36: error: cannot find...
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
: 832171 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-01-20 09:17 UTC by Toralf Förster
Modified: 2022-06-02 09:12 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,17.12 KB, text/plain)
2022-01-20 09:17 UTC, Toralf Förster
Details
dev-java:eclipse-ecj-4.21:20220120-042155.log (dev-java:eclipse-ecj-4.21:20220120-042155.log,21.90 KB, text/plain)
2022-01-20 09:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,219.06 KB, text/plain)
2022-01-20 09:17 UTC, Toralf Förster
Details
environment (environment,89.49 KB, text/plain)
2022-01-20 09:17 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,31.71 KB, application/x-bzip)
2022-01-20 09:17 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,4.21 KB, application/x-bzip)
2022-01-20 09:17 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 2022-01-20 09:17:19 UTC
>>> Configuring source in /var/tmp/portage/dev-java/eclipse-ecj-4.21/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/eclipse-ecj-4.21/work ...
 * Compiling ...
./org/eclipse/jdt/internal/compiler/apt/model/TypeElementImpl.java:36: error: cannot find symbol
import javax.lang.model.element.RecordComponentElement;
                               ^

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_no_multilib_hardened-j4-20220118-021045

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
clang version 13.0.0
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/13/bin
/usr/lib/llvm/13
13.0.0
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.58.0 *
GENTOO_VM=openjdk-bin-11  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-11.0.13_p8"
JAVACFLAGS="-source 11 -target 11" COMPILER=""
The following VMs are available for generation-2:
*)	AdoptOpenJDK 11.0.13_p8 [openjdk-bin-11]
2)	AdoptOpenJDK 8.312_p07 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 9c36997e331cbfbdbbb57ddbc74e946ea197f270
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Jan 20 03:21:51 2022 +0000

    2022-01-20 03:21:50 UTC

emerge -qpvO dev-java/eclipse-ecj
[ebuild  N    ] dev-java/eclipse-ecj-4.21  USE="ant -doc -source"
Comment 1 Toralf Förster gentoo-dev 2022-01-20 09:17:20 UTC
Created attachment 762780 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-01-20 09:17:20 UTC
Created attachment 762781 [details]
dev-java:eclipse-ecj-4.21:20220120-042155.log
Comment 3 Toralf Förster gentoo-dev 2022-01-20 09:17:22 UTC
Created attachment 762782 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-01-20 09:17:23 UTC
Created attachment 762783 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-01-20 09:17:25 UTC
Created attachment 762784 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-01-20 09:17:26 UTC
Created attachment 762785 [details]
logs.tar.bz2
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-29 07:20:05 UTC
*** Bug 832171 has been marked as a duplicate of this bug. ***
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-01-29 07:20:58 UTC
I think this might work with OpenJDK 17 but _not_ 11.
Comment 9 rnddim 2022-04-27 09:07:06 UTC
I just encountered this same bug with eclipse-ecj-4.22 using openjdk-bin:11 to (fail to) build it.

I wouldn't be surprised if this did succeed with JDK 17, since records were first introduced in version 14 of Java. However, since I can't seem to switch to version 17 through eselect, I can't check for myself if it'll build.
Comment 10 Daniel Koszta 2022-05-15 11:26:57 UTC
Workaround that makes it compile after recompiling openjdk (though I'm not sure if its correct or not):

/etc/portage/profile/package.use.mask:
dev-java/openjdk:17 -gentoo-vm

/etc/portage/package.use:
dev-java/openjdk:17 gentoo-vm

/etc/portage/env/java17.conf:
JAVA_PKG_FORCE_VM="openjdk-17"

/etc/portage/package.env:
dev-java/eclipse-ecj java17.conf
Comment 11 Larry the Git Cow gentoo-dev 2022-05-30 08:36:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b2992fd44c5df1a80931e28cb8c1faa7ed2bb89

commit 7b2992fd44c5df1a80931e28cb8c1faa7ed2bb89
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-05-15 11:33:58 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-30 08:36:04 +0000

    dev-java/eclipse-ecj: virtual/jdk-11:*" -> -17:*
    
    Bug: https://bugs.gentoo.org/831559
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/25501
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 dev-java/eclipse-ecj/eclipse-ecj-4.22-r1.ebuild | 72 +++++++++++++++++++++++++
 1 file changed, 72 insertions(+)

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

commit ebf1a8c251eefb23889ac984b0b033e4957df894
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2022-05-15 11:27:40 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2022-05-30 08:36:04 +0000

    dev-java/ant-eclipse-ecj: virtual/jdk-11:*" -> -17:*
    
    Bug: https://bugs.gentoo.org/831559
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../ant-eclipse-ecj/ant-eclipse-ecj-4.22-r1.ebuild | 53 ++++++++++++++++++++++
 dev-java/ant-eclipse-ecj/files/ecj-4.22-r1         |  7 +++
 2 files changed, 60 insertions(+)
Comment 12 Volkmar W. Pogatzki 2022-06-02 09:12:16 UTC
Affected version has gone. Closing.