-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
Build failure for python@3.12.1
on mac with non-system version of ncurses
#118873
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
Comments
You should take this issue up first with the spack project. I'm not familiar with spack but a quick glance at the logs you provided shows a rather complicated and non-standard build process. A web search shows that at least one other person has seen this particular build failure using spack. The failure seems to be that that the built
It could be due to a mismatch between ncurses headers and libs when building. Also, be aware that Python 3.12.3 is current so 3.12.1 is no longer supported. |
Thanks for the response @ned-deily! The underlying issue seems to be from this bit of Lines 6572 to 6588 in a019347
which makes the following assumption:
However, for the build environment I'm using, with a custom ncurses the above assumption breaks:
Would it be possible to add the
|
@erlend-aasland, what do you think? This might also be related to #113565. |
python@3.12.1
on M1 mac with optimizations enabled.python@3.12.1
on mac with non-system version of ncurses
Could you check if #119816 works for you? |
@erlend-aasland : The current spack recipe for Python does not support building from git branches, though it is possible to do so. I'm not sure if it is worth the effort to add that to test this PR. On the other hand, if I use system compilers with the newer For the build that failed, I'd used
|
@s-sajid-ali, got it. Looks like it should be fairly easy to hack that script to download a 3.13 beta release, though. If we decide to backport #119816 to 3.13, you'd should be able to test it relatively soon. |
@erlend-aasland : Yes, building the |
I think you'll have to wait for beta3; it's a large PR, and I don't want to rush it. Feel free to take a stab at reviewing it, if you feel like it :) |
Thanks for the update and asking me to review it, but I don't really know enough about Thanks again for fixing this! |
@s-sajid-ali, you'll find the 3.13 backport of #119816, #121202, in the upcoming 3.13-beta4 release, scheduled to be released in a couple of weeks time. There has been no decision regarding a 3.12 backport yet. |
Thanks for the update @erlend-aasland! I'll close this issue since the fix has been merged. |
Bug report
Bug description:
Using the
spack
package manager to installpython@3.12.1
ondarwin-sonoma-m1
with the following command:results in the following build error:
Build error
The associated log files with this build error are:
spack-build-01-configure-out.txt
spack-build-02-build-out.txt
spack-build-03-install-out.txt
No build error when building
python@3.11.7
. The associated log files are:spack-build-01-configure-out.txt
spack-build-02-build-out.txt
spack-build-03-install-out.txt
Note that the following flags are added by
spack
when optimizations are turned on:https://github.com/spack/spack/blob/b79761b7eb5eb2e2d6b8174c3043524462772bf6/var/spack/repos/builtin/packages/python/package.py#L574-L581
CPython versions tested on:
3.12
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: