Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build grpc-java for mips64el #3012

Closed
xzy256 opened this issue May 17, 2017 · 4 comments
Closed

how to build grpc-java for mips64el #3012

xzy256 opened this issue May 17, 2017 · 4 comments

Comments

@xzy256
Copy link

xzy256 commented May 17, 2017

When i build bazel, it depends grpc-java-plugin. But i build grpd-java git source code get error,

20:34:20.419 [INFO] [com.google.gradle.osdetector.OsDetector] ------------------------------------------------------------------------
20:34:20.419 [INFO] [com.google.gradle.osdetector.OsDetector] Detecting the operating system and CPU architecture
20:34:20.420 [INFO] [com.google.gradle.osdetector.OsDetector] ------------------------------------------------------------------------
20:34:20.420 [INFO] [com.google.gradle.osdetector.OsDetector] os.detected.name=linux
20:34:20.420 [INFO] [com.google.gradle.osdetector.OsDetector] os.detected.arch=unknown
20:34:20.422 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 3.707 secs
20:34:20.429 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:34:20.430 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception.
20:34:20.430 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:34:20.430 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Where:
20:34:20.431 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Build file '/home/grpc-java/all/build.gradle' line: 31
20:34:20.431 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:34:20.431 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * What went wrong:
20:34:20.432 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] A problem occurred evaluating project ':grpc-all'.
20:34:20.432 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > A problem occurred configuring project ':grpc-protobuf-lite'.
20:34:20.432 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter]    > unknown os.arch: mips64el
20:34:20.433 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 
20:34:20.433 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Try:
20:34:20.433 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. 
20:34:20.433 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 
20:34:20.434 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED
20:34:20.434 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 
20:34:20.435 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] Total time: 9.424 secs

my environment:
os: fedora21
arch: mips64el
protoc: v3.3.0

Could you give me some ideas for building it?

@carl-mastrangelo
Copy link
Contributor

You might take a look at a similar problem (and solution) on this issue: #2202

@carl-mastrangelo
Copy link
Contributor

@xzy256 did you get it working?

@xzy256
Copy link
Author

xzy256 commented Jun 2, 2017

No. As if it is so hard for building it . During this period, i built bazel and success. When i build tensorflow , i get next error. Do i need build grpc-java plugin for building tensorflow source?

[xzy@localhost tensorflow]$ bazel build --copt=-march=native -c opt //tensorflow/tools/pip_package:build_pip_package
ERROR: /home/xzy/.cache/bazel/_bazel_xzy/c01fa588a238f7be12b727d5cfbf1a03/external/io_bazel_rules_closure/java/io/bazel/rules/closure/BUILD:62:1: error executing shell command: 
'JAR='external/local_jdk/bin/jar' OUTPUT='bazel-out/host/bin/external/io_bazel_rules_closure/java/io/bazel/rules/closure/libbuild_info_java_proto_srcjar.srcjar' PROTO_COMPILER='bazel-out/host/genfil...' failed: bash failed: 
error executing command /bin/bash -c ... (remaining 1 argument(s) skipped): 
com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
bazel-out/host/bin/external/io_bazel_rules_closure/closure/private/gensrcjar: line 75: bazel-out/host/genfiles/external/io_bazel_rules_closure/third_party/protobuf/protoc: cannot execute binary file: Exec format error
gensrcjar: proto_compiler failed

@xzy256
Copy link
Author

xzy256 commented Jun 6, 2017

I have build grpc-java success. Building patch infers build-grpc-java-mips64.patch. By the way, building and installing os-maven-plugin for mips64 support can fix unknown os.arch: mips64el error.

@xzy256 xzy256 closed this as completed Jun 7, 2017
@lock lock bot locked as resolved and limited conversation to collaborators Sep 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants