Skip to content

Commit d654b26

Browse files
authored
Merge pull request #656 from Carltoffel/patch-1
Add hint for building error with make
2 parents fb4ca80 + f70ef3b commit d654b26

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,12 @@ You can also specify the compiler and compiler-flags by setting the ``FC`` and `
188188
make -f Makefile.manual ADD_FYPPFLAGS=-DMAXRANK=4 FC=gfortran FFLAGS="-O3"
189189
```
190190

191+
On some systems, ``make`` selects the wrong default compiler. If you encounter error messages like ``make[1]: f77: No such file or directory`` set ``FC`` to your preferred compiler (e.g., ``gfortran``) or try
192+
193+
```sh
194+
make -f Makefile.manual --no-builtin-variables
195+
```
196+
191197
### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm)
192198

193199
Fortran Package Manager (fpm) is a package manager and build system for Fortran.

0 commit comments

Comments
 (0)