Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 848819 - dev-java/sbt-0.13.18 - failed (compile phase) with GENTOO_VM=openjdk-bin-17 - Unrecognized VM option 'CMSClassUnloadingEnabled'
Summary: dev-java/sbt-0.13.18 - failed (compile phase) with GENTOO_VM=openjdk-bin-17 -...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-05-31 17:13 UTC by Toralf Förster
Modified: 2024-05-07 05:03 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.90 KB, text/plain)
2022-05-31 17:13 UTC, Toralf Förster
Details
dev-java:sbt-0.13.18:20220531-165615.log (dev-java:sbt-0.13.18:20220531-165615.log,2.24 KB, text/plain)
2022-05-31 17:13 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,66.70 KB, application/x-bzip)
2022-05-31 17:13 UTC, Toralf Förster
Details
environment (environment,82.30 KB, text/plain)
2022-05-31 17:13 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,32.57 KB, application/x-bzip)
2022-05-31 17:13 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.99 KB, application/x-bzip)
2022-05-31 17:13 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,19.44 KB, application/x-bzip)
2022-05-31 17:13 UTC, Toralf Förster
Details
build.log from scala-2.12.10-r1 (build.log.xz,1.66 KB, application/x-xz)
2024-05-06 14:20 UTC, Joseph
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-05-31 17:13:45 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-java/sbt-0.13.18/work/sbt-0.13.18 ...
 * === sbt compile ...
Unrecognized VM option 'CMSClassUnloadingEnabled'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
 * ERROR: dev-java/sbt-0.13.18::gentoo failed (compile phase):

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_systemd-j4-20220527-165704

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.4
Python 3.9.13
Available Rust versions:
  [1]   rust-1.61.0 *
GENTOO_VM=openjdk-bin-17  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-17.0.3_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

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

  HEAD of ::gentoo
commit ccf37b0972c59823d4cc3ddac7bdf8cd0d6111cd
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue May 31 15:57:52 2022 +0000

    2022-05-31 15:57:52 UTC

emerge -qpvO dev-java/sbt
[ebuild  N    ] dev-java/sbt-0.13.18  USE="-binary"
Comment 1 Toralf Förster gentoo-dev 2022-05-31 17:13:46 UTC
Created attachment 781709 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-05-31 17:13:47 UTC
Created attachment 781712 [details]
dev-java:sbt-0.13.18:20220531-165615.log
Comment 3 Toralf Förster gentoo-dev 2022-05-31 17:13:48 UTC
Created attachment 781715 [details]
emerge-history.txt.bz2
Comment 4 Toralf Förster gentoo-dev 2022-05-31 17:13:50 UTC
Created attachment 781718 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-05-31 17:13:51 UTC
Created attachment 781721 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-05-31 17:13:52 UTC
Created attachment 781724 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-05-31 17:13:53 UTC
Created attachment 781727 [details]
temp.tar.bz2
Comment 8 Joseph 2024-05-06 14:19:17 UTC
Also, scala 2.12.10

>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-lang/scala-2.12.10-r1/work/scala-2.12.10 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/scala-2.12.10-r1/work/scala-2.12.10 ...
 * === scala compile ...
Unrecognized VM option 'CMSClassUnloadingEnabled'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
 * ERROR: dev-lang/scala-2.12.10-r1::gentoo failed (compile phase):
 *   sbt compile failed
 * 
 * Call stack:
 *     ebuild.sh, line 136:  Called src_compile
 *   environment, line 2399:  Called die
 * The specific snippet of code:
 *           "${S}"/sbt -Dsbt.log.noformat=true compile || die "sbt compile failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-lang/scala-2.12.10-r1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/scala-2.12.10-r1::gentoo'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=openjdk-bin-17  CLASSPATH="" JAVA_HOME="/opt/openjdk-bin-17.0.10_p7"
JAVACFLAGS="-source 1.8 -target 1.8" COMPILER=""
and of course, the output of emerge --info =scala-2.12.10
Comment 9 Joseph 2024-05-06 14:20:14 UTC
Created attachment 892348 [details]
build.log from scala-2.12.10-r1
Comment 10 Volkmar W. Pogatzki 2024-05-06 16:07:53 UTC
(In reply to Joseph from comment #8)
> Also, scala 2.12.10
> [...]

How did you get there without sbt? Or did I misread "also"?
Comment 11 Joseph 2024-05-06 20:53:42 UTC
I don't know. It's possible that upgrading sbt failed and it didn't get re-run? Either way, it's clearly failing due to sbt. As of right now, sbt isn't in the list.

emerge -uDNpv @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 37.74 s (backtrack: 0/20).

[ebuild     UD ] dev-lang/scala-2.12.4:2.12/2.12.4::gentoo [2.12.10:2.12/2.12.10::gentoo] USE="emacs -binary -doc -source" 0 KiB

Total: 1 package (1 downgrade), Size of downloads: 0 KiB
Comment 12 Joseph 2024-05-06 20:56:02 UTC
 emerge -pv sbt

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 3.18 s (backtrack: 0/20).

[ebuild   R    ] dev-java/sbt-0.13.18-r1::gentoo  USE="-binary" 131.410 KiB

Total: 1 package (1 reinstall), Size of downloads: 131.410 KiB
Comment 13 Joseph 2024-05-06 21:02:55 UTC
according to emerge.log, I last updated sbt on June 9 of 2022:

1654780164:  ::: completed emerge (10 of 22) virtual/jdk-1.8.0-r6 to /
1654780164:  >>> emerge (11 of 22) dev-java/sbt-0.13.18-r1 to /
1654780164:  === (11 of 22) Cleaning (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java/sbt/sbt-0.
13.18-r1.ebuild)
1654780165:  === (11 of 22) Compiling/Merging (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java/s
bt/sbt-0.13.18-r1.ebuild)
1654780333:  === (11 of 22) Merging (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java/sbt/sbt-0.1
3.18-r1.ebuild)
1654780335:  >>> AUTOCLEAN: dev-java/sbt:0
1654780335:  === Unmerging... (dev-java/sbt-0.13.18)
1654780337:  >>> unmerge success: dev-java/sbt-0.13.18
1654780339:  === (11 of 22) Post-Build Cleaning (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java
/sbt/sbt-0.13.18-r1.ebuild)
1654780339:  ::: completed emerge (11 of 22) dev-java/sbt-0.13.18-r1 to /


According to the commits, it looks like the day after sbt-0.13.18-r1 was added: https://packages.gentoo.org/packages/dev-java/sbt/changelog

So I'd say that I emerged it long ago, and only now is it failing.
Comment 14 Volkmar W. Pogatzki 2024-05-07 05:03:21 UTC
(In reply to Joseph from comment #13)
> according to emerge.log, I last updated sbt on June 9 of 2022:
> 
> 1654780164:  ::: completed emerge (10 of 22) virtual/jdk-1.8.0-r6 to /
> 1654780164:  >>> emerge (11 of 22) dev-java/sbt-0.13.18-r1 to /
> 1654780164:  === (11 of 22) Cleaning
> (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java/sbt/sbt-0.
> 13.18-r1.ebuild)
> 1654780165:  === (11 of 22) Compiling/Merging
> (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java/s
> bt/sbt-0.13.18-r1.ebuild)
> 1654780333:  === (11 of 22) Merging
> (dev-java/sbt-0.13.18-r1::/usr/portage/dev-java/sbt/sbt-0.1
> 3.18-r1.ebuild)
> 1654780335:  >>> AUTOCLEAN: dev-java/sbt:0

With those lines you confirm that dev-java/sbt-0.13.18-r1 works for you.
The old version 'dev-java/sbt-0.13.18' is long time gone, so this bug #848819 should be closed.

For scala, there was bug #854717, "fixed" with https://github.com/gentoo/gentoo/pull/36474/commits/4b7b77c98d. 
It should also have rbumped the dependency  >=dev-java/sbt-${SBTV}:0 in order to trigger the update for cases where old sbt was already installed.