-
-
Notifications
You must be signed in to change notification settings - Fork 54
Fails to compile with Apple Silicon compiler #157
Comments
Some errors:
(And more, but nothing more revealing.) |
Note, if you just want to build x86 wheels, I suspect setting |
Ah, thanks. Though won't that leave mypy users on Apple Silicon high and dry? (Hm, mypyc probably doesn't support that yet either, so it may require using Intel emulation mode anyway?) |
I just tried it on my Intel Mac running macOS 11.2.2 and it seemed to compile OK. The issue may be that you seem to be using header files from the Command Line Tools rather than Xcode itself and it may be that the Command LIne Tools are out of date. Try this:
If not Xcode, then:
You can also try to update the Command Line Tools (they should be sufficient if you don't use the Xcode.app itself):
|
I believe mypy recently started building Apple Silicon wheels: python/mypy#10114 / https://github.com/python/mypy/pull/10145/files Switching over to cibuildwheel earlier made this really easy; we should switch typed-ast too. |
(To clarify, I didn't try the whole build process, just |
Thanks @ned-deily, changing the path to use the Xcode headers seems to have worked. But running I'm guessing I can tell a universal compilation is happening because I get the warning about an unreachable abort() call in ast.c twice. :-) @hauntsaninja Should I just push a 3.10 macOS wheel without bumping the typed_ast version? All that happened since the 1.4.2 release is build stuff. (OTOH the source tarball wouldn't compile on macOS 11, so maybe a version bump is advisable?) |
I'd bump the version due to the source tarball changing. Note it's not just macOS 11, #155 is anyone trying to compile for 3.10 from source. |
Okay. Unfortunately I am rather out of time to work on this soon. :-( |
Maybe I'll bother you about this on May 3rd :-) |
Closing, since this seemed to be some env issue. #163 should get cibuildwheel to make us Apple Silicon wheels. |
This combination fails:
The text was updated successfully, but these errors were encountered: