Closed febrifahmi closed 5 months ago
Yes, I already install Bazel on arm before on my pi. Bazel on arm installed successfully and can run, but it failed when build tflite-support ~ see this issue here.
It looks like you are building with JDK8, which we no longer support, can you please upgrade the JDK version and try again?
Building Bazel from scratch using JDK11 failed with more or less same error:
src/main/java/com/google/devtools/build/lib/skyframe/serialization/DynamicCodec.java:276: warning: ReflectionFactory is internal proprietary API and may be removed in a future release
ReflectionFactory.getReflectionFactory()
^
src/main/java/com/google/devtools/build/lib/skyframe/serialization/EnumMapCodec.java:59: warning: Unsafe is internal proprietary API and may be removed in a future release
Unsafe unsafe = UnsafeProvider.getInstance();
^
src/main/java/com/google/devtools/build/lib/unsafe/StringUnsafe.java:38: warning: Unsafe is internal proprietary API and may be removed in a future release
private final Unsafe unsafe;
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:31: warning: Unsafe is internal proprietary API and may be removed in a future release
private static final Unsafe UNSAFE = getUnsafe();
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:33: warning: Unsafe is internal proprietary API and may be removed in a future release
public static Unsafe getInstance() {
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:43: warning: Unsafe is internal proprietary API and may be removed in a future release
private static Unsafe getUnsafe() {
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:48: warning: Unsafe is internal proprietary API and may be removed in a future release
new PrivilegedExceptionAction<Unsafe>() {
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:50: warning: Unsafe is internal proprietary API and may be removed in a future release
public Unsafe run() throws Exception {
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:51: warning: Unsafe is internal proprietary API and may be removed in a future release
Class<Unsafe> unsafeClass = Unsafe.class;
^
src/main/java/com/google/devtools/build/lib/unsafe/UnsafeProvider.java:51: warning: Unsafe is internal proprietary API and may be removed in a future release
Class<Unsafe> unsafeClass = Unsafe.class;
^
scripts/bootstrap/buildenv.sh: line 201: 1047 Killed "${@}"
@febrifahmi Can you just download the Linux arm64 binary from https://github.com/bazelbuild/bazel/releases/tag/5.3.1? I don't think bootstrapping Bazel will make a different for the tflite build. We also never tested bootstrapping on the specific platform.
Unfortunately, I don't think that binary could run in my old pi (armv6l Raspberry Pi model B rev 002).
Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 1+ years. It will be closed in the next 90 days unless any other activity occurs. If you think this issue is still relevant and should stay open, please post any comment here and the issue will no longer be marked as stale.
This issue has been automatically closed due to inactivity. If you're still interested in pursuing this, please post @bazelbuild/triage
in a comment here and we'll take a look. Thanks!
Description of the bug:
I try to build Bazel 5.3.0 from source since Bazel on arm always failed to build tflite_support following the steps described in Bazel docs. However, it always killed in the process and it also took a long time to build (more than 5 hrs on my Raspberry Pi).
Here is the log:
here is line 201 in
buildenv.sh
:What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Download unzip Bazel 5.3.0 dist release and run:
Which operating system are you running Bazel on?
I try to bootstrap on Raspbian Buster
What is the output of
bazel info release
?No response
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?No response
Have you found anything relevant by searching the web?
Not really
Any other information, logs, or outputs that you want to share?
No response