Opened 3 years ago
Closed 2 years ago
#62921 closed defect (fixed)
py39-pytorch: Symbol not found
Reported by: | essandess (Steve Smith) | Owned by: | mascguy (Christopher Nielsen) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.6.4 |
Keywords: | haspatch | Cc: | |
Port: | py-pytorch |
Description
python3 -c 'import torch' Traceback (most recent call last): File "<string>", line 1, in <module> File "/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/torch/__init__.py", line 196, in <module> from torch._C import * ImportError: dlopen(/opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/torch/_C.cpython-39-darwin.so, 2): Symbol not found: __ZN6google21kLogSiteUninitializedE Referenced from: /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/torch/lib/libc10.dylib Expected in: /opt/local/lib/libglog.0.dylib in /opt/local/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/torch/lib/libc10.dylib
Attachments (1)
Change History (9)
Changed 3 years ago by essandess (Steve Smith)
comment:1 Changed 3 years ago by essandess (Steve Smith)
comment:2 Changed 3 years ago by cjones051073 (Chris Jones)
Looks like maybe a rev-bump might be needed perhaps...
comment:3 Changed 3 years ago by cjones051073 (Chris Jones)
unfortunately not
[ 18%] Linking CXX shared library ../lib/libc10.dylib Undefined symbols for architecture x86_64: "google::glog_internal_namespace_::IsGoogleLoggingInitialized()", referenced from: c10::InitCaffeLogging(int*, char**) in Logging.cpp.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [c10/CMakeFiles/c10.dir/build.make:780: lib/libc10.dylib] Error 1 gmake[1]: *** [CMakeFiles/Makefile2:3722: c10/CMakeFiles/c10.dir/all] Error 2 gmake[1]: *** Waiting for unfinished jobs....
comment:4 Changed 3 years ago by essandess (Steve Smith)
comment:5 follow-up: 6 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Keywords: | haspatch added |
---|---|
Port: | py-pytorch added; py39-pytorch removed |
Summary: | Symbol not found in pytorch on macOS 11 → py39-pytorch: Symbol not found |
8 months later, py-pytorch still fails to build due to that error. The Google Glog issue linked to above has been closed and locked due to "pointless arguing".
Steve submitted this PR to add a google-glog-0.4.0 subport and have py-pytorch use it for now.
comment:6 Changed 3 years ago by essandess (Steve Smith)
Also see https://github.com/pytorch/pytorch/issues/58054.
Note that google-glog closed this issue because pytorch isn't using their API correctly, so it's a PT issue not a glog issue.
Also note the PR uses the latest version of PT that compiles with glog 0.4, and an update won't be possible until PR fixes this.
Replying to ryandesign:
8 months later, py-pytorch still fails to build due to that error. The Google Glog issue linked to above has been closed and locked due to "pointless arguing".
Steve submitted this PR to add a google-glog-0.4.0 subport and have py-pytorch use it for now.
comment:7 Changed 2 years ago by mascguy (Christopher Nielsen)
Owner: | set to mascguy |
---|---|
Status: | new → assigned |
I believe this is fixed, and we simply forgot to close this ticket. But in short, py-pytorch
was patched, and discussion also occurred with upstream.
The following ticket includes full detail, regarding the various commits/fixes: issue:63544
Steve, would you agree that this is resolved?
comment:8 Changed 2 years ago by mascguy (Christopher Nielsen)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Source builds are also failing. Log attached.