[MacPorts] #62909: current protobuf3-cpp v3.17.0 causes build failure in current py-pytorch v1.8.1

MacPorts noreply at macports.org
Mon May 17 21:50:14 UTC 2021


#62909: current protobuf3-cpp v3.17.0 causes build failure in current py-pytorch
v1.8.1
---------------------------------------+--------------------
  Reporter:  webbp                     |      Owner:  (none)
      Type:  defect                    |     Status:  new
  Priority:  Normal                    |  Milestone:
 Component:  ports                     |    Version:
Resolution:                            |   Keywords:
      Port:  py-pytorch protobuf3-cpp  |
---------------------------------------+--------------------
Description changed by webbp:

Old description:

> This is a known open issue with pytorch:
> https://github.com/pytorch/pytorch/issues/20206
>
> Temporary workaround (verified): install protobuf v3.11.4
>
> For other users: how to install protobuf v3.11.4:
> wiki:howto/InstallingOlderPort
>

> {{{
> Build environment:
> macOS 10.13.6
> Xcode 10.1
> Build version 10B61
> Apple LLVM version 10.0.0 (clang-1000.10.44.4)
> Target: x86_64-apple-darwin17.7.0
> Thread model: posix
> InstalledDir: /Library/Developer/CommandLineTools/usr/bin
> MacPorts version 2.6.4
> Port: py37-pytorch @1.8.1_2
> }}}
>
> Todo: attempt to fix by varying cmake vars
>
> {{{
> USE_LITE_PROTO CAFFE2_LINK_LOCAL_PROTOBUF BUILD_CUSTOM_PROTOBUF
> USE_SYSTEM_LIBS
> }}}
>
> Current Portfile has
> {{{
> CMAKE_LIBRARY_PATH=${prefix}/lib:${prefix}/lib/libomp \
> LIBRARY_PATH=${prefix}/lib:${prefix}/lib/libomp \
> USE_LITE_PROTO=ON \
> }}}
> which also might be relevant.

New description:

 This is a known open issue with pytorch:
 https://github.com/pytorch/pytorch/issues/20206

 Temporary workaround (verified): install protobuf v3.11.4

 For other users: how to install protobuf v3.11.4:
 wiki:howto/InstallingOlderPort

 Build environment:
 {{{
 macOS 10.13.6
 Xcode 10.1
 Build version 10B61
 Apple LLVM version 10.0.0 (clang-1000.10.44.4)
 Target: x86_64-apple-darwin17.7.0
 Thread model: posix
 InstalledDir: /Library/Developer/CommandLineTools/usr/bin
 MacPorts version 2.6.4
 Port: py37-pytorch @1.8.1_2
 }}}

 Todo: attempt to fix by varying potentially relevant cmake vars

 {{{
 USE_LITE_PROTO CAFFE2_LINK_LOCAL_PROTOBUF BUILD_CUSTOM_PROTOBUF
 USE_SYSTEM_LIBS
 }}}

 Current Portfile has
 {{{
 CMAKE_LIBRARY_PATH=${prefix}/lib:${prefix}/lib/libomp \
 LIBRARY_PATH=${prefix}/lib:${prefix}/lib/libomp \
 USE_LITE_PROTO=ON \
 }}}
 which also might be relevant.

--

-- 
Ticket URL: <https://trac.macports.org/ticket/62909#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list