Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 854717 - dev-lang/scala-2.12.10 - Unrecognized VM option 'CMSClassUnloadingEnabled' - Error: Could not create the Java Virtual Machine.
Summary: dev-lang/scala-2.12.10 - Unrecognized VM option 'CMSClassUnloadingEnabled' - ...
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: https://github.com/scala/community-bu...
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 929942 854255
  Show dependency tree
 
Reported: 2022-06-28 06:29 UTC by Toralf Förster
Modified: 2024-05-09 09:40 UTC (History)
2 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.87 KB, text/plain)
2022-06-28 06:29 UTC, Toralf Förster
Details
dev-lang:scala-2.12.10:20220628-061626.log (dev-lang:scala-2.12.10:20220628-061626.log,5.76 KB, text/plain)
2022-06-28 06:29 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,207.30 KB, text/plain)
2022-06-28 06:29 UTC, Toralf Förster
Details
environment (environment,95.14 KB, text/plain)
2022-06-28 06:29 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,43.42 KB, application/x-bzip)
2022-06-28 06:29 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,3.92 KB, application/x-bzip)
2022-06-28 06:29 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,22.11 KB, application/x-bzip)
2022-06-28 06:29 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-06-28 06:29:46 UTC
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-lang/scala-2.12.10/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::gentoo failed (compile phase):

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.6
Python 3.9.13
Available Ruby profiles:
  [1]   ruby31 *
Available Rust versions:
  [1]   rust-bin-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)	OpenJDK 11.0.15_p10 [openjdk-11]
2)	OpenJDK 17.0.3_p7 [openjdk-17]
3)	OpenJDK 8.332_p09 [openjdk-8]
4)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
6)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-11 
  [3]   openjdk-17 
  [4]   openjdk-bin-8 
  [5]   openjdk-bin-11 
  [6]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php8.1 *

  HEAD of ::gentoo
commit 8c0257f0f2f78ee2eb1ce410783bffd57a4009e2
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 28 06:03:29 2022 +0000

    2022-06-28 06:03:29 UTC

emerge -qpvO dev-lang/scala
[ebuild  N    ] dev-lang/scala-2.12.10  USE="-binary -doc -emacs -source"
Comment 1 Toralf Förster gentoo-dev 2022-06-28 06:29:47 UTC
Created attachment 788189 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-28 06:29:48 UTC
Created attachment 788192 [details]
dev-lang:scala-2.12.10:20220628-061626.log
Comment 3 Toralf Förster gentoo-dev 2022-06-28 06:29:50 UTC
Created attachment 788195 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2022-06-28 06:29:51 UTC
Created attachment 788198 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2022-06-28 06:29:53 UTC
Created attachment 788201 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-28 06:29:53 UTC
Created attachment 788204 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2022-06-28 06:29:54 UTC
Created attachment 788207 [details]
temp.tar.bz2
Comment 8 Volkmar W. Pogatzki 2024-02-20 10:27:36 UTC
https://github.com/scala/community-build/commit/71bcb4886d:
»[...] because dbuild's "scala" build system
passes a fixed, non-customizable set of JVM flags, and one of them
(-XX:+CMSClassUnloadingEnabled) isn't supported anymore on JDK 15 [...]«
Comment 9 Larry the Git Cow gentoo-dev 2024-04-30 08:15:37 UTC
The bug has been closed via the following commit(s):

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

commit 907e8457f31775648ccee6eb0f03277ea9b00799
Author:     Volkmar W. Pogatzki <gentoo@pogatzki.net>
AuthorDate: 2024-04-26 13:03:19 +0000
Commit:     Florian Schmaus <flow@gentoo.org>
CommitDate: 2024-04-30 08:15:20 +0000

    dev-lang/scala: fix compilation errors
    
    - Replaces ${SBT_PVR} with ${SBTV} for #904316
    - Restricts to <=virtual/jdk-17:* for #854717
    - Switches from ant-core to >=dev-java/ant-1.10.14-r3
    - Updates EAPI 7 -> 8
    
    Closes: https://bugs.gentoo.org/854717
    Closes: https://bugs.gentoo.org/904316
    Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
    Closes: https://github.com/gentoo/gentoo/pull/36474
    Signed-off-by: Florian Schmaus <flow@gentoo.org>

 .../{scala-2.12.10.ebuild => scala-2.12.10-r1.ebuild}   | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)