ue4-grpc-demo
ue4-grpc-demo copied to clipboard
Another grpc (1.30.2) build failure: error: use of undeclared identifier 'TCP_USER_TIMEOUT'
Running ./start-server.sh produces the following gRPC build failure:
[ 71%] Building CXX object CMakeFiles/grpc.dir/src/core/lib/json/json_writer.cc.o [ 71%] Building CXX object CMakeFiles/grpc.dir/src/core/lib/security/context/security_context.cc.o [ 71%] Building CXX object CMakeFiles/grpc.dir/src/core/lib/security/credentials/alts/alts_credentials.cc.o /home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc:325:42: error: use of undeclared identifier 'TCP_USER_TIMEOUT' if (0 != setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &timeout, ^ /home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc:330:42: error: use of undeclared identifier 'TCP_USER_TIMEOUT' if (0 != getsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, &newval, &len)) {
2 errors generated
CMakeFiles/grpc.dir/build.make:6470: recipe for target 'CMakeFiles/grpc.dir/src/core/lib/iomgr/socket_utils_common_posix.cc.o' failed
make[3]: *** [CMakeFiles/grpc.dir/src/core/lib/iomgr/socket_utils_common_posix.cc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
^[[0m[ 73%] Building CXX object CMakeFiles/grpc.dir/src/core/lib/security/credentials/alts/check_gcp_environment.cc.o
Building CXX object CMakeFiles/grpc.dir/src/core/lib/security/credentials/alts/check_gcp_environment_linux.cc.o
make[2]: *** [CMakeFiles/grpc.dir/all] Error 2
CMakeFiles/Makefile2:861: recipe for target 'CMakeFiles/grpc.dir/all' failed
CMakeFiles/Makefile2:1180: recipe for target 'CMakeFiles/grpc++.dir/rule' failed
make[1]: *** [CMakeFiles/grpc++.dir/rule] Error 2
Makefile:489: recipe for target 'grpc++' failed
make: *** [grpc++] Error 2
Warning: the libcxx package has been deprecated and will be removed in a future version of conan-ue4cli.
grpc-ue4/1.30.2@adamrehn/4.23:
cares-ue4/1.16.1@adamrehn/4.23: WARN: This conanfile has no package step
protobuf-ue4/3.12.3@adamrehn/4.23: WARN: This conanfile has no package step
grpc-ue4/1.30.2@adamrehn/4.23: ERROR: Package 'bbaadf9c14f1821b000882e0282e20b2519fdbed' build failed
grpc-ue4/1.30.2@adamrehn/4.23: WARN: Build folder /home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed
ERROR: grpc-ue4/1.30.2@adamrehn/4.23: Error in build() method, line 99
cmake.build(target="grpc++")
ConanException: Error 2 while executing cmake --build '/home/ue4/.conan/data/grpc-ue4/1.30.2/adamrehn/4.23/build/bbaadf9c14f1821b000882e0282e20b2519fdbed' '--target' 'grpc++' '--' '-j40'
Traceback (most recent call last):
File "/usr/local/bin/ue4", line 8, in
This is observed with commit f06a22337e419ff93d29dfb37b537b50e3c91d3e, building on Ubuntu 20.04
Same issue as well, any steps on how to resolve would be great!