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 missing jl_effective_threads declaration #44251

Merged
merged 1 commit into from
Feb 19, 2022

Conversation

tkf
Copy link
Member

@tkf tkf commented Feb 19, 2022

Fix the error error: implicit declaration of function 'jl_effective_threads' is invalid in C99 [-Werror,-Wimplicit-function-declaration] #42340 (comment). @IanButterworth said it worked locally.

close #44250
close #44249

PS: Why our CI didn't catch this? Also, why normal build (make) in Linux didn't catch this? This may need a bit more investigation (unless someone knows why). But I think a quick fix like this makes sense.

@tkf
Copy link
Member Author

tkf commented Feb 19, 2022

@vtjnash Is it OK to include julia_internal.h in jloptions.c? Alternatively, I guess we can just put a single line int jl_effective_threads(void); there.

@IanButterworth IanButterworth merged commit f852c88 into JuliaLang:master Feb 19, 2022
@tkf tkf deleted the fix-jl_effective_threads branch February 20, 2022 00:02
@IanButterworth IanButterworth added the backport 1.8 Change should be backported to release-1.8 label Feb 20, 2022
KristofferC pushed a commit that referenced this pull request Feb 23, 2022
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Feb 24, 2022
staticfloat pushed a commit to JuliaCI/julia-buildkite-testing that referenced this pull request Mar 2, 2022
LilithHafner pushed a commit to LilithHafner/julia that referenced this pull request Mar 8, 2022
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.

multithreading update (PR #42340) leads to build error on macOS arm64 machine
4 participants