View previous topic :: View next topic |
Author |
Message |
trademark91 n00b
Joined: 03 Dec 2020 Posts: 26 Location: USA
|
Posted: Fri Jan 21, 2022 3:04 am Post subject: [SOLVED] OpenJDK failing to update |
|
|
Attempting to update Java 11 gives the following error:
Code: | configure: Potential Boot JDK found at /etc/java-config-2/current-system-vm is incorrect JDK version (openjdk version "1.8.0_312"); ignoring
configure: (Your Boot JDK version must be one of: 10 11)
configure: error: The path given by --with-boot-jdk does not contain a valid Boot JDK
|
emerge --info:
https://pastebin.com/rssm5HSe
emerge -pqv:
Code: |
[ebuild NS ] dev-java/openjdk-11.0.14_p9 [8.312_p07, 17.0.2_p8] USE="alsa cups jbootstrap (selinux) (system-bootstrap) (-big-endian) -debug -doc -examples -headless-awt -javafx -source -systemtap (-gentoo-vm%)"
|
build log:
https://pastebin.com/eu9TMPKt
I've also tried building the package using the gentoo-bootstrap repo as detailed here: https://gitlab.com/stikonas/gentoo-bootstrap/ (referenced in [solved] dev-java/openjdk-11.0.9 has a circ dep to itself)
That presented the following issue:
ERROR: dev-java/openjdk-9.0.4_p12::gentoo-bootstrap failed (compile phase):
emerge --info:
https://pastebin.com/WwRGGABP
emerge -pqv:
Code: | [ebuild NS ] dev-java/openjdk-9.0.4_p12 [8.312_p07, 17.0.2_p8] USE="alsa cups gentoo-vm* (selinux) -debug -doc -examples -headless-awt (-pch) -source (-big-endian%) (-javafx%) (-jbootstrap%*) (-system-bootstrap%*) (-systemtap%)" |
the build log crashed pastebin as it was 15mb. Here are the last few dozen lines, including the error.:
https://pastebin.com/dKAdbg2G
Last edited by trademark91 on Wed Jan 26, 2022 7:58 pm; edited 1 time in total |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31414 Location: here
|
Posted: Fri Jan 21, 2022 6:21 am Post subject: |
|
|
It's first time you install java version 11? What return command qlist -Iv 'dev-java/openjdk-*'? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
trademark91 n00b
Joined: 03 Dec 2020 Posts: 26 Location: USA
|
Posted: Fri Jan 21, 2022 6:44 am Post subject: |
|
|
I get the following:
Code: |
trademark91 ~ `qlist -Iv 'dev-java/openjdk-*'
dev-java/openjdk-17.0.2_p8
dev-java/openjdk-bin-11.0.13_p8
dev-java/openjdk-bin-8.312_p07
|
|
|
Back to top |
|
|
Banana Moderator
Joined: 21 May 2004 Posts: 1840 Location: Germany
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 31414 Location: here
|
Posted: Fri Jan 21, 2022 12:32 pm Post subject: |
|
|
I think the -bin version is installed because first time you should compile openjdk with a same version of javac.
Maybe an ebuild bug like that openjdk:17? _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
trademark91 n00b
Joined: 03 Dec 2020 Posts: 26 Location: USA
|
Posted: Sat Jan 22, 2022 10:46 pm Post subject: |
|
|
I tried updating by first installing openjdk-bin:11 and then trying to build openjdk:11, but that failed with the same error. After installing openjdk-bin:11, however, it is still not listed in eselect java-vm list, even if I build with gentoo-vm:
Code: | root ~ eselect java-vm list
Available Java Virtual Machines:
[1] openjdk-8 system-vm
[2] openjdk-bin-8
|
|
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2088
|
Posted: Sat Jan 22, 2022 11:10 pm Post subject: |
|
|
See bug 831839 which should be resolved now. |
|
Back to top |
|
|
trademark91 n00b
Joined: 03 Dec 2020 Posts: 26 Location: USA
|
Posted: Tue Jan 25, 2022 12:28 am Post subject: |
|
|
I'm actually still having issues. For some reason, openjdk-bin:11 will NOT compile with gentoo-vm, no matter what, and I can't get openjdk:11 to accept it still. I also still am unable to build openjdk 9 using the gentoo-bootstrap overlay, it still fails with the same error as I pasted in my first reply. |
|
Back to top |
|
|
sam_ Developer
Joined: 14 Aug 2020 Posts: 2088
|
Posted: Tue Jan 25, 2022 3:52 am Post subject: |
|
|
trademark91 wrote: | I'm actually still having issues. For some reason, openjdk-bin:11 will NOT compile with gentoo-vm, no matter what, and I can't get openjdk:11 to accept it still. I also still am unable to build openjdk 9 using the gentoo-bootstrap overlay, it still fails with the same error as I pasted in my first reply. |
What version of openjdk-bin? Have you run emerge --sync?
In that case, you should file a new bug. |
|
Back to top |
|
|
trademark91 n00b
Joined: 03 Dec 2020 Posts: 26 Location: USA
|
Posted: Tue Jan 25, 2022 9:38 pm Post subject: |
|
|
Hello,
It is Code: | dev-java/openjdk-bin-11.0.13_p8:11::gentoo |
Yes, I have run emerge --sync. Doesn't seem to let me compile it with that flag. Even if I explicitly set it it won't take:
Code: | root ~ USE="alsa cups selinux gentoo-vm" emerge -av1 openjdk-bin:11
* IMPORTANT: 10 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild R ] dev-java/openjdk-bin-11.0.13_p8:11::gentoo USE="alsa cups (selinux) (-gentoo-vm) -headless-awt -source" 0 KiB |
|
|
Back to top |
|
|
trademark91 n00b
Joined: 03 Dec 2020 Posts: 26 Location: USA
|
Posted: Wed Jan 26, 2022 7:58 pm Post subject: |
|
|
Got it to build by setting openjdk-bin to ** in package.accept_keywords and recompiling. |
|
Back to top |
|
|
|