-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Dependency resolution fails for source with F90 extension #8395
Comments
Is there any way I can assist with fixing this issue? I have some interest in seeing this issue fixed since it blocks adaption of meson 0.57.1 for almost all my projects. |
A first step would be to write a test case that reproduce the bug, and bisect to know which commit exactly broke it. Check what is different in the command line between a build that works and one that fails. |
@xclaesse The bug was introduced with the module scanner and only partly fixed after I first reported it, see #8377 (comment). |
Bisect says the bug was introduced with 2f836e3 |
For a quick hack it seems like adding the F90 file extension in mesonbuild/compiler/compilers.py resolves the issue: diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py
index af76ea460..df286e25d 100644
--- a/mesonbuild/compilers/compilers.py
+++ b/mesonbuild/compilers/compilers.py
@@ -55,7 +55,7 @@ lang_suffixes = {
'cuda': ('cu',),
# f90, f95, f03, f08 are for free-form fortran ('f90' recommended)
# f, for, ftn, fpp are for fixed-form fortran ('f' or 'for' recommended)
- 'fortran': ('f90', 'f95', 'f03', 'f08', 'f', 'for', 'ftn', 'fpp'),
+ 'fortran': ('f90', 'f95', 'f03', 'f08', 'f', 'for', 'ftn', 'fpp', 'F90'),
'd': ('d', 'di'),
'objc': ('m',),
'objcpp': ('mm',), I wonder if adding F90, F95, F03, F08, F, FOR, FTN and FPP would work as fix or if the file extension should be considered in a case-insensitive way for Fortran instead. Edit: See fortran-lang/fpm#250 for the complete list of Fortran file extensions. |
Can you test if the linked MR fixes the issue for you? |
Awesome, 9b76036 fixes the above example and can again build all my projects 🎉 |
Describe the bug
Dependency resolution fails for Fortran source with F90 file extension.
To Reproduce
Example project reproducing the behaviour:
mwe.tar.gz
Meson log file:
meson-log.txt
Expected behavior
Resolve dependencies independently of file extensions.
system parameters
native build
meson --version
ninja --version
if it's a Ninja buildThe text was updated successfully, but these errors were encountered: