Re: create fabric-javaenv:2.2.0 image for arm architecture #fabric-chaincode


Gari Singh <garis@...>
 

The issue is that a prebuilt binary for protoc-gen-grpc-java is NOT available for the Arm architecture ( https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.23.0/ ). You will need to build it yourself and install it into the local Maven repo on your build machine. There are instructions available at https://github.com/grpc/grpc-java/tree/master/compiler

-----------------------------------------
Gari Singh
Distinguished Engineer, CTO - IBM Blockchain
IBM Middleware
550 King St
Littleton, MA 01460
Cell: 978-846-7499
garis@us.ibm.com
-----------------------------------------

-----fabric@lists.hyperledger.org wrote: -----
To: fabric@lists.hyperledger.org
From: kokolaki@ics.forth.gr
Sent by: fabric@lists.hyperledger.org
Date: 09/18/2020 04:52AM
Subject: [EXTERNAL] [Hyperledger Fabric] create fabric-javaenv:2.2.0 image for arm architecture #fabric-chaincode

Hello, I want to build hyperledger/fabric-javaenv:2.2.0 image for fabric v2.2.0 on arm architecture . I followed the instructions from repository: https://github.com/hyperledger/fabric-chaincode-java and when I run ./gradlew clean build install I have the following error: > Configure project :
2.2.0 Configure project :fabric-chaincode-shim Checking Licences...
All remaining files have Apache 2.0 headers Task :fabric-chaincode-protos:generateProto FAILED FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':fabric-chaincode-protos:generateProto'. Could not resolve all files for configuration ':fabric-chaincode-protos:protobufToolsLocator_grpc'. > Could not find protoc-gen-grpc-java-linux-aarch_64.exe (io.grpc:protoc-gen-grpc-java:1.23.0).
Searched in the following locations:
https://repo.maven.apache.org/maven2/io/grpc/protoc-gen-grpc-java/1.23.0/protoc-gen-grpc-java-1.23.0-linux-aarch_64.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 4s
8 actionable tasks: 5 executed, 3 up-to-date

Join fabric@lists.hyperledger.org to automatically receive all group messages.