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 ordering of headers so #define _GNU_SOURCE comes first #46183

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

akirakyle
Copy link
Contributor

Compiling Julia under Guix fails for any version beyond commit c5cb029 which introduced an include statement before #define _GNU_SOURCE. The compilation would fail to find symbols dlfcn.h as feature test macros in GCC must come before any the inclusion of any system header file. See https://www.gnu.org/software/libc/manual/html_node/Feature-Test-Macros.html

@giordano giordano added building Build system, or building Julia or its dependencies backport 1.8 Change should be backported to release-1.8 labels Jul 26, 2022
@KristofferC
Copy link
Member

This should be merged right? @giordano

@giordano
Copy link
Contributor

Yes, looks good to me

@KristofferC KristofferC added the merge me PR is reviewed. Merge when all tests are passing label Aug 26, 2022
@KristofferC KristofferC merged commit 3b81696 into JuliaLang:master Aug 26, 2022
KristofferC pushed a commit that referenced this pull request Aug 29, 2022
Co-authored-by: Kristoffer Carlsson <[email protected]>
(cherry picked from commit 3b81696)
@DilumAluthge DilumAluthge removed the merge me PR is reviewed. Merge when all tests are passing label Aug 30, 2022
@KristofferC KristofferC mentioned this pull request Sep 7, 2022
28 tasks
@KristofferC KristofferC removed the backport 1.8 Change should be backported to release-1.8 label Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
building Build system, or building Julia or its dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants