t-crest / patmos

Patmos is a time-predictable VLIW processor, and the processor for the T-CREST project
http://patmos.compute.dtu.dk
BSD 2-Clause "Simplified" License
135 stars 72 forks source link

Specified emulator SBT version #54

Closed Emoun closed 5 years ago

Emoun commented 5 years ago

This solves an issue where the emulator fails to compile if the installed sbt version is > 1.3. Without specifying an sbt version in hardware/project/build.properties, sbt will use the installed version to build the emulator with (the currently newest version is 1.3.3). For some reason, the emulator cannot compile properly if sbt > 1.3 is used, throwing the following error:

[init] error: error while loading Object, Missing dependency 'object scala in compiler mirror', required by /home/user/.sbt/0.13/java9-rt-ext-ubuntu_11_0_4/rt.jar(java/lang/Object.class)

Both Michael and I have this error, and it was solved by manually setting the sbt version to 1.2.6 in hardware/project/build.properties. This PR ensures the same version of sbt is always used (v1.2.6), ensuring the emulator can compile on up-to-date installations. This also ensures new users of Patmos can successfully execute the ./misc/build.sh script.