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

dependencies issue #79

Closed
dzwduan opened this issue Aug 11, 2023 · 4 comments
Closed

dependencies issue #79

dzwduan opened this issue Aug 11, 2023 · 4 comments

Comments

@dzwduan
Copy link

dzwduan commented Aug 11, 2023

sbt.librarymanagement.ResolveException: Error downloading edu.berkeley.cs:hardfloat_2.13:1.5-SNAPSHOT.

but in https://repo1.maven.org/maven2/edu/berkeley/cs/ only found hardfloat_2.12

@FJShen
Copy link
Contributor

FJShen commented Sep 8, 2023

I'm having similar issues with Scala version compatibility. I'm trying to build a Chisel project from the latest official chisel-template and import the HardFloat library, but the Scala versions of them aren't compatible. Apologies if my question look naive, but I'm quite a novice to the Scala - Maven world and I'm also not a frequent user of Chisel (my background leans more on the C/C++ side of languages) , so I'm still trying to learn the best practices in Chiselworld.

The current chisel-template requires Scala 2.13.8 (build.sbt), but so far I've only found 2.12-compatible releases of HardFloat on the Maven Repository hardfloat_2.12.

What options do I have if I want to import HardFloat into a Scala 2.13 project?

@sequencer
Copy link
Contributor

you can try to use mill to publish local or build hardfloat from source.

@FJShen
Copy link
Contributor

FJShen commented Sep 8, 2023

For now I'm copying the "hardfloat" directory into my Chisel project directory like this: <project_root>/external/hardfloat and adding this line to my build.sbt file: Compile / unmanagedSourceDirectories += baseDirectory.value / "external/hardfloat/src". The SBT compilation went fine.

@dzwduan dzwduan closed this as completed Sep 10, 2023
@dzwduan
Copy link
Author

dzwduan commented Sep 10, 2023

I also sovled by this

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

3 participants