To reproduce:
I change the compiler and netcdf paths in the makefile:
Code: Select all
>> diff makefile path/to/original/makefile
142c142
< FORT ?= gfortran
---
> FORT ?= pgi
312,313c312,313
< NETCDF_MODFILE := ../../include/netcdf.mod
< TYPESIZES_MODFILE := ../../include/typesizes.mod
---
> NETCDF_MODFILE := netcdf.mod
> TYPESIZES_MODFILE := typesizes.mod
When I run “make”, there is an infinite loop
Code: Select all
makefile:239: INCLUDING FILE /home/stefan/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE
DEFINITIONS
cp -f /usr/local/include/../../include/netcdf.mod Build
cp -f /usr/local/include/../../include/typesizes.mod Build
./ROMS/Bin/sfmakedepend …. > Build/MakeDepend
cp -p /home/stefan/make_macros.mk Build
makefile:235: INCLUDING FILE Build/make_macros.mk WHICH CONTAINS APPLICATION-DEPENDENT MAKE DEFINIT
IONS
cp -f /usr/local/include/../../include/netcdf.mod Build
…
Code: Select all
$(SFMAKEDEPEND) $(MDEPFLAGS) $(sources) > $(SCRATCH_DIR)/MakeDepend
Code: Select all
$(SCRATCH_DIR)/MakeDepend
Code: Select all
make depend
Code: Select all
make
Using GNU Make 4.2.1, GNU bash 4.3.46 on
Linux 4.7.4-1-ARCH x86_64 GNU/Linux
Thanks for your help, Stefan