Trouble with fpm and minpack

Hi All,
I updated fpm to version 0.9.0. I am trying to compile a test code with the following fpm.toml:

name = "test"
version = "0.1.0"
license = "MIT"
author = "Tester"

[[executable]]
name="hello_world"
source-dir="app"
main="hello_world_mpi.f90"

[build]
external-modules = "mpi"

[dependencies]
stdlib="*"
minpack.git = "https://github.com/fortran-lang/minpack"
#minpack="*"

The way it is I get the following error:

(myenv) [dyrdas@nia-login06 fpm_test]$ fpm build --compiler mpiifort
<ERROR> *cmd_build* Package error: Could not retrieve version string for metapackage key <minpack>. Check syntax
1

If instead I uncomment the last line (and comment the minpack.git line) I get:

(myenv) [dyrdas@nia-login06 fpm_test]$ fpm build --compiler mpiifort
forrtl: severe (408): fort: (7): Attempt to use pointer URL when it is not associated with a target

Image              PC                Routine            Line        Source             
fpm                000000000084594F  Unknown               Unknown  Unknown
fpm                00000000005D744D  fpm_git_MP_git_ma         158  git.f90
fpm                0000000000643FB8  fpm_manifest_depe         323  dependency.f90
fpm                00000000005CC092  fpm_dependency_MP        1195  dependency.f90
fpm                00000000005A5CEE  fpm_dependency_MP         445  dependency.f90
fpm                00000000005A23B5  fpm_dependency_MP         321  dependency.f90
fpm                000000000040D1D0  fpm_MP_build_mode          81  fpm.f90
fpm                000000000042945C  fpm_MP_cmd_build_         431  fpm.f90
fpm                0000000000406AC2  MAIN__                     74  main.f90
fpm                0000000000404952  Unknown               Unknown  Unknown
libc-2.17.so       00007F9C0A173555  __libc_start_main     Unknown  Unknown
fpm                0000000000404869  Unknown               Unknown  Unknown

Is this a bug or I am doing something wrong? Any help is appreciated.

1 Like

From version 0.9 minpack is a meta-package.

Just go with

´´´
[dependencies]
minpack=*
´´´

1 Like

@mskocic is right: with 0.9.0, standard metapackages cannot be overridden with git syntax.

We’ve implemented this option and it’s already in trunk, will be available in 0.9.1 when it is released