Spack Install: No Fortran Compiler Found (ADIOS2)
- Dominant language
- C++
- Stars
- 161
- Forks
- 59
- Avg merge
- 2d 22h
- Merged PRs (30d)
- 7
Description
Hello,
I am using ```picongpu``` in ```Spack``` and I want to install the ```openpmd-api``` in ```Spack``` as well.
The command ```spack install openpmd-api %gcc@7.5.0``` led to the following output/problem during install
```
2 errors found in build log:
22 -- Found PNG: /home/cristi/src/spack/opt/spack/linux-linuxmint20-westmere/gcc-7.5.0/libpng-1.6.37-cwt2jptxfzgjm4dpvdwgrk6dvcvr346f/lib/libpng.so (
found suitable version "1.6.37", minimum required is "1.6.0")
23 -- The Fortran compiler identification is unknown
24 -- Detecting Fortran compiler ABI info
25 -- Detecting Fortran compiler ABI info - failed
26 -- Check for working Fortran compiler: /home/cristi/src/spack/lib/spack/env/gcc/gfortran
27 -- Check for working Fortran compiler: /home/cristi/src/spack/lib/spack/env/gcc/gfortran - broken
>> 28 CMake Error at /home/cristi/src/spack/opt/spack/linux-linuxmint20-westmere/gcc-7.5.0/cmake-3.18.4-nm4b7uesbgjagvkk4yxe7kcvys2s5ulb/share/cmake-3.1
8/Modules/CMakeTestFortranCompiler.cmake:51 (message):
29 The Fortran compiler
30
31 "/home/cristi/src/spack/lib/spack/env/gcc/gfortran"
32
33 is not able to compile a simple test program.
34
...
38
39 Run Build Command(s):/usr/bin/make cmTC_3db5c/fast && /usr/bin/make -f CMakeFiles/cmTC_3db5c.dir/build.make CMakeFiles/cmTC_3db5c.dir/build
40 make[1]: Entering directory '/tmp/cristi/spack-stage/spack-stage-adios2-2.6.0-xcilvhayz74rp2zqolhqo4k7iynhhymq/spack-build-xcilvha/CMakeFiles/
CMakeTmp'
41 Building Fortran object CMakeFiles/cmTC_3db5c.dir/testFortranCompiler.f.o
42 /home/cristi/src/spack/lib/spack/env/gcc/gfortran -c /tmp/cristi/spack-stage/spack-stage-adios2-2.6.0-xcilvhayz74rp2zqolhqo4k7iynhhymq/spac
k-build-xcilvha/CMakeFiles/CMakeTmp/testFortranCompiler.f -o CMakeFiles/cmTC_3db5c.dir/testFortranCompiler.f.o
43 ERROR: Compiler 'gcc@7.5.0' does not support compiling Fortran 90 programs.
>> 44 make[1]: *** [CMakeFiles/cmTC_3db5c.dir/build.make:85: CMakeFiles/cmTC_3db5c.dir/testFortranCompiler.f.o] Error 1
45 make[1]: Leaving directory '/tmp/cristi/spack-stage/spack-stage-adios2-2.6.0-xcilvhayz74rp2zqolhqo4k7iynhhymq/spack-build-xcilvha/CMakeFiles/C
MakeTmp'
46 make: *** [Makefile:140: cmTC_3db5c/fast] Error 2
```
It seems that I need to use a ```Fortran``` compiler different than ```gfortran``` but I don't know how to do it. What would you recommend?
**System environment**
- operating system: Linux Mint 20
- machine: local computer
- name and version of Python implementation: python3.8.6 inside Spack
Contributor guide
Assessment
This issue has not been assessed yet.