[MacPorts] #61326: py-pytorch: Symbol not found: __ZdlPvSt11align_val_t
MacPorts
noreply at macports.org
Thu Oct 15 13:15:05 UTC 2020
#61326: py-pytorch: Symbol not found: __ZdlPvSt11align_val_t
--------------------------+------------------------
Reporter: chrstphrchvz | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.3
Keywords: | Port: py-pytorch
--------------------------+------------------------
On macOS 10.12, pytorch can't be imported, as currently observed in the
build logs for `pyXX-torchvision`:
{{{
Traceback (most recent call last):
File "setup.py", line 13, in <module>
import torch
File
"/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/site-packages/torch/__init__.py", line 189, in <module>
from torch._C import *
ImportError:
dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/site-packages/torch/_C.cpython-36m-darwin.so, 2): Symbol not found:
__ZdlPvSt11align_val_t
Referenced from:
/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/site-packages/torch/lib/libtorch_python.dylib
Expected in: /usr/lib/libc++.1.dylib
in
/opt/local/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6
/site-packages/torch/lib/libtorch_python.dylib
}}}
From searching online, this has to do with `std::uncaught_exceptions()`
not being found in libc++.
--
Ticket URL: <https://trac.macports.org/ticket/61326>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list