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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 28 Feb 2022 09:38:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259620

--- Comment #4 from Po-Chuan Hsieh <sunpoet@FreeBSD.org> ---
(In reply to Steve Wills from comment #2)

As I mentioned in the private mail, changing "error_message()" to "message()"
would fix this.
And you'll need attachment 232155 for upcoming protobuf 3.19.4.

from build log:
...
SUBCOMMAND: # //tensorflow/core/platform:human_readable_json_impl [action
'Compiling tensorflow/core/platform/default/human_readable_json.cc']
(cd
/wrkdirs/usr/ports/science/py-tensorflow/work-py38/bazel_out/90c479ef01ddf313fc3134a499f1a18f/execroot/org_tensorflow
&& \
  exec env - \
    PATH=/bin:/usr/bin/:/usr/local/bin \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/local/bin/python3.8 \
    PYTHON_LIB_PATH=/usr/local/lib/python3.8/site-packages \
    TF2_BEHAVIOR=1 \
    TF_CONFIGURE_IOS=0 \
   
TF_SYSTEM_LIBS=absl_py,astor_archive,boringssl,com_github_googleapis_googleapis,com_github_googlecloudplatform_google_cloud_cpp,com_google_protobuf,curl,cython,double_conversion,enum34_archive,flatbuffers,functools32_archive,gast_archive,gif,grpc,hwloc,icu,jsoncpp_git,keras_applications_archive,libjpeg_turbo,lmdb,nasm,nsync,opt_einsum_archive,org_sqlite,pasta,pcre,png,pybind11,six_archive,snappy,swig,termcolor_archive,wrapt,zlib_archive
\
  /usr/bin/clang -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector
-Wall -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections
-fdata-sections '-std=c++0x' -MD -MF
bazel-out/freebsd-opt/bin/tensorflow/core/platform/_objs/human_readable_json_impl/human_readable_json.pic.d
'-frandom-seed=bazel-out/freebsd-opt/bin/tensorflow/core/platform/_objs/human_readable_json_impl/human_readable_json.pic.o'
-fPIC -D__CLANG_SUPPORT_DYN_ANNOTATION__ -iquote . -iquote
bazel-out/freebsd-opt/bin -iquote external/com_google_protobuf -iquote
bazel-out/freebsd-opt/bin/external/com_google_protobuf -iquote
external/com_google_absl -iquote
bazel-out/freebsd-opt/bin/external/com_google_absl -iquote external/nsync
-iquote bazel-out/freebsd-opt/bin/external/nsync -iquote
external/double_conversion -iquote
bazel-out/freebsd-opt/bin/external/double_conversion -I/usr/local/include
'-std=c++14' -no-canonical-prefixes -Wno-builtin-macro-redefined
'-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c
tensorflow/core/platform/default/human_readable_json.cc -o
bazel-out/freebsd-opt/bin/tensorflow/core/platform/_objs/human_readable_json_impl/human_readable_json.pic.o)
SUBCOMMAND: # //tensorflow/core/platform:tracing_impl [action 'Compiling
tensorflow/core/platform/default/tracing.cc']
...

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