Title: makesetup can fail on macOS and uses wrong CFLAGS · Issue #94404 · python/cpython · GitHub
Open Graph Title: makesetup can fail on macOS and uses wrong CFLAGS · Issue #94404 · python/cpython
X Title: makesetup can fail on macOS and uses wrong CFLAGS · Issue #94404 · python/cpython
Description: Bug report The script Modules/makesetup has two issues It 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...
Open Graph Description: Bug report The script Modules/makesetup has two issues It 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-...
X Description: Bug report The script Modules/makesetup has two issues It uses sed i command with multiple escapes newlines. The feature works fine in GNU sed but does not work correctly with macOS' BSD sed. @...
Opengraph URL: https://github.com/python/cpython/issues/94404
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"makesetup can fail on macOS and uses wrong CFLAGS","articleBody":"**Bug report**\r\n\r\nThe script ``Modules/makesetup`` has two issues\r\n\r\n1) It 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](https://github.com/python/cpython/pull/93940#issuecomment-1169390421) for the problem. The ``r`` command with an external replacement file works correctly on GNU and BSD sed.\r\n\r\n2) ``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.\r\n\r\n3) the order of cflags can break builds. For example macOS ARM64 builds are [broken](https://buildbot.python.org/all/#/builders/721/builds/481) 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 before ``PY_STDMODULE_CFLAGS``. The homebrew flag comes from ``PY_CPPFLAGS`` and ``CONFIGURE_CPPFLAGS``.","author":{"url":"https://github.com/tiran","@type":"Person","name":"tiran"},"datePublished":"2022-06-29T06:55:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/94404/cpython/issues/94404"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:22995924-661a-5856-8b06-7f7911055bda |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E436:378262:37C1AAA:49D8E30:696BA86C |
| html-safe-nonce | 1b27e2d9fb0f968468590f36f490932db2c52a68c326dc5cc558028542527c77 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDM2OjM3ODI2MjozN0MxQUFBOjQ5RDhFMzA6Njk2QkE4NkMiLCJ2aXNpdG9yX2lkIjoiMTExNzIzMTkxNzI4MzY0OTY0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0469c5d35418a42970000dd8396404c55ea8502902edc1603bcc92d6c9c07d2d |
| hovercard-subject-tag | issue:1288256347 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/94404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/97708be0ee7686836bd7a1b2d87992d40b44f9afee51eede7a5a54b78254b0f1/python/cpython/issues/94404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/97708be0ee7686836bd7a1b2d87992d40b44f9afee51eede7a5a54b78254b0f1/python/cpython/issues/94404 |
| og:image:alt | Bug report The script Modules/makesetup has two issues It 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-... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tiran |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 82560a55c6b2054555076f46e683151ee28a19bc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width