You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@airavata.apache.org by GitBox <gi...@apache.org> on 2022/10/06 09:32:37 UTC

[GitHub] [airavata-mft] abhinav7sinha opened a new issue, #53: Build error on mac M1

abhinav7sinha opened a new issue, #53:
URL: https://github.com/apache/airavata-mft/issues/53

   I get the following error when I try to build the project using the script: `./scripts/build.sh`
   
   ```
   [ERROR] Failed to execute goal org.xolstice.maven.plugins:protobuf-maven-plugin:0.5.1:compile (default) on project mft-common-proto: Missing:
   [ERROR] ----------
   [ERROR] 1) com.google.protobuf:protoc:exe:osx-aarch_64:3.0.2
   [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=3.0.2 -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=3.0.2 -Dclassifier=osx-aarch_64 -Dpackaging=exe -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
   [ERROR] 
   [ERROR]   Path to dependency: 
   [ERROR]   	1) org.apache.airavata:mft-common-proto:jar:0.01-SNAPSHOT
   [ERROR]   	2) com.google.protobuf:protoc:exe:osx-aarch_64:3.0.2
   [ERROR] 
   [ERROR] ----------
   [ERROR] 1 required artifact is missing.
   [ERROR] 
   [ERROR] for artifact: 
   [ERROR]   org.apache.airavata:mft-common-proto:jar:0.01-SNAPSHOT
   [ERROR] 
   [ERROR] from the specified remote repositories:
   [ERROR]   apache.snapshots (https://repository.apache.org/snapshots, releases=false, snapshots=true),
   [ERROR]   central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
   ```
   This is because `com.google.protobuf:protoc:3.0.2` doesn't have support for Apple Silicon. [Here's](https://github.com/protocolbuffers/protobuf/issues/8062) the referenced github issue in the protobuf repo.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-mft] abhinav7sinha commented on issue #53: Build error on mac M1

Posted by GitBox <gi...@apache.org>.
abhinav7sinha commented on issue #53:
URL: https://github.com/apache/airavata-mft/issues/53#issuecomment-1269693135

   The newer protobuf binaries have mac m1 support.
   1. so one possible solution is to bump protobuf from `com.google.protobuf:protoc:3.0.2` to the latest `com.google.protobuf:protoc:3.21.7`. 
   2. A possible workaround is to use `osx-x86_64` the `os.detected.classifier` for mac m1. 
   
   I'm currently using the 2nd approach (use `osx-x86_64` as the `os.detected.classifier`) and it works. But a better approach would be to use the newer protobuf version. I'll test it and let you know if it works well.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-mft] DImuthuUpe commented on issue #53: Build error on mac M1

Posted by "DImuthuUpe (via GitHub)" <gi...@apache.org>.
DImuthuUpe commented on issue #53:
URL: https://github.com/apache/airavata-mft/issues/53#issuecomment-1403828978

   @abhinav7sinha what is the status of this issue?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airavata-mft] DImuthuUpe closed issue #53: Build error on mac M1

Posted by "DImuthuUpe (via GitHub)" <gi...@apache.org>.
DImuthuUpe closed issue #53: Build error on mac M1
URL: https://github.com/apache/airavata-mft/issues/53


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@airavata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org