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 
<https://gfiber.googlesource.com/buildroot/+/master/package/grpc>. 

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!

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" 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 https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/943c2c00-f323-4de3-86ab-33b2158be7c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to