-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Caffe2 CPU tests] Update CMakeLists.txt #119643
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/119643
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit ee14203 with merge base c4d24b5 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
@pytorchmergebot merge --rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
e3a3df6
to
a181b3b
Compare
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 2 jobs have failed, first few of them are: trunk / win-vs2019-cuda11.8-py3 / build, trunk / win-vs2019-cpu-py3 / build Details for Dev Infra teamRaised by workflow job |
Added a guard against not-windows (stdc++ is a very linux library), but this change feels very suspicious to me as dependency to C++ runtime should be added by automatically for C++ projects, and libtorch is one of them |
I suspect that gcc-11 was used in an old centOS system so it has the path '/opt/rh/gcc-toolset-11/', and the system's default libstdc++ may have older ABI. May be the proper libstdc++ with /opt/rh/gcc-toolset-11/ should be installed and CMake should be able to detect it. (By using some kind of environment variable?) PS: A quick Google search gave pkg names like "gcc-toolset-11-libstdc++-devel-11.2.1-9.1.el8.i686.rpm", I think this is an issue of incomplete toolchain setting, use
and re-run CMake may solve the problem. |
Hm, I was using a full toolchain installed into centos 8 (gcc-toolset-11-11.1-1.el8.x86_64), then run with I'll double check |
@kunalb I don't think there is a big harm in adding libstdc++ as a dependency, so feel free to land it (windows builds are passing now and runtime failure is unrelated), but again this dependency feels a bit superfluous though not wrong |
Thanks, I'll go ahead and land it in that case and then keep looking on the side. @pytorchmergebot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
I was trying to build PyTorch with USE_GLOG=ON (so we could get better timestamps around the nccl logging) and ran into this error
Adding stdc++ explicitly to the list of libraries to link seems to fix the build, and I was able to get a working build of PyTorch.