-
-
Notifications
You must be signed in to change notification settings - Fork 395
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
Broken support of OpenMP with GFortran #5255
Labels
Comments
jbloino
changed the title
Broken support of OpenMP with
Broken support of OpenMP with GFortran
Sep 17, 2024
try this patch. xmake-io/xmake#5644 |
Thank you! After having updated with, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Xmake Version
2.9.5
Operating System Version and Architecture
macOS Sonoma 14.6.1, Linux debian testing kernel 6.9.10
Describe Bug
gfortran fails to link the OpenMP library at the final compilation stage, with all references to OpenMP primitives unresolved.
This problem was confirmed on mac OS X arm64 and Linux AMD 64.
Expected Behavior
The compilation should work
Project Configuration
xmake.lua
test_openmp.f90
Additional Information and Error Logs
It seems that the problem is in the use of
result.fcldflags = "-fopenmp"
on l.77.Replacing it with
result.ldflags = "-fopenmp"
fixes the problem (the "shared" case was not tested).The text was updated successfully, but these errors were encountered: