Skip to content
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

Fix use of cc with make <4.3: Clear O_NONBLOCK after compilaton #966

Merged
merged 4 commits into from
Feb 24, 2024

Conversation

NobodyXu
Copy link
Collaborator

Fixed #962

make <4.3 cannot handle jobserver pipe with O_NONBLOCK set.

Since make <4.3 cannot handle jobserver pipe with `O_NONBLOCK` set.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
@NobodyXu
Copy link
Collaborator Author

@nadenf @IGI-111 Could you please try this PR, to see if it fixed the error when used with make <4.3 ?

@IGI-111
Copy link

IGI-111 commented Feb 23, 2024

I can indeed confirm this fixes my issue.

@NobodyXu NobodyXu changed the title Fix use of cc with make: Clear O_NONBLOCK after compilaton Fix use of cc with make <4.3: Clear O_NONBLOCK after compilaton Feb 24, 2024
All unix, not just linux, has /dev/fd
@NobodyXu NobodyXu merged commit faf8f92 into main Feb 24, 2024
42 checks passed
@NobodyXu NobodyXu deleted the fix/job-token-make branch February 24, 2024 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make resource failure when cc parallel is enabled
3 participants