[Bug 259620] science/py-tensorflow: fails to build with new grpc

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 27 May 2022 04:44:53 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259620

Jared Jennings <jjennings@fastmail.fm> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jjennings@fastmail.fm

--- Comment #5 from Jared Jennings <jjennings@fastmail.fm> ---
Created attachment 234250
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234250&action=edit
Change error_message to message in several places.

I've just found this ticket and followed along with building TensorFlow 2.1.
I've attached a patch that changes some error_message invocations into message,
as recommended. It still won't build for me - there are six errors like this:

ERROR:
/root/py-tensorflow/work-py38/tensorflow-2.1.0/tensorflow/python/BUILD:354:1:
C++ compilation of rule '//tensorflow/python:bfloat16_lib' failed (Exit 1)
tensorflow/python/lib/core/bfloat16.cc:633:8: error: no matching function for
call to object of type '(lambda at
tensorflow/python/lib/core/bfloat16.cc:607:25)'
  if (!register_ufunc("equal", CompareUFunc<Bfloat16EqFunctor>,
       ^~~~~~~~~~~~~~
tensorflow/python/lib/core/bfloat16.cc:607:25: note: candidate function not
viable: no overload of 'CompareUFunc' matching 'PyUFuncGenericFunction' (aka
'void (*)(char **, const long *, const long *, void *)') for 2nd argument
  auto register_ufunc = [&](const char* name, PyUFuncGenericFunction fn,
                        ^

-- 
You are receiving this mail because:
You are the assignee for the bug.