You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Wei-Chiu Chuang (Jira)" <ji...@apache.org> on 2024/10/09 15:22:00 UTC

[jira] [Commented] (HDDS-11552) Failed to build on mac m1 with new protoc

    [ https://issues.apache.org/jira/browse/HDDS-11552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17887978#comment-17887978 ] 

Wei-Chiu Chuang commented on HDDS-11552:
----------------------------------------

[~smeng] has a workaround https://gist.github.com/smengcl/6a269f44d909ef9245a9ad8c7c6d41e0#file-ozone-m1-md
We need to document it somewhere.

But ultimately, the problem is protobuf 2.5.0 is discontinued, we need to get rid of this dependency. That may be possible now if we update Hadoop dependency to 3.4.0 (which I'm working on now)

> Failed to build on mac m1 with new protoc
> -----------------------------------------
>
>                 Key: HDDS-11552
>                 URL: https://issues.apache.org/jira/browse/HDDS-11552
>             Project: Apache Ozone
>          Issue Type: Bug
>            Reporter: Chung En Lee
>            Priority: Major
>
> Build project on mac m1 but fail. Error message:
>  
> {code:java}
> [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.6.1:compile (compile-protoc-2) on project hdds-interface-client: Unable to resolve artifact: Missing:
> [ERROR] ----------
> [ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0
> [ERROR] 
> [ERROR]   Try downloading the file manually from the project website.
> [ERROR] 
> [ERROR]   Then, install it using the command: 
> [ERROR]       mvn install:install-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file
> [ERROR] 
> [ERROR]   Alternatively, if you host your own repository you can deploy the file there: 
> [ERROR]       mvn deploy:deploy-file -DgroupId=com.google.protobuf -DartifactId=protoc -Dversion=2.5.0 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> [ERROR] 
> [ERROR]   Path to dependency: 
> [ERROR]         1) org.apache.ozone:hdds-interface-client:jar:2.0.0-SNAPSHOT
> [ERROR]         2) com.google.protobuf:protoc:exe:osx-aarch_64:2.5.0
> [ERROR] 
> [ERROR] ----------
> [ERROR] 1 required artifact is missing.
> [ERROR] 
> [ERROR] for artifact: 
> [ERROR]   org.apache.ozone:hdds-interface-client:jar:2.0.0-SNAPSHOT
> [ERROR] 
> [ERROR] from the specified remote repositories:
> [ERROR]   apache.snapshots.https (https://repository.apache.org/content/repositories/snapshots, releases=true, snapshots=true),
> [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
> [ERROR] -> [Help 1]
> [ERROR] 
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR] 
> [ERROR] For more information about the errors and possible solutions, please read the following articles:
> [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <args> -rf :hdds-interface-client{code}
> See [https://github.com/grpc/grpc-java/issues/7690]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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