Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile error on Chisel 6+ due to firrtl.options.RegisteredLibrary #3579

Closed
tymcauley opened this issue Mar 1, 2024 · 1 comment
Closed

Comments

@tymcauley
Copy link
Contributor

Type of issue: bug report

Impact: no functional change

Development Phase: proposal

Other information

When trying to build Rocket Chip with Chisel 6+, the following error is thrown:

java.util.ServiceConfigurationError: firrtl.options.RegisteredLibrary: Provider firrtl.passes.memlib.MemLibOptions not found
        at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
        at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.nextProviderClass(ServiceLoader.java:1219)
        at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1228)
        at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
        at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
        at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
        at firrtl.options.Shell.registeredLibraries$lzycompute(Shell.scala:52)
        at firrtl.options.Shell.registeredLibraries(Shell.scala:49)
        at firrtl.options.Shell.parserSetup(Shell.scala:64)
        at firrtl.options.BareShell.parse(Shell.scala:33)
        at firrtl.options.Stage.execute(Stage.scala:56)
...

This is due to src/main/resources/META-INF/services/firrtl.options.RegisteredLibrary containing the line firrtl.passes.memlib.MemLibOptions. This was added in #3260. If we remove that file, then this error goes away, but this will presumably cause issues with SFC compatibility. How do we want to handle this?

If the current behavior is a bug, please provide the steps to reproduce the problem:

Try to build Rocket Chip with Chisel 6+.

What is the current behavior?

Rocket Chip fails to compile on Chisel 6+.

What is the expected behavior?

Rocket Chip works on Chisel 6+.

Please tell us about your environment:

  • version: current dev branch
  • OS: macOS 14.3.1

What is the use case for changing the behavior?

Migrating to Chisel 6+.

tymcauley added a commit to tymcauley/rocket-chip that referenced this issue Mar 1, 2024
@tymcauley
Copy link
Contributor Author

Resolved by #3580.

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

No branches or pull requests

1 participant