Hi all,
I am looking for some help in cross-compiling gRPC for an ARM7 using Buildroot-2014 and an older codesourcery toolchain with gcc-4.3.3. I intend to use gRPC++ and Google's Cloud Speech API to add voice-to-text support to my board. Because my compiler does not support c++11, I am only interested in using gRPC versions 1.0.0 and lower (
https://github.com/grpc/grpc/issues/10036). I was able to build protobuf-2.5.0 but ran into difficulties building with higher versions. The gRPC buildroot config and makefile came from
here.
During the build phase, I am getting the following error:
>>> grpc release-0_11_0 Building
[MAKE] Generating
cache.mk[C] Compiling src/core/support/alloc.c
[C] Compiling src/core/support/cmdline.c
[C] Compiling src/core/support/cpu_iphone.c
[C] Compiling src/core/support/cpu_posix.c
[C] Compiling src/core/support/cpu_linux.c
[C] Compiling src/core/support/cpu_windows.c
[C] Compiling src/core/support/env_linux.c
cc1: warnings being treated as errors
cc1: error: include location "/usr/local/include" is unsafe for cross-compilation
First, what is the correct method to disable Werror? I've tried adding -Wno-implicit-fallthrough to my CFLAGS and also GRPC_CONF_OPT = --disable-Werror but the issue remains.
Best I can tell, buildroot should isolate the target files from the host. So where is this coming from? I've tried removing references to /usr/local/include from the top level Makefile and templates/Makefile.template with no change. Has anyone run into similar build issues before?
I would like to stick with buildroot as my method of cross-compiling, but if anyone has alternative suggestions I am all ears.
Thanks for the help!