-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Error when building PyTorch from source in CentOS Linux 7 #56777
Comments
looks like a portability problem |
What kernel and glibc versions are you using? (Unfortunately these don't seem to get included in the env report). The flag that's not found was introduced in Linux 3.11 (Sep 2013), so it shouldn't be that recent... To get unblocked, you could modify your local checkout and add a new line after this one, with something like this:
|
possibly related to pytorch/tensorpipe#305. I remember seeing this while creating that PR |
@lw Should we expose this option as a build time flag that users can specify instead of modifying the code? |
Thanks @lw ! Here's the info:
|
@AntMorais Thanks for the info, indeed you have kernel 3.10, which doesn't have that feature we're using. I'm glad though that the fix I suggested managed to unblock you. The new error you're getting seems unrelated, so I'd suggest to open a new issue. At first glance, it could be due to the compiler running out-of-memory and thus getting killed. You could consider lowering the build parallelism.
If we decide to support such old kernels, we should make this check automatic within the build system. We haven't yet agreed on a strict "cutoff" line for kernel versions, but since in this case the fix is quite simple I went ahead and did it in pytorch/tensorpipe#372 |
Solved with |
This sovles my problem! |
🐛 Bug
Error when building from source in CentOS 7.
To Reproduce
Steps to reproduce the behavior:
python setup.py install
Build summary:
Error:
Expected behavior
Expect PyTorch to be installed correctly.
Environment
Additional context
Installing in a server through ssh.
cc @malfet @seemethere @walterddr @osalpekar @jiayisuse @lw @beauby @pritamdamania87 @mrshenli @jjlilley @gqchen @rohan-varma
The text was updated successfully, but these errors were encountered: