-
Notifications
You must be signed in to change notification settings - Fork 324
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
Compile fails with clang 16 #171
Comments
Why is |
Also, cpuinfo doesn't support ppc64 and s390x |
Is there a way to build pytorch without it? |
I don't know, you should ask PyTorch devs |
Did I file this in the wrong place? cpuinfo is included in the third_party deps of pytorch and this repo is within the pytorch org. I had assumed you all talk occasionally? The only option I see available in pytorch is And the cmake warning when building on unsupported architectures:
|
To you question, "Why is syscall undeclared on Red Hat?", I don't think this is distribution specific. As mentioned I don't have this problem on amd64 or aarch64 using the same version of clang. Rather it seems a difference in architectures. One of the explanations I see is: It's also present in the example within the man page Putting this define at the top of the file does seem to resolve the build failure. I don't have a strong enough understanding at present to say why it's necessary for some architectures and not others. |
@Maratyszcza syscall is not a standard function in posix. It is implemented in glibc. It looks like the Clang has strict constraints (compared to GCC) The man page https://linux.die.net/man/2/syscall also show that we should add |
I am seeing the following trying to build on Fedora 38 ppc64;e and s390x. I do not have this problem on x86_64 or aarch64.
I believe it is coming from the change in behavior to
Wimplicit-function-declaration
.https://www.redhat.com/en/blog/new-warnings-and-errors-clang-16
A full build log can be found here:
https://download.copr.fedorainfracloud.org/results/jmontleon/pytorch/fedora-38-s390x/06239794-pytorch/builder-live.log.gz
The text was updated successfully, but these errors were encountered: