You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ozone.apache.org by si...@apache.org on 2025/09/19 17:28:54 UTC

(ozone) branch master updated: HDDS-13691. [Docs] Add additional information regarding issues encountered on Apple Silicon builds (#9049)

This is an automated email from the ASF dual-hosted git repository.

siyao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new abb47056d81 HDDS-13691. [Docs] Add additional information regarding issues encountered on Apple Silicon builds (#9049)
abb47056d81 is described below

commit abb47056d81165a65960570f5ba0c3ea88a1acfd
Author: fmorg-git <fm...@gmail.com>
AuthorDate: Fri Sep 19 10:28:49 2025 -0700

    HDDS-13691. [Docs] Add additional information regarding issues encountered on Apple Silicon builds (#9049)
---
 hadoop-hdds/docs/content/start/FromSource.md | 29 ++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/hadoop-hdds/docs/content/start/FromSource.md b/hadoop-hdds/docs/content/start/FromSource.md
index 9d3947ad1cd..ccdfc2d3e19 100644
--- a/hadoop-hdds/docs/content/start/FromSource.md
+++ b/hadoop-hdds/docs/content/start/FromSource.md
@@ -95,6 +95,35 @@ make
 mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=${PROTOBUF_VERSION} -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=src/protoc
 # workaround for Maven 3.9.x. Not needed for 3.8.x or earlier
 cp $HOME/.m2/repository/com/google/protobuf/protoc/${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-osx-aarch_64 $HOME/.m2/repository/com/google/protobuf/protoc/${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-osx-aarch_64.exe
+
+cd ..
+# Patch protobuf 3.19.6
+PROTOBUF_VERSION="3.19.6"
+curl -LO https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOBUF_VERSION}/protobuf-all-${PROTOBUF_VERSION}.tar.gz
+tar xzf protobuf-all-${PROTOBUF_VERSION}.tar.gz
+cd protobuf-${PROTOBUF_VERSION}
+./configure --disable-shared
+make -j
+mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=${PROTOBUF_VERSION} -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=src/protoc
+# workaround for Maven 3.9.x. Not needed for 3.8.x or earlier
+cp $HOME/.m2/repository/com/google/protobuf/protoc/${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-osx-aarch_64 $HOME/.m2/repository/com/google/protobuf/protoc/${PROTOBUF_VERSION}/protoc-${PROTOBUF_VERSION}-osx-aarch_64.exe
+
+cd ..
+# Compile grpc
+# Pre-req: Manually install Gradle (version 7.0 or higher) and a compatible JVM (JDK 8 or higher) as required by gRPC Java v1.71.0. See https://github.com/grpc/grpc-java/blob/v1.71.0/README.md for details.
+git clone https://github.com/grpc/grpc-java.git
+cd grpc-java
+git checkout v1.71.0
+PARENTDIR=$(cd .. && pwd)
+export PROTOBUF_ROOT="$PARENTDIR/protobuf-${PROTOBUF_VERSION}"
+export PATH="${PROTOBUF_ROOT}/src:$PATH"
+export CPPFLAGS="-I${PROTOBUF_ROOT}/src"
+export LDFLAGS="-L${PROTOBUF_ROOT}/src/.libs"
+./gradlew :grpc-compiler:java_pluginExecutable -PskipAndroid=true
+PLUGIN="protoc-gen-grpc-java-1.71.0-osx-aarch_64.exe"
+cp compiler/build/exe/java_plugin/protoc-gen-grpc-java $PLUGIN
+mvn install:install-file -DgroupId=io.grpc -DartifactId=protoc-gen-grpc-java -Dversion=1.71.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=$PLUGIN
+cd ..
 ```
 
 ## Build Ozone


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ozone.apache.org
For additional commands, e-mail: commits-help@ozone.apache.org