I was able to move past this error by adding $(TARGET_MAKE_ENV) before 
$(MAKE) in the buildroot grpc.mk file.  The next error I encountered 
regarding ‘EPOLL_CLOEXEC’ undeclared has been documented and resolved here 
<https://github.com/grpc/grpc/issues/1342>.

Presently, I am stumped on the following:

The target you are trying to run requires protobuf 3.0.0+
Your system doesn't have it, and neither does the third_party directory.

Up to this point I have been using protobuf 2.5.0.  It took a little extra 
work, but I am able to cross-compile protobuf 3.0.0 for my system.  However 
I am still getting the same error message when building grpc.  This 
suggests to me that my buildroot makefile is not picking up the target 
protoc and protobuf path.  

Would anyone be able to provide some advice?

On Thursday, March 22, 2018 at 12:54:47 PM UTC-4, [email protected] 
wrote:
>
> 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/4da80586-1d7e-4623-bf83-960c02608de7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to