Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/fortran/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Fortran编译错误:目标';的makefile recipe/lib/libSPheno.a(数学o)和#x27;失败_Makefile_Fortran_Makefile Errors - Fatal编程技术网

Fortran编译错误:目标';的makefile recipe/lib/libSPheno.a(数学o)和#x27;失败

Fortran编译错误:目标';的makefile recipe/lib/libSPheno.a(数学o)和#x27;失败,makefile,fortran,makefile-errors,Makefile,Fortran,Makefile Errors,我正在使用一个包,并在src文件夹中修改了一个SPheno4.F90文件。当我尝试在src中使用make编译时 make: Warning: Archive '../lib/libSPheno.a' seems to have been created in deterministic mode. 'Control.o' will always be updated. Please consider passing the U flag to ar to avoid the problem.

我正在使用一个包,并在src文件夹中修改了一个SPheno4.F90文件。当我尝试在src中使用make编译时

make: Warning: Archive '../lib/libSPheno.a' seems to have been 
created in deterministic mode. 'Control.o' will always be updated. 
Please consider passing the U flag to ar to avoid the problem.
Control.F90
make: Control.F90: Command not found
Makefile:86: recipe for target '../lib/libSPheno.a(Control.o)' failed
make: *** [../lib/libSPheno.a(Control.o)] Error 127
在makefile中

InDir = ../include
Mdir = ${InDir}
name = ../lib/libSPheno.a

ifeq (${F90},gfortran)
comp = -c -O -J${Mdir} -I${InDir}
LFlagsB = -O  
endif

.SUFFIXES : .o .ps .f90 .F90 .a
bin/SPheno: ${name} SPheno4.o
${F90} -o SPheno ${LFlagsB} SPheno4.o ../lib/${name}
mv SPheno ../bin
${name}: ${name}(Control.o)  ${name}(Mathematics.o)  ${name}(RGEs.o)\

.f90.a:
${F90}${comp}$<
ar-ruc$@$*.o
rm-f$*.o
。。。 在../lib文件夹中,只有一个文件libSPheno.a

我完全不知道这个错误。
事实上,我不理解这个makefile中的每一行,因此也欢迎对这种调试提出任何建议。

。。。那么.F90文件的规则呢?哦,我刚刚通过更改编译器选项解决了这个问题。在makefile中。以什么方式更改选项。.f90和.f90文件(最后一个要由C/Cpp预处理器预处理的文件)之间通常存在差异。啊。。我在OP.I修改了.f90文件中输入了一个错误,我刚刚添加了f90=gfortran
.f90.a:
${F90} ${comp} $<
ar -ruc $@ $*.o
rm -f $*.o