martin-g edited a comment on pull request #1238:
URL: https://github.com/apache/phoenix/pull/1238#issuecomment-848483219


   > Please use 
https://repo1.maven.org/maven2/org/openlabtesting/protobuf/protoc/2.5.0/ for 
the aarch64 protoc binary,
   
   I've tried it before choosing os72 but it didn't work because:
   
   1) 
${user.home}/.m2/repository/org/openlabtesting/protobuf/protoc/${protobuf-java.version}/protoc-${protobuf-java.version}-${os.detected.classifier}.exe
 has no executable bit 
   ```
   Caused by: java.io.IOException: Cannot run program 
"/home/ubuntu/.m2/repository/org/openlabtesting/protobuf/protoc/2.5.0/protoc-2.5.0-linux-aarch_64.exe":
 error=13, Permission denied
       at java.lang.ProcessBuilder.start (ProcessBuilder.java:1048)
       at java.lang.Runtime.exec (Runtime.java:621)
       at org.codehaus.plexus.util.cli.Commandline.execute 
(Commandline.java:660)
       at 
org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLineAsCallable 
(CommandLineUtils.java:136)
       at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine 
(CommandLineUtils.java:106)
       at org.codehaus.plexus.util.cli.CommandLineUtils.executeCommandLine 
(CommandLineUtils.java:89)
       at org.xolstice.maven.plugin.protobuf.Protoc.execute (Protoc.java:242)
       ...
   ```
   
   2) After "chmod +x ..." it started failing with:
   ```
   [INFO] --- protobuf-maven-plugin:0.6.1:compile (compile-protoc) @ 
phoenix-core ---
   [INFO] Compiling 10 proto file(s) to 
/home/ubuntu/git/apache/phoenix/phoenix-core/target/generated-sources/protobuf/java
   [ERROR] PROTOC FAILED: 
/home/ubuntu/.m2/repository/org/openlabtesting/protobuf/protoc/2.5.0/protoc-2.5.0-linux-aarch_64.exe:
 error while loading shared libraries: libprotoc.so.8: cannot open shared 
object file: No such file or directory
   
   [ERROR] 
/home/ubuntu/git/apache/phoenix/phoenix-core/src/main/protobuf/PGuidePosts.proto
 [0:0]: 
/home/ubuntu/.m2/repository/org/openlabtesting/protobuf/protoc/2.5.0/protoc-2.5.0-linux-aarch_64.exe:
 error while loading shared libraries: libprotoc.so.8: cannot open shared 
object file: No such file or directory
   
   [ERROR] 
/home/ubuntu/git/apache/phoenix/phoenix-core/src/main/protobuf/ServerCacheFactory.proto
 [0:0]: 
/home/ubuntu/.m2/repository/org/openlabtesting/protobuf/protoc/2.5.0/protoc-2.5.0-linux-aarch_64.exe:
 error while loading shared libraries: libprotoc.so.8: cannot open shared 
object file: No such file or directory
   ...
   ```
   i.e. the executable is dynamically linked
   ```
   file  
/home/ubuntu/.m2/repository/org/openlabtesting/protobuf/protoc/2.5.0/protoc-2.5.0-linux-aarch_64.exe
   
/home/ubuntu/.m2/repository/org/openlabtesting/protobuf/protoc/2.5.0/protoc-2.5.0-linux-aarch_64.exe:
 ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically 
linked, interpreter /lib/ld-linux-aarch64.so.1, for GNU/Linux 3.7.0, 
BuildID[sha1]=ad7c0941f0121611ef1963de1bf6d699e2517c5f, with debug_info, not 
stripped
   ```
   and nothing provides `libprotoc.so.8` in the LD_LIBRARY_PATH.
   
   I will contact the OpenLab Testing guys and see whether they can release 
2.5.0.1 with statically linked executable!


-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to