Skip to content

Fix a lot of Scala compilation warnings - #3775

Merged
jerryz123 merged 10 commits into
chipsalliance:masterfrom
tymcauley:fix-warnings
Dec 24, 2025
Merged

Fix a lot of Scala compilation warnings#3775
jerryz123 merged 10 commits into
chipsalliance:masterfrom
tymcauley:fix-warnings

Conversation

@tymcauley

Copy link
Copy Markdown

This resolves a lot of compilation warnings, and also fixes compilation for Chisel 7.5.0 (due to the import conflict introduced by chipsalliance/chisel#5099).

Related issue: N/A

Type of change: other enhancement

Impact: no functional change

Development Phase: implementation

Release Notes
Resolve Scala compilation warnings

@tymcauley

Copy link
Copy Markdown
Author

Removed this change since it's not available on the version of Scala that runs in CI (2.13.12)

diff --git a/src/main/scala/util/SimpleProduct.scala b/src/main/scala/util/SimpleProduct.scala
index 50e99307c..b3cbbeb00 100644
--- a/src/main/scala/util/SimpleProduct.scala
+++ b/src/main/scala/util/SimpleProduct.scala
@@ -20,7 +20,7 @@ trait SimpleProduct extends Product with Equals {
     case _ => false
   }

-  override def hashCode: Int = scala.util.hashing.MurmurHash3.productHash(this)
+  override def hashCode: Int = scala.util.hashing.MurmurHash3.caseClassHash(this)

This deprecation happened in Scala 2.13.17.

@tymcauley

Copy link
Copy Markdown
Author

@sequencer in case you have time to review this PR.

@tymcauley

Copy link
Copy Markdown
Author

Thanks for reviewing this @jerryz123! I now notice that the master branch is ahead of the dev branch. Should I re-target this to be on the master branch instead?

@tymcauley
tymcauley changed the base branch from dev to master December 24, 2025 18:40
@tymcauley

Copy link
Copy Markdown
Author

@jerryz123 Okay rebased on master, and targeted to merge there now.

@jerryz123
jerryz123 merged commit f665b8b into chipsalliance:master Dec 24, 2025
28 checks passed
@tymcauley
tymcauley deleted the fix-warnings branch December 24, 2025 19:09
savnastou pushed a commit to savnastou/rocket-chip that referenced this pull request Mar 20, 2026
tynan-jdwk added a commit to tynan-jdwk/chipyard that referenced this pull request Jun 4, 2026
Updating to a recent Chisel 7 version pulls in
chipsalliance/chisel#5099, which causes source incompatibilities in
Rocket Chip. That was fixed in chipsalliance/rocket-chip#3775, so I
bumped that submodule to the latest.

That in turn causes an incompatibility with Shuttle. That was fixed in
ucb-bar/shuttle#15, so I bumped that submodule to latest.

Updating to a non-RC version of Chisel 7 also causes linking errors with
json4s, as mentioned in chipsalliance/chisel#4955. So I've updated the
version of json4s-jackson that Rocket Chip uses during the Chisel 7
build.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants