Hello bazel-discuss,
I have a version of Bazel compiled for Linux running on an ARM processor. I compiled a small C++ and OpenGL project of mine for an ARM version of Ubuntu.
These are (roughly) the changes that I made for this to work:
- Compile protoc for ARM
- The Maven repo only produces Mac and Linux binaries for protoc (x86 and x86_64) at the moment. I don't know much about Maven so I just built it locally using automake.
- Updated the bootstrap scripts to handle an ARM processor (added a MACHINE_IS_ARM variable) and used the ARM protoc.
- Updated java/com/google/devtools/build/lib/util/CPU.java to have an ARM entry.
- Updated third_party/BUILD to have a config_setting for ARM and added the ARM protoc to the selector in the thirdparty:protoc target.
- Updated tools/cpp/CROSSTOOL file to have a "local_linux" default_toolchain for ARM.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CADJjZgOUAvnyNqKgRCAVGr2w8z00Y58XRf-Yw0DVsZcd3Uoi5A%40mail.gmail.com.
+protobufWhat would it take to have Maven Central produce ARM binaries for protoc? Is this possible?
--
You received this message because you are subscribed to the Google Groups "Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+u...@googlegroups.com.
To post to this group, send email to prot...@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CABpao3q1WSfQh0vyk8tJ70XEAeXaaNpfhgfu_F2Jr34OxUtVAg%40mail.gmail.com.
There is a bootstrap problem: we need protoc compiler to bootstrap bazel but we could be baking protoc using bazel. However we probably will have to cross-compile for such a thing.
There is a bootstrap problem: we need protoc compiler to bootstrap bazel but we could be baking protoc using bazel. However we probably will have to cross-compile for such a thing.On Mon, Jul 6, 2015 at 9:38 PM 'Feng Xiao' via bazel-discuss <bazel-...@googlegroups.com> wrote:+Kun who maintains the protoc binary on Maven.On Wed, Jul 1, 2015 at 11:03 AM, 'Andrew Rossignol' via Protocol Buffers <prot...@googlegroups.com> wrote:+protobufWhat would it take to have Maven Central produce ARM binaries for protoc? Is this possible?We don't have ARM machines to produce ARM binaries.
I'm struggling to reproduce this process. I've reported an issue at https://github.com/bazelbuild/bazel/issues/606 with my progress so far.
Can anyone advice?
Many thanks,
I posted a release of Bazel 0.15.0 for arm, tested on LineageOS and Ubuntu 18.04 armv7l, binary available here:
https://github.com/dilbrent/bazel/releases/tag/0.15.0-arm
I've only used it to build TensorFlow for arm, but that's a pretty reasonable test, IMHO.
-Brent