FVCOM安装

在FVCOM安装过程中,make时发现mod_prec.f90编译报错,出现如下的问题

#报错
ake: 放弃循环依赖 mod_prec.o <- mod_prec.o 。
make: 放弃循环依赖 mod_prec.o <- mod_prec.o 。
make: 放弃循环依赖 mod_prec.o <- mod_prec.o 。
/usr/bin/cpp -P -C -traditional -DIFORT -P -C -traditional -DWET_DRY -DLIMITED_NO -DGCN -DHEATING_CALCULATED -DOLD_PETSC mod_prec.F > mod_prec.f90
ifort -c -O0 -g -I/home/rzf/下载/FVCOM3.2/FVCOM_source/libs/install/include mod_prec.f90
mod_prec.f90(1): error #5082: Syntax error, found ‘/’ when expecting one of: ; BLOCK BLOCKDATA PROGRAM MODULE TYPE INTEGER REAL …
/* Copyright © 1991-2014 Free Software Foundation, Inc.
^
mod_prec.f90(16): error #5145: Invalid blank/tab
http://www.gnu.org/licenses/. /
----------------------------------^
mod_prec.f90(20): error #5145: Invalid blank/tab
include it implicitly at the start of every compilation. It must
-----------------------------------------------------------^
mod_prec.f90(27): error #5120: Unterminated character constant
/
glibc’s intent is to support the IEC 559 math functionality, real
--------^
mod_prec.f90(27): error #5144: Invalid character_kind_parameter. No underscore
/* glibc’s intent is to support the IEC 559 math functionality, real
--------------------------------------------------------------------^
mod_prec.f90(28): error #5145: Invalid blank/tab
and complex. If the GCC (4.9 and later) predefined macros
---------------^
mod_prec.f90(30): error #5277: Syntax error, found ‘,’ following statement keyword
whether the overall intent is to support these features; otherwise,
----------------------------------------------------------------------^
mod_prec.f90(32): error #5145: Invalid blank/tab
define these macros by default. /
----------------------------------^
mod_prec.f90(36): error #5143: Missing mandatory separating blank
/
wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
mod_prec.f90(37): error #5145: Invalid blank/tab
Unicode 6.0. /
---------------^
mod_prec.f90(39): error #5145: Invalid blank/tab
/
We do not support C11 . */
-------------------------------------^
mod_prec.f90(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for mod_prec.f90 (code 1)
make: *** [mod_prec.o] 错误 1

解决方法:
修改make.in文件,在-traditional后面加-ffreestanding

PREPROCESSOR OPTIONS FOR CPP
DEF_FLAGS = -P -C -traditional -ffreestanding
============================================================================================

你可能感兴趣的:(安装)