-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined symbols to build or run Pytorch on macOS #660
Comments
Make sure to use search first. See #125. |
I'm not familiar enough with the internals of glog or torch's dependence on glog to understand your response. How is this resolved? Are you saying it's an issue with torch? What's the specific resolution? |
There is nothing to resolve in glog. PyTorch uses an internal glog symbol which is not part of the API. The corresponding public API function was added to master only recently (#651). |
I believe the issue may be much more wide-spread than you expected. Although it's technically UB, I won't blame them for using it because it's the only way to reliably init glog for multiple libs. In glog 0.5.0, there's simply no way around, which can be a major issue for adoption. |
The very first hit in your screenshot shows a clean way to test whether an initialization was performed which works irrespective of glog version. What's wrong with that? |
That only works if you have full control of glog. Lines 337 to 338 in 0b3d4cb
|
The described scenario doesn't seem to apply to PyTorch. Regardless, I reject your idea of providing any kind of compatibility to internal symbols as I already made this very clear. The next version of glog will contain the necessary functionality. I'm locking the discussion due to pointless arguing. |
Pytorch fails to compile on macOS because of the undefined symbol
google::glog_internal_namespace_::IsGoogleLoggingInitialized()
:Related:
The text was updated successfully, but these errors were encountered: