-
-
Notifications
You must be signed in to change notification settings - Fork 30.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
makesetup can fail on macOS and uses wrong CFLAGS #94404
Comments
tiran
added a commit
to tiran/cpython
that referenced
this issue
Jun 29, 2022
``makesetup`` now works around an issue with sed on macOS and uses correct CFLAGS for object files that end up in a shared extension.
tiran
added a commit
that referenced
this issue
Jun 29, 2022
``makesetup`` now works around an issue with sed on macOS and uses correct CFLAGS for object files that end up in a shared extension.
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Jun 29, 2022
…ythonGH-94405) ``makesetup`` now works around an issue with sed on macOS and uses correct CFLAGS for object files that end up in a shared extension. (cherry picked from commit 5150cbc) Co-authored-by: Christian Heimes <christian@python.org>
miss-islington
added a commit
that referenced
this issue
Jun 29, 2022
``makesetup`` now works around an issue with sed on macOS and uses correct CFLAGS for object files that end up in a shared extension. (cherry picked from commit 5150cbc) Co-authored-by: Christian Heimes <christian@python.org>
tiran
added a commit
to tiran/cpython
that referenced
this issue
Jun 29, 2022
``PY_STDMODULE_CFLAGS`` may contain include directories with system headers. This can break compiling with built-in libmpdec.
tiran
added a commit
that referenced
this issue
Jun 29, 2022
``PY_STDMODULE_CFLAGS`` may contain include directories with system headers. This can break compiling with built-in libmpdec.
tiran
added a commit
to tiran/cpython
that referenced
this issue
Jun 29, 2022
…ythonGH-94413) ``PY_STDMODULE_CFLAGS`` may contain include directories with system headers. This can break compiling with built-in libmpdec. (cherry picked from commit 6485c3c) Co-authored-by: Christian Heimes <christian@python.org>
tiran
added a commit
that referenced
this issue
Jun 29, 2022
gvanrossum
pushed a commit
to gvanrossum/cpython
that referenced
this issue
Jun 30, 2022
…ythonGH-94405) ``makesetup`` now works around an issue with sed on macOS and uses correct CFLAGS for object files that end up in a shared extension.
gvanrossum
pushed a commit
to gvanrossum/cpython
that referenced
this issue
Jun 30, 2022
…H-94413) ``PY_STDMODULE_CFLAGS`` may contain include directories with system headers. This can break compiling with built-in libmpdec.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug report
The script
Modules/makesetup
has two issuesIt uses sed
i
command with multiple escapes newlines. The feature works fine in GNU sed but does not work correctly with macOS' BSD sed. @ned-deily found a workaround for the problem. Ther
command with an external replacement file works correctly on GNU and BSD sed.makesetup
creates wrong compile rules for object files that end up in a shared library. The variables$(CCSHARED) $(PY_CFLAGS_NODIST) $(PY_CPPFLAGS)
are missing some flags like address sanitizer. The script should create rules with$(PY_STDMODULE_CFLAGS) $(CCSHARED)
instead.the order of cflags can break builds. For example macOS ARM64 builds are broken because
-I./Modules/_decimal/libmpdec
comes after-I/opt/homebrew/include
and the buildbot seems to come with an incompatible libmpdec header. Module-specific CFLAGs should come before Python CFLAGs. It is probably easier to move module CFLAGS beforePY_STDMODULE_CFLAGS
. The homebrew flag comes fromPY_CPPFLAGS
andCONFIGURE_CPPFLAGS
.The text was updated successfully, but these errors were encountered: