Error When Building

Hello, I am trying to use gradle to install Bisq on my Raspberry Pi4B 4GB but I get this error every time I try and build from the github repository. I tried building as normal and got the same error then I tried using the snapd version of gradle and the same error occured.

All help is greatly appreciated!

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':proto:generateProto'.
> Could not resolve all files for configuration ':proto:protobufToolsLocator_protoc'.
   > Could not find protoc-linux-arm_32.exe (com.google.protobuf:protoc:3.10.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.10.0/protoc-3.10.0-linux-arm_32.exe

I guess you should more ask the Bisq project guys for help with this.
But as far as I remember there is no official port of protoc for Linux ARM.

OK I assumed it was a gradle issue, but you are saying that it is a Bisq issue?

If you look at https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.10.0/ from the error message, you see that the requested protoc-3.10.0-linux-arm_32.exe is really not present, so Gradle is just telling you the truth, that this file does not exist.

So yes, I’m saying this is not a problem with Gradle, but at most with the Gradle build of Bisq.

This is the full error, Im just confused why its requesting the arm_32

pi@raspberrypi:~/bisq $ ./gradlew build

> Configure project :
Pricenode: Skipping spot provider tests

> Task :assets:compileJava UP-TO-DATE
> Task :assets:processResources UP-TO-DATE
> Task :assets:classes UP-TO-DATE
> Task :assets:jar UP-TO-DATE
> Task :proto:extractIncludeProto UP-TO-DATE
> Task :proto:extractProto UP-TO-DATE
> Task :proto:generateProto FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':proto:generateProto'.
> Could not resolve all files for configuration ':proto:protobufToolsLocator_protoc'.
   > Could not find protoc-linux-arm_32.exe (com.google.protobuf:protoc:3.10.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.10.0/protoc-3.10.0-linux-arm_32.exe

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 11s
6 actionable tasks: 1 executed, 5 up-to-date

Because you are running it on an ARM 32-bit processor?

Did you ever find a solution to this problem? I’m having the same issue on my M1 mac due to a missing aarch_64 binary:

> Could not find protoc-3.3.0-osx-aarch_64.exe (com.google.protobuf:protoc:3.3.0).
     Searched in the following locations:
         https://repo.maven.apache.org/maven2/com/google/protobuf/protoc/3.3.0/protoc-3.3.0-osx-aarch_64.exe

Nope, I wasn’t able to find a solution. If you find anything let me know!

I did find something; in my other.gradle file I had the config for my protobuf set wrong. Changing it to

protobuf {
   // Configure the protoc executable
   protoc {
      // Download from repositories
      artifact = 'com.google.protobuf:protoc:3.21.5'
   }
}

Solved it. There is an aarch64 for linux here too: Central Repository: com/google/protobuf/protoc/3.21.5

I’m not sure if this will help, good luck!