rocket-chip icon indicating copy to clipboard operation
rocket-chip copied to clipboard

[mill] compile fails

Open pxs7 opened this issue 3 years ago • 1 comments

command: mill -i rocketchip error: 35/137] rocketchip.macros.compile [info] compiling 1 Scala source to rocket-chip\out\rocketchip\macros\compile.dest\classes ... [info] done compiling [66/137] foreign-modules.hardfloat.hardfloat.compile [info] compiling 20 Scala sources to rocket-chip\out\foreign-modules\hardfloat\hardfloat\compile.dest\classes ... [error] ## Exception when compiling 20 sources to rocket-chip\out\foreign-modules\hardfloat\hardfloat\compile.dest\classes [error] scala.reflect.internal.Types$TypeError: type AffectsChiselPrefix is not a member of package chisel3.experimental [error] [error] 1 targets failed hardfloat.compile scala.reflect.internal.Types$TypeError: type AffectsChiselPrefix is not a member of package chisel3.experimenta

pxs7 avatar Jul 31 '22 10:07 pxs7

It appears hardfloat's mill build is pointing to 3.5-SNAPSHOT (which probably isn't a good idea). We'll have to have those point to stable versions so that mill doesn't cause this sort of eviction issue.

If you changed these lines in hardfloat's build.sc to point to 3.5.3, that should fix the build issue.

https://github.com/ucb-bar/berkeley-hardfloat/blob/master/build.sc#L8-L9

michael-etzkorn avatar Jul 31 '22 20:07 michael-etzkorn

It appears hardfloat's mill build is pointing to 3.5-SNAPSHOT (which probably isn't a good idea). We'll have to have those point to stable versions so that mill doesn't cause this sort of eviction issue.

If you changed these lines in hardfloat's build.sc to point to 3.5.3, that should fix the build issue.

https://github.com/ucb-bar/berkeley-hardfloat/blob/master/build.sc#L8-L9

some config has be set wrong, and now all be ok

pxs7 avatar Sep 09 '22 07:09 pxs7