-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Build error arm 32bit linux ubuntu #850
Comments
#382 there is a suggestion to try building with --verbose_failures so we can more easily help, any help on where to give this... |
Try Shot in the dark about the cause: do you have the unzip package installed? |
I do have unzip installed, but i did see some error due to some extra byte issue. But i didnt get that error during this run. Got below output.
Building output/bazel |
I think, im making some more progress, i commented scripts/bootstrap/buildenv.sh line 49 The temp file has commond.log which is attached. I am veryfing the file, last commands that failed etc., if any one has some ideas to try, let me know. |
Unfortunately nothing comes to mind without further information... |
Thanks for responding. I tried to create a shell script for the last failing comnand and it eorked I will check jar file creation again.
|
Where is your JDK? Try running with |
I had multiple java (7,8 and Open/oracle), i think i fixed it to Oracle 8 and set the path,java_home,jre_home to appropriate path. i set ERROR: /media/ubuntu/SD/bazel/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/BUILD:91:1: error executing shell command: 'set -e;rm -rf bazel-out/host/bin/src/java_tools/buildjar/java/com/google/devtools/build/buildjar/libskylark-deps.jar.build_output bazel-out/host/bin/src/java_tools/buildjar/java/com/google/devtools...' failed: bash failed: error executing command |
Can you comment https://github.com/bazelbuild/bazel/blob/master/scripts/bootstrap/buildenv.sh#L49 And then rerun the compile.sh script (you probably don't need -s) and then try out the following command (with the correct path as the temp dir will be different):
|
I ran it, it was looking for few jar file, should i set some classpath that I will try to trouble shoot on my own, but if anyone knows it...it wood be Will add the error message shortly...as im out.
|
Interesting, when i ran compile.sh again and the got error and ran the command, it did not fail. Its because i ran previously in a terminal where all settings were gone. |
This is what i got. 'ubuntu@tegra-ubuntu:/media/ubuntu/SD/bazel$ (cd /tmp/bazel.B7fGNqbU/out/bazel && \
|
What does |
i got this... ubuntu@tegra-ubuntu:/tmp/bazel.B7fGNqbU/out/bazel/external/local_jdk/bin$ java -version |
What do |
` ubuntu@tegra-ubuntu:/tmp/bazel.B7fGNqbU/out/bazel/external/local_jdk/bin$ file jar |
http://askubuntu.com/questions/336795/ubuntu-fix-dependency-problems I am just trying to upgrade to see if any dependancy issue gets fixed...(i know...this is called shooting in the dark :-)) |
Tries with |
Disregard my last comment you already have them. |
And just executing |
it looks find...this is what i got ` Example 1: to archive two class files into an archive called classes.jar: ubuntu@tegra-ubuntu:/media/ubuntu/SD/bazel$ ` |
Let's retry:
Give back the full log and also |
Looks like same issue... |
What about the output of the ls? On Wed, Feb 17, 2016, 5:43 PM rajserc notifications@github.com wrote:
|
sorry i started to compile protobuf and wanted to build from scratch bazel. So i moved the dir. I wanted to rule out protobuf jar having issue due to the multiple java availability issue. Do you think it makes sense ? Next my plan is to completely reflash linux and restart. Because per https://devtalk.nvidia.com/default/topic/894997/?comment=4731774 , it is proven to work and i think i my installation got messy
|
I am at lost on what is happening there. Jar seems to simply fail with "not On Wed, Feb 17, 2016 at 6:17 PM rajserc notifications@github.com wrote:
|
could this be because of space issue by any chance ? |
Spaces where? On Wed, Feb 17, 2016, 6:59 PM rajserc notifications@github.com wrote:
|
in /tmp But shouldnt it error out properly...anyways highlevel what is the problem (in ur guess), is it java/jar issue ? or something else.. |
oh disk spaces? I don't think so. Wait I am looking back at the logs and I still don't see the error when you run the command from outside bazel, can you repro the issue outside bazel? (echo $? to get the error code). Also adding x right after "set -e" might help. |
I recompiled protoc, protoc java and bazel with The output file has compilation error that i got while running the same command that fails during compile.sh in command prompt. To me it looks like its looking for proto library. |
ok, finally, i figured out and was able to successfully compile. Here is what happened. since protobuf for arm 32 was not there, i compiled it (which is latest verison). for proto java, i copied third_party/protobuf/protobuf-java-3.0.0-beta-2.jar, but originaly file third_party/protobuf/protobuf-java-3.0.0-beta-1.jar was being used. I rename third_party/protobuf/protobuf-java-3.0.0-beta-2.jar to third_party/protobuf/protobuf-java-3.0.0-beta-1.jar [not sure how to make the compile script to take the latest/or user defined jar file, just renaming third_party/protobuf/protobuf-java-3.0.0-beta-1.jar didnt fix ] And that solved the issue. Thanks a lot everyone for wonderful support, without your help i wouldnt have figured this out. I would consider this issue resolved. |
rajserc, which version of protobuf and bazel are you using? if it is fromt the repo can you give me the commit ids? I need bazel for tensorflow on Ubuntu running on ARM 32bit, but so far I was not able to compile it. |
I will reclassify this one as FR to actually integrate that support to Bazel |
Hi Cuinnyc, I am also trying to build tensorflow...the following link is useful..are you aware of this ? http://cudamusing.blogspot.com/2015/11/building-tensorflow-for-jetson-tk1.html This is what i got ubuntu@tegra-ubuntu:~$ protoc --version ` Let me know if i can be of any help Regards, |
Do you have the tmp folder intact, other wise you can comment https://github.com/bazelbuild/bazel/blob/master/scripts/bootstrap/buildenv.sh#L49 Also, try to run the command separately and check what permission you have On Sat, Feb 20, 2016 at 11:32 AM, CU@NYC notifications@github.com wrote:
|
Yep. I did it. There were some permission/space problems on the /tmp folder. Thank you |
so, i guess you are good. On Mon, Feb 22, 2016 at 4:42 PM, CU@NYC notifications@github.com wrote:
|
It looks like those in this thread had their issues resolved, but I figured I'd share some info since it's been a few months. A few headaches came up while trying to compile the latest versions of Bazel for TensorFlow on Raspberry Pi, but we've overcome them! When trying to compile Bazel, after creating the Protobuf binaries, we were running into |
It looks like the process of bootstrapping bazel for Raspberry Pi has gotten much simpler in more recent, as we no longer have to provide our own protobuf JARs or gRPC plugins. I've successfully got 0.4.3 running on my Raspberry Pi 3, and am planning on having updated instructions by the end of the weekend in my repo. Thanks for making my life a little easier, Bazel team! Here's hoping cross-compilation discussed in #1053 works out. |
:) @samjabrahams, you should thanks @aehlig |
@aehlig consider yourself thanked! |
For reference, everything is this guide leading up to TensorFlow installation also serves as a Bazel-on-Raspberry-Pi guide for Bazel version 0.4.3. |
Closing since this is quite obsolete now. Please open a new issue in case you think this still need investigation. |
I am trying to compile bazel on linux arm 32 bit.
I get this error, any idea what could be wrong, any suggestion is much appreciated.
ERROR: /media/ubuntu/SD/bazel/src/java_tools/buildjar/BUILD:191:1: error executing shell command: 'set -e;rm -rf bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_output bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java bazel-out/host/bin/src/java_tools...' failed: bash failed: error executing command
(cd /tmp/bazel.BPDndMaJ/out/bazel &&
exec env -
PATH=/usr/local/cuda-6.5/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/home/ubuntu/bin:/home/ubuntu/JDK/jdk1.8.0_33/bin:/home/ubuntu/bin:/home/ubuntu/JDK/jdk1.8.0_33/jre/bin:/media/ubuntu/SD/maven/apache-maven-3.3.9/bin
/bin/bash -c 'set -e;rm -rf bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_output bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java_list
mkdir bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_output bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java
external/local_jdk/bin/jar tf bazel-out/host/bin/src/main/protobuf/libdeps_proto_srcjar.srcjar | grep '''.java$''' | sed '''s|^|bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java/|''' >> bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java_list
unzip bazel-out/host/bin/src/main/protobuf/libdeps_proto_srcjar.srcjar -d bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java >/dev/null
external/local_jdk/bin/jar tf bazel-out/host/bin/src/main/protobuf/libworker_protocol_proto_srcjar.srcjar | grep '''.java$''' | sed '''s|^|bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java/|''' >> bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java_list
unzip bazel-out/host/bin/src/main/protobuf/libworker_protocol_proto_srcjar.srcjar -d bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java >/dev/null
external/local_jdk/bin/jar tf bazel-out/host/bin/src/main/protobuf/libjava_compilation_proto_srcjar.srcjar | grep '''.java$''' | sed '''s|^|bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java/|''' >> bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java_list
unzip bazel-out/host/bin/src/main/protobuf/libjava_compilation_proto_srcjar.srcjar -d bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java >/dev/null
external/local_jdk/bin/javac -source 1.8 -target 1.8 -classpath '''third_party/checker_framework_dataflow/dataflow-1.8.10.jar:third_party/error_prone/error_prone_annotation-2.0.9-20160129.jar:third_party/error_prone/error_prone_annotations-2.0.9-20160129.jar:third_party/error_prone/error_prone_core-2.0.9-20160129.jar:third_party/guava/guava-19.0.jar:third_party/jcip_annotations/jcip-annotations-1.0-1.jar:third_party/jformatstring/jFormatString-3.0.0.jar:third_party/jsr305/jsr-305.jar:third_party/pcollections/pcollections-2.1.2.jar:third_party/protobuf/protobuf-java-3.0.0-beta-1.jar:external/bazel_tools/third_party/java/jdk/langtools/javac.jar''' -d bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_output @bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar-2.params @bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_java_list
external/local_jdk/bin/jar cf bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar -C bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_output .
touch bazel-out/host/bin/src/java_tools/buildjar/libskylark-deps.jar.build_output
'): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1: bash failed: error executing command
(cd /tmp/bazel.BPDndMaJ/out/bazel && \
The text was updated successfully, but these errors were encountered: