Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 708498 - 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
Summary: sci-libs/tensorflow-1.15.0 with >=net-libs/grpc-1.26 - tensorflow/core/distri...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason Zaman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-06 21:34 UTC by Soren Harward
Modified: 2020-09-03 11:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
tensorflow-1.15.0-r1.ebuild (tensorflow-1.15.0-r1.ebuild,11.69 KB, text/plain)
2020-05-05 13:39 UTC, Soren Harward
Details
systemlibs-jsoncpp-update-header-symlinks-for-jsoncpp.patch (systemlibs-jsoncpp-update-header-symlinks-for-jsoncpp.patch,491 bytes, patch)
2020-05-05 13:40 UTC, Soren Harward
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Soren Harward 2020-02-06 21:34:55 UTC
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
Comment 1 kfm 2020-04-30 08:03:07 UTC
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.
Comment 2 Soren Harward 2020-05-05 13:39:04 UTC
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.
Comment 3 Soren Harward 2020-05-05 13:40:34 UTC
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
Comment 4 kfm 2020-05-05 15:58:41 UTC
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.
Comment 5 kfm 2020-09-03 11:01:27 UTC
I am closing this bug because Jason has dropped the tensorflow-1.15 series.