installTensorFlowTX1
installTensorFlowTX1 copied to clipboard
Bazel build fails throwing errors
I have been following your excellent tutorial on building Tensorflow on TX1 from sources. When I run the installPrerequisites.sh in both the version of tags (vL4T28.1TF1.3 & vL4T27.1TF0.11), the bazel is not building properly and throwing an error. I am using Jetson TX1 - L4T 24.2, Ubuntu 16.04
Error when tried vL4T28.1TF1.3 : Bazel 0.5.2 I tried multiple times and each time it is showing same error at different files. The error is, java.lang.InternalError: Cannot find requested source bundle for locale en_US at(list of files) Caused by: java.util,MissingResourceException: Can't find bundle for base name com.google.errorprone.errors, locale en_US
Target //src:bazel failed to build
Error when tried vL4T27.1TF0.11: Bazel 0.3.2 When I tried this version, the error is Error: Java compilation in rule 'Filename': Javac worker (id 0) can no longer be used, because its process terminated itself or got killed.
Target //src:bazel failed to build
Could you please help me resolve this? And also can you tell how you are finding what versions of bazel to be used for certain versions of Tensorflow?
Note: I am able to use both the prebuilt whl file from your website.
I have exactly the same problem, I search to resolve it.
@lachinaj : I have spent a day and dint find a fix for this. Did you able to made it successfully?
I just found this: https://github.com/bazelbuild/bazel/issues/4483
Switching back to jdk1.8.0_152 solved the issue.
My jdk (from the script) are: 1.8.0_161 My working jdk: 1.8.0_151
I have run this (do not restart the script to not reinstall the wrong jdk):
apt-get remove oracle-java8-installer
apt-get install openjdk-8-jdk
I have tried even that method(openjdk-8-jdk), Unfortunately it gives now Unrecognized option: -client Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
Target //src:bazel failed to build
your jdk version may be the key.When it occurs , i change it to jdkU121,and it works.
download jdkU121
sudo vim ~/.bashrc
export JAVA_HOME=/usr/lib/jdk/jdk1.8.0_121
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
reboot and chek java -version