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

JNI Tensorflow compilation files #149

Open
rvanderwerf opened this issue Apr 8, 2018 · 0 comments
Open

JNI Tensorflow compilation files #149

rvanderwerf opened this issue Apr 8, 2018 · 0 comments

Comments

@rvanderwerf
Copy link

Describe the Issue

I have built Bazel from source and compiled tensorflow 1.7 however the bazel build for the JNI components in the tensorflow/java directory fails following this guide:

Steps to Reproduce

bazel build --config opt
//tensorflow/java:tensorflow
//tensorflow/java:libtensorflow_jni

Hardware/Software Info

Pi 3B / 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
Please provide the following information about your Raspberry Pi setup:

  • Raspberry Pi model: 3B
  • Operating System used: Pi 3B / 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
  • Version of Python used: 3.4.2
  • SD card memory size: 32GB, 2GB swap
  • Size of USB/other device used as swap (if building from source): 32 GB, 2GB swap
  • TensorFlow git commit hash (if building from source): 1.7 release

Relevant Console Output/Logs

bazel build --config opt \

//tensorflow/java:tensorflow
//tensorflow/java:libtensorflow_jni
WARNING: Config values are not defined in any .rc file: opt
WARNING: /home/pi/.cache/bazel/_bazel_pi/95e62cc5d2d9e23af70991d1a60b13e8/external/protobuf_archive/WORKSPACE:1: Workspace name in /home/pi/.cache/bazel/_bazel_pi/95e62cc5d2d9e23af70991d1a60b13e8/external/protobuf_archive/WORKSPACE (@com_google_protobuf) does not match the name given in the repository's definition (@protobuf_archive); this will cause a build error in future versions
ERROR: /home/pi/.cache/bazel/_bazel_pi/95e62cc5d2d9e23af70991d1a60b13e8/external/bazel_tools/tools/jdk/BUILD:214:1: in singlejar attribute of java_toolchain rule @bazel_tools//tools/jdk:toolchain_jdk8: '@bazel_tools//tools/jdk:singlejar' must produce a single file. Since this rule was created by the macro 'default_java_toolchain', the error might have been caused by the macro implementation in /home/pi/.cache/bazel/_bazel_pi/95e62cc5d2d9e23af70991d1a60b13e8/external/bazel_tools/tools/jdk/BUILD:214:1
ERROR: Analysis of target '//tensorflow/java:tensorflow' failed; build aborted: Analysis of target '@bazel_tools//tools/jdk:toolchain_jdk8' failed; build aborted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant