-
Notifications
You must be signed in to change notification settings - Fork 135
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
Segfault when building with Apple Clang 15 #474
Comments
Hello! Thanks for reporting this. I don't have access to an Apple M2 atm, but In the meantime would you be able to provide crash backtrace (.crash)? Here is the version I used
|
Here are all files mentioned in the error message:
> spack spec sleef@master
Input spec
--------------------------------
- sleef@master
Concretized
--------------------------------
- sleef@master%[email protected]~ipo build_system=cmake build_type=Release generator=ninja arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~doc+ncurses+ownlibs build_system=generic build_type=Release arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~gssapi~ldap~libidn2~librtmp~libssh~libssh2+nghttp2 build_system=autotools libs=shared,static tls=secure_transport arch=darwin-sonoma-m2
[+] ^gnuconfig@2022-09-17%[email protected] build_system=generic arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~symlinks+termlib abi=none build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+compat+opt build_system=autotools patches=299b958,86c3f5b,ae9077a,b692621 arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+re2c build_system=generic arch=darwin-sonoma-m2
[-] ^[email protected]%[email protected]+bz2+crypt+ctypes+dbm~debug+libxml2+lzma~nis+optimizations+pic+pyexpat+pythoncmd+readline+shared+sqlite3+ssl~tkinter+uuid+zlib build_system=generic patches=13fa8bf,b0615b2,ebdca64,f2fd060 arch=darwin-sonoma-m2
[e] ^[email protected]%[email protected] build_system=bundle arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~debug~pic+shared build_system=generic arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~libbsd build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools arch=darwin-sonoma-m2
[-] ^[email protected]%[email protected]+bzip2+curses+git~libunistring+libxml2+tar+xz build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools libs=shared,static arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+pic~python+shared build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools zip=pigz arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=makefile arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+programs build_system=makefile compression=none libs=shared,static arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~obsolete_api build_system=autotools patches=4885da3 arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+cpanm+opcode+open+shared+threads build_system=generic patches=714e4d1 arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+cxx~docs+stl build_system=autotools patches=26090f4,b231fcc arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~docs+shared build_system=generic certs=mozilla arch=darwin-sonoma-m2
[+] ^ca-certificates-mozilla@2023-05-30%[email protected] build_system=generic arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=autotools patches=bbf97f1 arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]+column_metadata+dynamic_extensions+fts~functions+rtree build_system=autotools arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected]~pic build_system=autotools libs=shared,static arch=darwin-sonoma-m2
[+] ^[email protected]%[email protected] build_system=generic arch=darwin-sonoma-m2
> /usr/bin/xcodebuild -version
Xcode 15.0.1
Build version 15A507
Already up-to-date. |
Thanks! There seems to be quite a few bugs flagged on Sonoma lately, so since this looks like a compiler error I would recommend filing a report to Apple Clang directly (as suggested by the error message). You will increase your chances to get a fix soon. In the meantime we will try to reproduce and maybe find a workaround. |
Filed a report. |
Finally got a reply from Apple 3 months later:
Is there a CMake flag to disable SVE? |
Hello! Sorry for the late reply. You might have found your answer already but yes there is a flag to disable SVE, simply pass |
Thanks, this worked great to build the master branch. Unfortunately it doesn't work to build e0a003e, which is the version used by PyTorch. Maybe this flag didn't exist at the time? Was there a different flag available? |
Ah, looks like it was previously called |
Yes, this worked great! I'll keep this issue open until your CMake configuration is able to auto-detect whether or not SVE is supported. |
Cheers! Will try to sort that out ASAP. |
Merged #512. Let me know if this is good for you, and please close issue! Cheers for the precious help on this! |
I'm seeing a segfault when building from the master branch:
See the full build log: spack-build-out.txt
I'm on macOS Sonoma 14.0 (Apple M2 Pro, arm64) using Apple Clang 15.0.0.
The text was updated successfully, but these errors were encountered: