Title: `lib/python3.12: File exists` when doing `make -jN install` · Issue #109796 · python/cpython · GitHub
Open Graph Title: `lib/python3.12: File exists` when doing `make -jN install` · Issue #109796 · python/cpython
X Title: `lib/python3.12: File exists` when doing `make -jN install` · Issue #109796 · python/cpython
Description: Bug report Bug description: On CPython 3.12.0rc3 I am reliably seeing a new apparent race condition in the build system. On prior CPython releases, make -jN install would reliably work. On 3.12, it no longer does. Here is example build o...
Open Graph Description: Bug report Bug description: On CPython 3.12.0rc3 I am reliably seeing a new apparent race condition in the build system. On prior CPython releases, make -jN install would reliably work. On 3.12, it...
X Description: Bug report Bug description: On CPython 3.12.0rc3 I am reliably seeing a new apparent race condition in the build system. On prior CPython releases, make -jN install would reliably work. On 3.12, it...
Opengraph URL: https://github.com/python/cpython/issues/109796
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`lib/python3.12: File exists` when doing `make -jN install`","articleBody":"# Bug report\n\n### Bug description:\n\nOn CPython 3.12.0rc3 I am reliably seeing a new apparent race condition in the build system.\n\nOn prior CPython releases, `make -jN install` would reliably work. On 3.12, it no longer does.\n\nHere is example build output:\n\n```\nTo find the necessary bits, look in configure.ac and config.log.\n\nChecked 111 modules (31 built-in, 73 shared, 4 n/a on macosx-13.5-x86_64, 0 disabled, 3 missing, 0 failed on import)\nCreating directory /tools/host/lib/python3.12\nCreating directory /tools/host/lib/python3.12/config-3.12-darwin\nCreating directory /tools/host/lib/python3.12\ninstall: mkdir /private/var/folders/dd/xb3jz0tj133_hgnvdttctwxc0000gn/T/tmpsgqb2dup/out/tools/host/lib/python3.12: File exists\nCreating directory /tools/host/lib/python3.12/lib-dynload\nmake: *** [libainstall] Error 71\nmake: *** Waiting for unfinished jobs....\nCreating directory /tools/host/lib/python3.12/asyncio\n```\n\nThe `Creating directory %s` log message comes from CPython's `Makefile.pre.in` and we can see from these logs that there appear to be 2 callers racing to create `lib/python3.12` around the same time.\n\nSteps to reproduce are just a simple `./configure` + `make -jN install`, where N is say 8.\n\nI can reliably reproduce this failure on macOS 13.5.2 and it _might_ be due to a buggy `/usr/bin/install -d` implementation on macOS. I think the problem is `/usr/bin/install -d` doesn't swallow/ignore EEXIST like `mkdir -p` does.\n\nI want to say I encountered limitations/bugs in macOS `/usr/bin/install` a few years back when I was a maintainer of Firefox's build system.\n\n### CPython versions tested on:\n\n3.12\n\n### Operating systems tested on:\n\nmacOS","author":{"url":"https://github.com/indygreg","@type":"Person","name":"indygreg"},"datePublished":"2023-09-24T03:05:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/109796/cpython/issues/109796"}
| 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:0e566cfe-8c73-d7bf-4de7-3287ec051801 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E90A:260922:26F12D:3420E4:6969795C |
| html-safe-nonce | fd13c572c90b2de04ea32fab8875fee64f353fb0755e8d0299c6bcdc271c93cf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTBBOjI2MDkyMjoyNkYxMkQ6MzQyMEU0OjY5Njk3OTVDIiwidmlzaXRvcl9pZCI6IjQ3NjgwNDQ5NjE3MzY3ODQyMjAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 331436e9bb37f7b12c5321c49b6284dc63e447eb297e2b493440700d52ca39f2 |
| hovercard-subject-tag | issue:1910072914 |
| 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/109796/issue_layout |
| twitter:image | https://opengraph.githubassets.com/09fe5c96a9e35c3df75f08948f105308b1b484262a88f2df21ed99d54cf6ecbf/python/cpython/issues/109796 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/09fe5c96a9e35c3df75f08948f105308b1b484262a88f2df21ed99d54cf6ecbf/python/cpython/issues/109796 |
| og:image:alt | Bug report Bug description: On CPython 3.12.0rc3 I am reliably seeing a new apparent race condition in the build system. On prior CPython releases, make -jN install would reliably work. On 3.12, it... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | indygreg |
| hostname | github.com |
| expected-hostname | github.com |
| None | c6f193beb8ff08443adc07685d75302ab8aaf0a135f6e251c3ff3112c8deb881 |
| 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 | 212e3e3d3298bf5b313830edfd2399e869f7ea76 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width