Org.scala-sbt#sbt;1.1.1: not found


(Dinesh) #1

I am on Ubuntu 16.04 LTS

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.5 LTS
Release: 16.04
Codename: xenial

I run into this error:

$ make -f Makefile.vc707-u500devkit verilog
make -C /home/dt/n/freedom/rocket-chip/firrtl SBT=“java -jar /home/dt/n/freedom/rocket-chip/sbt-launch.jar ++2.12.4” root_dir=/home/dt/n/freedom/rocket-chip/firrtl build-scala
make[1]: Entering directory '/home/dt/n/freedom/rocket-chip/firrtl’
java -jar /home/dt/n/freedom/rocket-chip/sbt-launch.jar ++2.12.4 "assembly"
Getting org.scala-sbt sbt 1.1.1 (this may take some time)…

:: problems summary ::
:::: WARNINGS
module not found: org.scala-sbt#sbt;1.1.1
==== local: tried
/home/dt/.ivy2/local/org.scala-sbt/sbt/1.1.1/ivys/ivy.xml
– artifact org.scala-sbt#sbt;1.1.1!sbt.jar:
/home/dt/.ivy2/local/org.scala-sbt/sbt/1.1.1/jars/sbt.jar
==== local-preloaded-ivy: tried
file:////home/dt/.sbt/preloaded/org.scala-sbt/sbt/1.1.1/ivys/ivy.xml
==== local-preloaded: tried
file:////home/dt/.sbt/preloaded/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
– artifact org.scala-sbt#sbt;1.1.1!sbt.jar:
file:////home/dt/.sbt/preloaded/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
==== Maven Central: tried
https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
– artifact org.scala-sbt#sbt;1.1.1!sbt.jar:
https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
==== sbt-maven-releases: tried
https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
– artifact org.scala-sbt#sbt;1.1.1!sbt.jar:
https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
==== sbt-maven-snapshots: tried
https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
– artifact org.scala-sbt#sbt;1.1.1!sbt.jar:
https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
==== typesafe-ivy-releases: tried
https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.1.1/ivys/ivy.xml
==== sbt-ivy-snapshots: tried
https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/1.1.1/ivys/ivy.xml
::::::::::::::::::::::::::::::::::::::::::::::
:: UNRESOLVED DEPENDENCIES ::
::::::::::::::::::::::::::::::::::::::::::::::
:: org.scala-sbt#sbt;1.1.1: not found
::::::::::::::::::::::::::::::::::::::::::::::
:::: ERRORS
Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
Server access Error: Received fatal alert: protocol_version url=https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
Server access Error: Remote host closed connection during handshake url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
Server access Error: Remote host closed connection during handshake url=https://repo.scala-sbt.org/scalasbt/maven-releases/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
Server access Error: Remote host closed connection during handshake url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.pom
Server access Error: Remote host closed connection during handshake url=https://repo.scala-sbt.org/scalasbt/maven-snapshots/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
Server access Error: Remote host closed connection during handshake url=https://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/sbt/1.1.1/ivys/ivy.xml
Server access Error: Remote host closed connection during handshake url=https://repo.scala-sbt.org/scalasbt/ivy-snapshots/org.scala-sbt/sbt/1.1.1/ivys/ivy.xml
:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;1.1.1: not found
Error during sbt execution: Error retrieving required libraries
(see /home/risecreek/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 1.1.1
Makefile:25: recipe for target ‘/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar’ failed
make[1]: *** [/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar] Error 1
make[1]: Leaving directory '/home/dt/n/freedom/rocket-chip/firrtl’
common.mk:38: recipe for target ‘/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar’ failed
make: *** [/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar] Error 2


(Dinesh) #2

Installed sbt using instructions on

https://www.scala-sbt.org/1.x/docs/Installing-sbt-on-Linux.html

namely

echo “deb https://dl.bintray.com/sbt/debian /” | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt


(Dinesh) #3

$ sudo apt-get install sbt=1.1.1
$ dpkg -l | grep sbt
ii sbt 1.1.1 all sbt, the interactive build tool

I have installed sbt 1.1.1, but I still get the error.

as before.

$ make -f Makefile.vc707-u500devkit verilog
make -C /home/dt/n/freedom/rocket-chip/firrtl SBT=“java -jar /home/dt/n/freedom/rocket-chip/sbt-launch.jar ++2.12.4” root_dir=/home/dt/n/freedom/rocket-chip/firrtl build-scala
make[1]: Entering directory '/home/dt/n/freedom/rocket-chip/firrtl’
java -jar /home/dt/n/freedom/rocket-chip/sbt-launch.jar ++2.12.4 "assembly"
Getting org.scala-sbt sbt 1.1.1 (this may take some time)…

:: USE VERBOSE OR DEBUG MESSAGE LEVEL FOR MORE DETAILS
unresolved dependency: org.scala-sbt#sbt;1.1.1: not found
Error during sbt execution: Error retrieving required libraries
(see /home/dt/.sbt/boot/update.log for complete log)
Error: Could not retrieve sbt 1.1.1
Makefile:25: recipe for target ‘/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar’ failed
make[1]: *** [/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar] Error 1
make[1]: Leaving directory '/home/dt/n/freedom/rocket-chip/firrtl’
common.mk:38: recipe for target ‘/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar’ failed
make: *** [/home/dt/n/freedom/rocket-chip/firrtl/utils/bin/firrtl.jar] Error 2


(Dinesh) #4

This helps.

# sbt --version
Getting org.scala-sbt sbt 1.1.1 (this may take some time)…
downloading https://repo1.maven.org/maven2/org/scala-sbt/sbt/1.1.1/sbt-1.1.1.jar
[SUCCESSFUL ] org.scala-sbt#sbt;1.1.1!sbt.jar (1420ms)
downloading https://repo1.maven.org/maven2/org/scala-lang/scala-library/2.12.4/scala-library-2.12.4.jar
[SUCCESSFUL ] org.scala-lang#scala-library;2.12.4!scala-library.jar (5186ms)
……
[info] Updated file /root/project/build.properties: set sbt.version to 1.1.1
[info] Loading project definition from /root/project
[info] Updating ProjectRef(uri(“file:/root/project/”), “root-build”)…
[info] downloading https://repo1.maven.org/maven2/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1-tests.jar
[info] [SUCCESSFUL ] org.apache.logging.log4j#log4j-core;2.8.1!log4j-core.jar(test-jar) (4610ms)
[info] Done updating.
[info] Set current project to root (in build file:/root/)
[warn] The - command is deprecated in favor of onFailure and will be removed in a later version


(Dinesh) #5

That fixed it.

$ make -f Makefile.vc707-u500devkit verilog
make -C /home/dt/f/freedom/rocket-chip/firrtl SBT=“java -jar /home/dt/f/freedom/rocket-chip/sbt-launch.jar ++2.12.4” root_dir=/home/dt/f/freedom/rocket-chip/firrtl build-scala
make[1]: Entering directory '/home/dt/f/freedom/rocket-chip/firrtl’
java -jar /home/dt/f/freedom/rocket-chip/sbt-launch.jar ++2.12.4 “assembly”
[info] Loading settings from plugins.sbt …
[info] Loading project definition from /home/dt/f/freedom/rocket-chip/firrtl/project
[info] Updating ProjectRef(uri(“file:/home/dt/f/freedom/rocket-chip/firrtl/project/”), “firrtl-build”)…
Waiting for lock on /home/dt/.ivy2/.sbt.ivy.lock to be available…