The build ordinarily relies on the host g++ to build protoc. I believe you can work around this problem by running "./configure --with-protoc=<path to your prebuilt protoc>" and then the build will use the provided protoc and not attempt to build a new one.
On Fri, Jul 19, 2019 at 1:41 AM sachin chadha <[email protected]> wrote: > Hi, > > I am trying to cross compile protocol buffers for ARM on a docker > container (x86 Linux). I have a pre-compiled version of protoc and the > container has only cross build tools installed with no host g++ / gcc > available. During ./configure i see the following error: > > checking whether we are using the GNU C++ compiler... (cached) yes > checking whether g++ accepts -g... yes > checking dependency style of g++... (cached) gcc3 > checking how to run the C++ preprocessor... /lib/cpp > configure: error: in `protocol_buffer_3.3.0_arm_cross_compile/protobuf': > configure: error: C++ preprocessor "/lib/cpp" fails sanity check > See `config.log' for more details > > Why do protocol buffer needs Host g++ ? Is it for gmock ? And can this be > disabled somehow ? > > Sachin > > -- > 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 view this discussion on the web visit > https://groups.google.com/d/msgid/protobuf/b8ba1df8-64d8-4dc8-9be3-b75872fc2538%40googlegroups.com > <https://groups.google.com/d/msgid/protobuf/b8ba1df8-64d8-4dc8-9be3-b75872fc2538%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/protobuf/CADqAXr5PS4XRnSdLTfLvRwwoi1F%2BFY2vqkYKEbE36UQnAdRBsQ%40mail.gmail.com.
