Description
I'm trying to build with the latest Zulu OpenJDK Java 13
java --version
openjdk 13.0.2 2020-01-14
OpenJDK Runtime Environment Zulu13.29+9-CA (build 13.0.2+6-MTS)
OpenJDK 64-Bit Server VM Zulu13.29+9-CA (build 13.0.2+6-MTS, mixed mode, sharing)
git clone --recursive https://github.com/hyperledger/besu
cd besu
./gradlew build
but I'm getting errors, build is failing.
Acceptance Criteria
build failure bug
Steps to Reproduce (Bug)
on Debian Linux, installed the latest OpenJDK from Azul . com. via
sudo dpkg -i zulu*linux_amd64.deb
then tried to follow the normal install instructions for Bezu
Expected behavior: [What you expect to happen]
build success, all tests should succeed
Actual behavior: [What actually happens]
I'm seeing these deprecation warnings:
> Task :enclave:compileJava
Note: /home/locutus/installs/GBAChain_Besu/enclave/src/main/java/org/hyperledger/besu/enclave/VertxRequestTransmitter.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :nat:compileJava
Note: /home/locutus/installs/GBAChain_Besu/nat/src/main/java/org/hyperledger/besu/nat/upnp/OkHttpStreamClient.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
and build fails
Task :besu:test
org.hyperledger.besu.PrivacyReorgTest > reorgToShorterChain FAILED
java.lang.UnsatisfiedLinkError at PrivacyReorgTest.java:140
org.hyperledger.besu.PrivacyReorgTest > reorgToLongerChain FAILED
java.lang.UnsatisfiedLinkError at PrivacyReorgTest.java:140
org.hyperledger.besu.PrivacyReorgTest > reorgToChainAtEqualHeight FAILED
java.lang.UnsatisfiedLinkError at PrivacyReorgTest.java:140
org.hyperledger.besu.PrivacyReorgTest > privacyGroupHeadIsTracked FAILED
java.lang.UnsatisfiedLinkError at PrivacyReorgTest.java:140
426 tests completed, 4 failed
> Task :besu:test FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':besu:test'.
> There were failing tests. See the report at: ./besu/build/reports/tests/test/index.html
investigating the indext.html reveals:
java.lang.UnsatisfiedLinkError: libsodium.so: cannot open shared object file: No such file or directory
attempting to fix this via
sudo apt-get install libsodium-dev
seems to have made no effect
let's try
./gradlew build --rerun-tasks
and it still fails those 4 tests.
the index error report now reveals:
java.lang.LinkageError: Unsupported libsodium version 1.0.8 (9:1)
finally I got it to compile by finding a libsodium-dev_1.0.16-2_amd64.deb for "trusty"
Versions (Add all that apply)
- Software version: besu/v1.4.1-dev-ad5bfecd/linux-x86_64/zulu-java-13
- Java version: openjdk 13.0.2 2020-01-14
- OS Name & Version: linux mint 17 Qiana
Additional Information
so, libsodium version 1.0.16 seems to be a dependency, it should be listed in dependencies