Re: [grpc-io] Compiling grpc on MSYS breaks at PROTOC

148 views
Skip to first unread message

Nicolas Noble

unread,
Aug 7, 2017, 1:55:58 PM8/7/17
to Thomas Schober, grpc.io
Try running with the environment variable V=1. There's something odd with this error line since it seems to mean you're not using the plugin that got just compiled. It may be a matter of file extension that's missing.

On Thu, Aug 3, 2017 at 6:03 AM, Thomas Schober <thomas....@gmail.com> wrote:
Hi,

i manged to get the things compiling on MSYS2 by removing -Werror from the Makefile. There have been a lot off dllimport warnings which would be treated as errors insted. After i removed -Werro compiler flag it compiles until it steps on to build the protobuf things. There it hangs here :

[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_cpp_plugin
[HOSTCXX] Compiling src/compiler/csharp_plugin.cc
[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_csharp_plugin
[HOSTCXX] Compiling src/compiler/node_plugin.cc
[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_node_plugin
[HOSTCXX] Compiling src/compiler/objective_c_plugin.cc
[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_objective_c_plugin
[HOSTCXX] Compiling src/compiler/php_plugin.cc
[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_php_plugin
[HOSTCXX] Compiling src/compiler/python_plugin.cc
[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_python_plugin
[HOSTCXX] Compiling src/compiler/ruby_plugin.cc
[HOSTLD]  Linking /home/tsb/grpc/bins/opt/grpc_ruby_plugin
[PROTOC]  Generating protobuf CC file from src/proto/grpc/health/v1/health.proto
[GRPC]    Generating gRPC's protobuf service CC file from src/proto/grpc/health/v1/health.proto
[PROTOC]  Generating protobuf CC file from src/proto/grpc/testing/echo_messages.proto
[GRPC]    Generating gRPC's protobuf service CC file from src/proto/grpc/testing/echo_messages.proto
[PROTOC]  Generating protobuf CC file from src/proto/grpc/testing/echo.proto
[GRPC]    Generating gRPC's protobuf service CC file from src/proto/grpc/testing/echo.proto
--grpc_out: src/proto/grpc/testing/echo.proto: Invalid parameter: generate_mock_code=true;C
make: *** [Makefile:2381: /home/tsb/grpc/gens/src/proto/grpc/testing/echo.grpc.pb.cc] Error 1

Could anyone have a look at this ? i can't evene find generate_mock_code=true anywhere in the complete directory of grpc.

My gcc info is as follows:

$ gcc -v
Using built-in specs.
COLLECT_GCC=C:\msys64\mingw64\bin\gcc.exe
COLLECT_LTO_WRAPPER=C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/6.2.0/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../gcc-6.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynamic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry --disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev2, Built by MSYS2 project' --with-bugurl=https://sourceforge.net/projects/msys2 --with-gnu-as --with-gnu-ld
Thread model: posix
gcc version 6.2.0 (Rev2, Built by MSYS2 project)

Any Idea what i am dowing wrong here ?

--
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 grpc-io+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/5e290759-454e-4dd6-992d-75d5e8df44aa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Schober

unread,
Aug 8, 2017, 4:35:11 AM8/8/17
to grpc.io, thomas....@gmail.com
I managed to get it compiling. I removed the option "generate_mock_code" in the line with the error and it compiled / generated without any problem. I also could compile and run the helloWorld example. Maybe there is a bug in the script here ?
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.

Nicolas Noble

unread,
Aug 9, 2017, 11:16:26 PM8/9/17
to Thomas Schober, grpc.io
Maybe; without much details on the error, it's going to be difficult to diagnose and fix the issue. 

To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscribe@googlegroups.com.

To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
Reply all
Reply to author
Forward
0 new messages