From f70ef3b2d6bd73df43266a43d249f28af6d9635b Mon Sep 17 00:00:00 2001 From: Carl Date: Fri, 29 Apr 2022 17:52:33 +0200 Subject: [PATCH] Add hint for building error with make --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 3ab9276e8..a43813098 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,12 @@ You can also specify the compiler and compiler-flags by setting the ``FC`` and ` make -f Makefile.manual ADD_FYPPFLAGS=-DMAXRANK=4 FC=gfortran FFLAGS="-O3" ``` +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 + +```sh +make -f Makefile.manual --no-builtin-variables +``` + ### Build with [fortran-lang/fpm](https://github.com/fortran-lang/fpm) Fortran Package Manager (fpm) is a package manager and build system for Fortran.