Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] OpenJDK failing to update
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
trademark91
n00b
n00b


Joined: 03 Dec 2020
Posts: 26
Location: USA

PostPosted: Fri Jan 21, 2022 3:04 am    Post subject: [SOLVED] OpenJDK failing to update Reply with quote

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
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Fri Jan 21, 2022 6:21 am    Post subject: Reply with quote

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
View user's profile Send private message
trademark91
n00b
n00b


Joined: 03 Dec 2020
Posts: 26
Location: USA

PostPosted: Fri Jan 21, 2022 6:44 am    Post subject: Reply with quote

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
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Fri Jan 21, 2022 11:51 am    Post subject: Reply with quote

you do have the -bin package installed. Just update this one
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30917
Location: here

PostPosted: Fri Jan 21, 2022 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
trademark91
n00b
n00b


Joined: 03 Dec 2020
Posts: 26
Location: USA

PostPosted: Sat Jan 22, 2022 10:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Sat Jan 22, 2022 11:10 pm    Post subject: Reply with quote

See bug 831839 which should be resolved now.
Back to top
View user's profile Send private message
trademark91
n00b
n00b


Joined: 03 Dec 2020
Posts: 26
Location: USA

PostPosted: Tue Jan 25, 2022 12:28 am    Post subject: Reply with quote

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
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1678

PostPosted: Tue Jan 25, 2022 3:52 am    Post subject: Reply with quote

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
View user's profile Send private message
trademark91
n00b
n00b


Joined: 03 Dec 2020
Posts: 26
Location: USA

PostPosted: Tue Jan 25, 2022 9:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
trademark91
n00b
n00b


Joined: 03 Dec 2020
Posts: 26
Location: USA

PostPosted: Wed Jan 26, 2022 7:58 pm    Post subject: Reply with quote

Got it to build by setting openjdk-bin to ** in package.accept_keywords and recompiling.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum