Awesome. I eventually got grpc-java/compiler to build for 'arm64' with the
below changes. This said, it still crashes on ../gradlew test

Diff:
```
diff --git a/compiler/build.gradle b/compiler/build.gradle
index 7e116d4..4183a59 100644
--- a/compiler/build.gradle
+++ b/compiler/build.gradle
@@ -47,6 +47,9 @@ model {
       }
     }
     gcc(Gcc) {
+       target("linux_aarch64"){
+           cppCompiler.executable = "/usr/bin/gcc"
+       }
     }
     clang(Clang) {
     }
@@ -59,11 +62,15 @@ model {
     x86_64 {
       architecture "x86_64"
     }
+    linux_aarch64 {
+      architecture "arm64"
+      operatingSystem "linux"
+    }
   }

   components {
     java_plugin(NativeExecutableSpec) {
-      if (arch in ['x86_32', 'x86_64']) {
+      if (arch in ['x86_32', 'x86_64', 'arm64']) {
         // If arch is not within the defined platforms, we do not specify
the
         // targetPlatform so that Gradle will choose what is appropriate.
         targetPlatform arch
```

result of ..gradlew test

```
FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration
':grpc-compiler:protobufToolsLocator_javalite'.
> Could not find protoc-gen-javalite-linux-aarch_64.exe
(com.google.protobuf:protoc-gen-javalite:3.0.0).
  Searched in the following locations:

https://repo1.maven.org/maven2/com/google/protobuf/protoc-gen-javalite/3.0.0/protoc-gen-javalite-3.0.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.


BUILD FAILED
```

Any idea what that means? the result output to build bazel 0.3.0 also
fails, so think something isn't configured right


On Fri, Sep 30, 2016 at 5:37 AM, <[email protected]> wrote:

> Hello,
>
> I'd actually built only grpc-compiler project from grpc-java which I
> needed for building Bazel 0.3. Entire grpc-java is yet to be built
> completely. I'm still seeing one test failure for netty-tcnative not being
> able to be loaded, although I built it from source locally. So, currently
> working on this issue. I shall get back to you with the working changes as
> soon as possible.
>
> Thanks,
> Nishidha
>
> On Friday, 30 September 2016 01:34:32 UTC+5:30, [email protected] wrote:
>>
>> Nishidha -
>>
>> ran into this post and am looking to get ARM working - specifically
>> aarch64. Can you share what process/changes you took to get things working?
>> Am more than happy to do PR and include ppcle_64 as well if you can give me
>> directional guidance on what to do.
>>
>> Thanks!
>>
>> On Friday, July 15, 2016 at 5:17:40 AM UTC-7, [email protected] wrote:
>>>
>>> Hi Eric,
>>>
>>> Thanks a ton. I've made changes for ppc referring all the docs and links
>>> you shared. And I'm able to build grpc-compiler successfully. Although
>>> further I get error for netty-tcnative-boring-ssl but the executable I need
>>> gets already generated before this error. Still, I tried building
>>> netty-tcnative too but it still had problems even after fixing many. So, I
>>> left it there.
>>>
>>> For PR, let me check with IBM legal team if we've CLA.
>>> I'll get back to you.
>>>
>>> Thanks again,
>>> Nishidha
>>>
>>>
>>> On Thursday, 14 July 2016 17:15:24 UTC+5:30, [email protected] wrote:
>>>>
>>>>
>>>> Hi,
>>>>
>>>> I'm trying to build grpc-java on Power8 in order to build bazel 0.3.0
>>>> (need protoc-gen-grpc-java built on power). However, I'm getting below
>>>> errors while doing so -
>>>> A problem occurred configuring project ':grpc-compiler'.
>>>> > Exception thrown while executing model rule:
>>>> NativeComponentRules#createBinaries
>>>> > Invalid NativePlatform: ppcle_64
>>>>
>>>> Could anyone please guide me on how to build grpc-java on Power? I've
>>>> also gone through a similar post for "arm" but it didn't help. Looks like
>>>> some other places also need to be modified in order to add support for
>>>> Power. Not sure if skipcodegen=true is expected in my case, but I've also
>>>> tried that and it also fails for missing netty-tcnative-boring-ssl jar for
>>>> Power.
>>>>
>>>> Thanks in advance,
>>>> Nishidha
>>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "grpc.io" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/grpc-io/DpsdI6kSxJI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/grpc-io.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/grpc-io/353a482b-83c1-42b5-be15-fd78bd1fae65%40googlegroups.com
> <https://groups.google.com/d/msgid/grpc-io/353a482b-83c1-42b5-be15-fd78bd1fae65%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/CALd%3DJ4SvEKpE5wvkvhWm2c6bXFyaoWYHkpjLzOLKpoBbYHi6wA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to