-
Notifications
You must be signed in to change notification settings - Fork 104
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
v0.8.x fails to build projects that could be built with v.7.0 #956
Comments
As of 0.8.0, implicit typing is deprecated by default and needs to turned back on in the manifest. |
Ok, but there is subtlety here... My project project is in modern Fortran and I am totally fine with the default flags. However, one of my dependencies is ODEPACK (the example mentioned above), which is in fixed format and probably also has implicit interfaces. So, I am kind of stuck:
|
I understand @HugoMVale. Unfortunately, despite all the efforts, sometimes adding new features introduces breakages. because the Fortran features are already applied on a dependency basis: Line 105 in 39fdc09
I believe your package should just work if you turn implicit typing on the dependency. So I think what you can do is to submit a PR to your dependency to align its manifest to new fpm releases. In the meanwhile, you could download and modify it locally, and add it to your project as a path dependency |
Thanks, @perazz . I did as you suggested and was able to fix the problem (I had to reset all 3 features). I still think, however, that there are 2 "problems":
|
Do you think we should close this @HugoMVale? |
@perazz : The issue in title is solved. On the other hand, I think the other 2 issues that I mentioned in my previous post (July 15th) are either real bugs or very-astonishing-features and, thus, deserve consideration. Perhaps the right thing to do is to create a new issue for that? What is your opinion? |
Description
Projects like this one can be built with v.07.2, but not with 0.8.x. I can't say if this problem has been fixed in v.0.9.0 because this version is not yet available in MSYS2.
I am uncertain about the origin of the problem, but the error message suggests that fpm is adding flags
-fimplicit-none -Werror=implicit-interface -ffree-form -J
in a untransparent manner.In the example below, I've added the flag
-O
just to bypass the default profile and be able to see which other flags were being added.The build fails equally with
fpm build
.Expected Behaviour
Version of fpm
v0.8.x
Platform and Architecture
Windows
Additional Information
No response
The text was updated successfully, but these errors were encountered: