src: workaround AIX libc++ std::filesystem bug#62788
Merged
nodejs-github-bot merged 1 commit intonodejs:mainfrom Apr 17, 2026
Merged
src: workaround AIX libc++ std::filesystem bug#62788nodejs-github-bot merged 1 commit intonodejs:mainfrom
nodejs-github-bot merged 1 commit intonodejs:mainfrom
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Member
Author
|
Fighting linters 😢 |
On AIX libc++ is returning `EEXIST` instead of `EACCES` when using `std::filesystem::remove_all()` without appropriate permissions to recursively remove the directory. Co-authored-by: Abdirahim Musse <[email protected]> Signed-off-by: Richard Lau <[email protected]>
Member
Author
|
This passed so should unblock switching AIX over to build with clang. |
sxa
approved these changes
Apr 17, 2026
Member
sxa
left a comment
There was a problem hiding this comment.
Slightly odd behaviour but this sounds like a reasonable workaround.
Would be "interesting" (but not required for this to land) to see if the OS-provided libc on other AIX levels are affected including AIX 7.3 to understand if it may be worth reverting in the future sometime.
Contributor
|
Fast-track has been requested by @richardlau. Please 👍 to approve. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #62788 +/- ##
==========================================
- Coverage 89.69% 89.69% -0.01%
==========================================
Files 706 706
Lines 218247 218247
Branches 41777 41773 -4
==========================================
- Hits 195760 195752 -8
- Misses 14401 14407 +6
- Partials 8086 8088 +2
🚀 New features to boost your workflow:
|
Collaborator
|
Landed in 5f02bdb |
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 27, 2026
On AIX libc++ is returning `EEXIST` instead of `EACCES` when using `std::filesystem::remove_all()` without appropriate permissions to recursively remove the directory. Co-authored-by: Abdirahim Musse <[email protected]> Signed-off-by: Richard Lau <[email protected]> PR-URL: #62788 Refs: #62790 Reviewed-By: Abdirahim Musse <[email protected]> Reviewed-By: Stewart X Addison <[email protected]>
RafaelGSS
pushed a commit
that referenced
this pull request
Apr 28, 2026
On AIX libc++ is returning `EEXIST` instead of `EACCES` when using `std::filesystem::remove_all()` without appropriate permissions to recursively remove the directory. Co-authored-by: Abdirahim Musse <[email protected]> Signed-off-by: Richard Lau <[email protected]> PR-URL: #62788 Refs: #62790 Reviewed-By: Abdirahim Musse <[email protected]> Reviewed-By: Stewart X Addison <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On AIX libc++ is returning
EEXISTinstead ofEACCESwhen usingstd::filesystem::remove_all()without appropriate permissions to recursively remove the directory.Refs: nodejs/build#4286 (comment)
Refs: #62790
When built on AIX with clang, we consistently hit this test failure in
parallel/test-fs-rm:@abmusse has done investigation that indicates this might be a libc++ on AIX bug (or at least difference). We'll try and pursue that as a longer term solution, but to unblock switching the AIX builds to clang this PR works around the difference.