Open cbontoiu opened 4 years ago
Hi @cbontoiu,
thank you for the report! Yes, it looks like there is no Fortran compiler set in your Spack compiler configuration.
If you have a gfortran
installed via your package manager, you can try to auto-detect it alongside your gcc
/g++
with spack compiler find
.
Then please check the compilers.yaml
configuration file contains the entry via spack config edit compilers
(usually located at ~/.spack/linux/compilers.yaml
).
If you fear the file might be outdated or you want to start over, just remove or empty the content of the compilers.yaml
file and run spack compiler find
again.
After updating the compilers.yaml
you can spack install
the package.
As an alternative: We do indeed not use the Fortran bindings of ADIOS2, but Spack builds with +fortran
variants by default. You can specifically deselect those via spack install openpmd-api %gcc@7.5.0 ^adios2 -fortran
.
You can even tell Spack that you don't want Fortran variants of any package unless explicitly requested. For that, do spack config edit packages
and add this section:
# inside this section:
packages:
# ...
# don't ask for +fortran by default unless really needed
all:
variants: ~fortran
Does this help?
Hello,
I am using
picongpu
inSpack
and I want to install theopenpmd-api
inSpack
as well. The commandspack install openpmd-api %gcc@7.5.0
led to the following output/problem during installIt seems that I need to use a
Fortran
compiler different thangfortran
but I don't know how to do it. What would you recommend?System environment