On Mon, Jul 6, 2015 at 12:50 PM, Damien Martin-guillerez < [email protected]> wrote:
> 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. > Hmm, why does bazel need protoc to bootstrap? This seems a different design from the blaze we use internally. > > > On Mon, Jul 6, 2015 at 9:38 PM 'Feng Xiao' via bazel-discuss < > [email protected]> wrote: > >> +Kun who maintains the protoc binary on Maven. >> >> On Wed, Jul 1, 2015 at 11:03 AM, 'Andrew Rossignol' via Protocol Buffers >> <[email protected]> wrote: >> >>> +protobuf >>> >>> What 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. >> >> For bazel, we recently added a BUILD file >> <https://github.com/google/protobuf/blob/master/BUILD#L211> that can be >> used to build protoc with bazel. Could bazel integrate it as part of the >> build process when it needs protoc? >> >> >>> >>> Thanks! >>> >>> Andrew >>> >>> On Wednesday, July 1, 2015 at 10:43:57 AM UTC-7, Damien Martin-guillerez >>> wrote: >>>> >>>> I don't think we really care about it being compiled by maven. We used >>>> the protoc from maven central because they are provided by the protobuf >>>> team and we don't want to be doing that. >>>> >>>> If you can make sure that the ARM protoc is accessible on the web then >>>> it's probably enough but you have to make sure to always provide the latest >>>> version of the protoc binary. Or you could ask the protobuf team to include >>>> ARM as their target. >>>> >>>> On Wed, Jul 1, 2015 at 7:40 PM 'Andrew Rossignol' via bazel-discuss < >>>> [email protected]> wrote: >>>> >>>>> I agree that cross compiling is probably the way to go, but >>>>> interactive development with Bazel is quite fun. The laptop I completed >>>>> this experiment on has a powerful ARM processor. >>>>> >>>>> What would it take to have Maven produce an ARM binary of protoc? I >>>>> know very little about how it works. Would it require an update to the >>>>> pom.xml file? >>>>> >>>>> On Wed, Jul 1, 2015 at 2:05 AM, Han-Wen Nienhuys <[email protected]> >>>>> wrote: >>>>> >>>>>> Also, as a practical note, Raspberry Pi systems are somewhat >>>>>> underpowered. It might be more beneficial to run Bazel on x86, and use >>>>>> --run_under to run tests the ARM machine instead. That said, I don't >>>>>> think we mind changes to support ARM. >>>>>> >>>>>> On Wed, Jul 1, 2015 at 10:50 AM, 'Lukács T. Berki' via bazel-discuss >>>>>> <[email protected]> wrote: >>>>>> > In general, I think this is a good idea. The only thing I am wary >>>>>> of is that >>>>>> > since the core development team doesn't really use and ARM >>>>>> machines, the >>>>>> > code will be liable to rotting until we put some reasonable test >>>>>> > infrastructure in place. In a bit more detail: >>>>>> > >>>>>> > >>>>>> > On Tue, Jun 30, 2015 at 9:08 PM, Andrew Rossignol < >>>>>> [email protected]> >>>>>> > wrote: >>>>>> >> >>>>>> >> 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. >>>>>> > >>>>>> > Since we already have protoc binaries checked in, I think this is >>>>>> fine. >>>>>> >> >>>>>> >> 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. >>>>>> > >>>>>> > No problems with these. I'd be happy to review this change :) >>>>>> > >>>>>> > >>>>>> > -- >>>>>> > You received this message because you are subscribed to the Google >>>>>> Groups >>>>>> > "bazel-discuss" group. >>>>>> > To unsubscribe from this group and stop receiving emails from it, >>>>>> send an >>>>>> > email to [email protected]. >>>>>> > To view this discussion on the web visit >>>>>> > >>>>>> https://groups.google.com/d/msgid/bazel-discuss/CAOu%2B0LWAT9OQSoD%3DUEeOx2m9YbeJn%2B68gzzVtsBPoq_kXC83Cg%40mail.gmail.com >>>>>> . >>>>>> > >>>>>> > For more options, visit https://groups.google.com/d/optout. >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Han-Wen Nienhuys >>>>>> Google Munich >>>>>> [email protected] >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> Andrew Rossignol | Software Engineer | [email protected] | >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "bazel-discuss" group. >>>>> To unsubscribe from this group and stop receiving emails from it, send >>>>> an email to [email protected]. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/bazel-discuss/CADJjZgOUAvnyNqKgRCAVGr2w8z00Y58XRf-Yw0DVsZcd3Uoi5A%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/bazel-discuss/CADJjZgOUAvnyNqKgRCAVGr2w8z00Y58XRf-Yw0DVsZcd3Uoi5A%40mail.gmail.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> For more options, visit https://groups.google.com/d/optout. >>>>> >>>> -- >>> 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 [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/protobuf. >> >> >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "bazel-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/bazel-discuss/CABpao3q1WSfQh0vyk8tJ70XEAeXaaNpfhgfu_F2Jr34OxUtVAg%40mail.gmail.com >> <https://groups.google.com/d/msgid/bazel-discuss/CABpao3q1WSfQh0vyk8tJ70XEAeXaaNpfhgfu_F2Jr34OxUtVAg%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/protobuf. For more options, visit https://groups.google.com/d/optout.
