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

Error when building with fpm #4

Closed
general-rishkin opened this issue Dec 8, 2022 · 2 comments
Closed

Error when building with fpm #4

general-rishkin opened this issue Dec 8, 2022 · 2 comments

Comments

@general-rishkin
Copy link

I just included M_strings as a dependency in my project. On doing fpm run, I get the following error in M_strings. This is wwith gfortran version 8.3.0 .

build/dependencies/M_strings/src/M_strings.F90:8854:35:

 real,parameter    :: XMAXREAL=real(huge(1))
                                   1
Warning: Change of value in conversion from ‘INTEGER(4)’ to ‘REAL(4)’ at (1) [-Wconversion]
build/dependencies/M_strings/src/M_strings.F90:6711:50:

 integer                      :: matrix(0:len_trim(a), 0:len_trim(b))
                                                  1
Error: Dummy argument ‘a’ not allowed in expression at (1)
compilation terminated due to -fmax-errors=1.
@urbanjost
Copy link
Owner

urbanjost commented Dec 8, 2022

That old version of the compiler did not support that more modern declaration. I do not have a version that old to test with, but if that is the only error I will change the code to use older syntax. That is in a relatively obscure function and should have no performance issue anyway.

If using fpm(1) it does not get dependencies that change automatically;so if you flush the dependency cache with "fpm clean --all" or run "fpm update" it should get the new version; which
should have that problem resolved by creating an allocatable array and allocating it instead.

@general-rishkin
Copy link
Author

Excellent, thanks

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

No branches or pull requests

2 participants