Opened 3 years ago

Last modified 2 years ago

#62909 closed defect

current protobuf3-cpp v3.17.0 causes build failure in current py-pytorch v1.8.1 — at Version 5

Reported by: webbp (Webb Phillips) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py-pytorch protobuf3-cpp

Description (last modified by webbp (Webb Phillips))

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: Vary cmake vars USE_LITE_PROTO, CAFFE2_LINK_LOCAL_PROTOBUF, BUILD_CUSTOM_PROTOBUF, and USE_SYSTEM_LIBS ON/OFF to see if that fixes the issue.

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.

Change History (5)

comment:1 Changed 3 years ago by webbp (Webb Phillips)

Summary: protobuf3-cpp 3.17 breaks py-pytorchcurrent protobuf3-cpp v3.17.0 breaks current py-pytorch v1.8.1

comment:2 Changed 3 years ago by webbp (Webb Phillips)

Summary: current protobuf3-cpp v3.17.0 breaks current py-pytorch v1.8.1current protobuf3-cpp v3.17.0 causes build failure in current py-pytorch v1.8.1

comment:3 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

comment:4 Changed 3 years ago by webbp (Webb Phillips)

Description: modified (diff)

comment:5 Changed 3 years ago by webbp (Webb Phillips)

Description: modified (diff)
Note: See TracTickets for help on using tickets.