[Bug 264828] science/py-tensorflow fails to build against Google protobuf: error: too many arguments to function call

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 22 Jun 2022 16:16:01 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264828

            Bug ID: 264828
           Summary: science/py-tensorflow fails to build against Google
                    protobuf: error: too many arguments to function call
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: cbraeunl@marco.de
                CC: amzo1337@gmail.com
             Flags: maintainer-feedback?(amzo1337@gmail.com)
                CC: amzo1337@gmail.com

The following happens at two machines of mine:

ERROR:
/usr/ports/science/py-tensorflow/work-py38/tensorflow-1.15.5/tensorflow/core/BUILD:2453:1:
C++ compilation of rule '//tensorflow/core:lib_internal_impl' failed (Exit 1)
tensorflow/core/platform/env.cc:518:49: error: too many arguments to function
call, expected single argument 'total_bytes_limit', have 2 arguments
  coded_stream.SetTotalBytesLimit(1024LL << 20, 512LL << 20);
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               ^~~~~~~~~~~
bazel-out/freebsd-opt/bin/external/com_google_protobuf/google/protobuf/io/coded_stream.h:407:3:
note: 'SetTotalBytesLimit' declared here
  void SetTotalBytesLimit(int total_bytes_limit);
  ^
1 error generated.
INFO: Elapsed time: 251.544s, Critical Path: 56.36s
INFO: 150 processes: 150 local.
FAILED: Build did NOT complete successfully
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/science/py-tensorflow
*** Error code 1

Stop.
make: stopped in /usr/ports/science/py-tensorflow
ERROR:
/usr/ports/science/py-tensorflow/work-py38/tensorflow-1.15.5/tensorflow/core/BUILD:2453:1:
C++ compilation of rule '//tensorflow/core:lib_internal_impl' failed (Exit 1)
tensorflow/core/platform/env.cc:518:49: error: too many arguments to function
call, expected single argument 'total_bytes_limit', have 2 arguments
  coded_stream.SetTotalBytesLimit(1024LL << 20, 512LL << 20);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~               ^~~~~~~~~~~
   
bazel-out/freebsd-opt/bin/external/com_google_protobuf/google/protobuf/io/coded_stream.h:407:3:
note: 'SetTotalBytesLimit' declared here
      void SetTotalBytesLimit(int total_bytes_limit);
        ^
        1 error generated.
        INFO: Elapsed time: 251.544s, Critical Path: 56.36s
        INFO: 150 processes: 150 local.
        FAILED: Build did NOT complete successfully
        *** Error code 1

        Stop.
        make[1]: stopped in /usr/ports/science/py-tensorflow
        *** Error code 1

        Stop.
        make: stopped in /usr/ports/science/py-tensorflow

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