| Summary: | sci-libs/tensorflow-1.15.0 with >=net-libs/grpc-1.26 - tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:490:5: error: 'gpr_allocation_functions' was not declared in this scope | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Soren Harward <stharward> |
| Component: | Current packages | Assignee: | Jason Zaman <perfinion> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | kfm |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
tensorflow-1.15.0-r1.ebuild
systemlibs-jsoncpp-update-header-symlinks-for-jsoncpp.patch |
||
The situation is worsened by the following packages no longer being in the tree, following an "old" and "redundant" version removal spree by mgorny and gyakovlev. dev-python/grpcio-1.24.3 dev-python/grpcio-tools-1.24.3 net-libs/grpc-1.24.3 I resurrected these packages and was able to build tensorflow-1.15.0, but not before applying some unrelated fixes. I shall file a bug for that shortly. Created attachment 636204 [details]
tensorflow-1.15.0-r1.ebuild
An ebuild I put together that has — as of 5 May 2020 — correct dependencies. Needs patch so that TF-1.15 builds against jsoncpp-1.9.2; will attach that patch presently.
Created attachment 636206 [details, diff]
systemlibs-jsoncpp-update-header-symlinks-for-jsoncpp.patch
patch so that TF-1.15 builds against jsoncpp-1.9.2
Thanks, Soren. I'll be testing this patch shortly. In the meantime, I couldn't get 1.15 to build without applying the patch attached to bug 720102. My current ebuild is here: https://bitbucket.org/kerframil/portage-overlay/src/master/sci-libs/tensorflow/ The only other interesting thing that it has right now is libressl support, which I've been patching in since 1.12. I am closing this bug because Jason has dropped the tensorflow-1.15 series. |
Tensorflow build fails with compile error when building against grpc-1.26.0-r1: tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc: In constructor 'tensorflow::{anonymous}::GrpcServerRegistrar::GrpcServerRegistrar()': tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:490:5: error: 'gpr_allocation_functions' was not declared in this scope gpr_allocation_functions alloc_fns; ^~~~~~~~~~~~~~~~~~~~~~~~ tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:490:5: note: suggested alternative: 'gpr_set_log_function' gpr_allocation_functions alloc_fns; ^~~~~~~~~~~~~~~~~~~~~~~~ gpr_set_log_function tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:491:13: error: 'alloc_fns' was not declared in this scope memset(&alloc_fns, 0, sizeof(alloc_fns)); ^~~~~~~~~ tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:491:13: note: suggested alternative: 'alloca' memset(&alloc_fns, 0, sizeof(alloc_fns)); ^~~~~~~~~ alloca tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:495:5: error: 'gpr_set_allocation_functions' was not declared in this scope gpr_set_allocation_functions(alloc_fns); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ tensorflow/core/distributed_runtime/rpc/grpc_server_lib.cc:495:5: note: suggested alternative: 'gpr_set_log_function' gpr_set_allocation_functions(alloc_fns); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gpr_set_log_function Downgrading to net-libs/grpc-1.24.3 solves the problem. Reproducible: Always