爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
查看: 4393|回复: 10

编译obsgrid出错

[复制链接]

新浪微博达人勋

发表于 2018-6-16 15:14:33 | 显示全部楼层 |阅读模式

登录后查看更多精彩内容~

您需要 登录 才可以下载或查看,没有帐号?立即注册 新浪微博登陆

x
请教大家,我在编译obsgrid的时候出现了以下错误(太多了,截了一部分),选的是intel编译器,也加载了intel和netcdf环境变量,错误原因看不太懂,也没搜到类似的,烦请大神指点一下,谢谢
/bin/rm -f map_utils_module.o map_utils_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  map_utils_module.F90 > map_utils_module.f
ifort -FR -convert big_endian -c map_utils_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
map_utils_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLCTER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
map_utils_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
map_utils_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
map_utils_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
map_utils_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
map_utils_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
map_utils_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for map_utils_module.f (code 1)
make: [map_utils_module.o] Error 1 (ignored)
/bin/rm -f map_utils_module.f
/bin/rm -f map_utils_helper_module.o map_utils_helper_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  map_utils_helper_module.F90 > map_utils_helper_module.f
ifort -FR -convert big_endian -c map_utils_helper_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
map_utils_helper_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAE CHARACTER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
map_utils_helper_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
map_utils_helper_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
map_utils_helper_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
map_utils_helper_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
map_utils_helper_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
map_utils_helper_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for map_utils_helper_module.f (code 1)
make: [map_utils_helper_module.o] Error 1 (ignored)
/bin/rm -f map_utils_helper_module.f
/bin/rm -f date_pack_module.o date_pack_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  date_pack_module.F90 > date_pack_module.f
ifort -FR -convert big_endian -c date_pack_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
date_pack_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLCTER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
date_pack_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
date_pack_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
date_pack_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
date_pack_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
date_pack_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
date_pack_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for date_pack_module.f (code 1)
make: [date_pack_module.o] Error 1 (ignored)
/bin/rm -f date_pack_module.f
/bin/rm -f small_header_data_module.o small_header_data_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  small_header_data_module.F90 > small_header_data_module.f
ifort -FR -convert big_endian -c small_header_data_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
small_header_data_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER RETE CHARACTER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
small_header_data_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
small_header_data_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
small_header_data_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
small_header_data_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
small_header_data_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
small_header_data_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for small_header_data_module.f (code 1)
make: [small_header_data_module.o] Error 1 (ignored)
/bin/rm -f small_header_data_module.f
/bin/rm -f input_data_module.o input_data_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  input_data_module.F90 > input_data_module.f
ifort -FR -convert big_endian -c input_data_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
input_data_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPACTER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
input_data_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
input_data_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
input_data_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
input_data_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
input_data_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
input_data_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for input_data_module.f (code 1)
make: [input_data_module.o] Error 1 (ignored)
/bin/rm -f input_data_module.f
/bin/rm -f namelist_module.o namelist_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  namelist_module.F90 > namelist_module.f
ifort -FR -convert big_endian -c namelist_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
namelist_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLETER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
namelist_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
namelist_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
namelist_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
namelist_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
namelist_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
namelist_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for namelist_module.f (code 1)
make: [namelist_module.o] Error 1 (ignored)
/bin/rm -f namelist_module.f
/bin/rm -f get_fg_at_point_module.o get_fg_at_point_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  get_fg_at_point_module.F90 > get_fg_at_point_module.f
ifort -FR -convert big_endian -c get_fg_at_point_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
get_fg_at_point_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL CHARACTER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
get_fg_at_point_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
get_fg_at_point_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
get_fg_at_point_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
get_fg_at_point_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
get_fg_at_point_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
get_fg_at_point_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for get_fg_at_point_module.f (code 1)
make: [get_fg_at_point_module.o] Error 1 (ignored)
/bin/rm -f get_fg_at_point_module.f
/bin/rm -f obs_sort_module.o obs_sort_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  obs_sort_module.F90 > obs_sort_module.f
ifort -FR -convert big_endian -c obs_sort_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
obs_sort_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLETER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
obs_sort_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
obs_sort_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
obs_sort_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
obs_sort_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
obs_sort_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
obs_sort_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for obs_sort_module.f (code 1)
make: [obs_sort_module.o] Error 1 (ignored)
/bin/rm -f obs_sort_module.f
/bin/rm -f tinterp_module.o tinterp_module.mod
/lib/cpp  -I. -C -P -DDEC -traditional  tinterp_module.F90 > tinterp_module.f
ifort -FR -convert big_endian -c tinterp_module.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
tinterp_module.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLEXER CLASS DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
tinterp_module.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
tinterp_module.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
tinterp_module.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
tinterp_module.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
tinterp_module.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */
-------------------------------------^
tinterp_module.f(1): catastrophic error: Could not recover from previous syntax error
compilation aborted for tinterp_module.f (code 1)
make: [tinterp_module.o] Error 1 (ignored)
/bin/rm -f tinterp_module.f
/bin/rm -f driver.o driver.mod
/lib/cpp  -I. -C -P -DDEC -traditional  driver.F90 > driver.f
ifort -FR -convert big_endian -c driver.f -I/nuist/p/public/app/netcdf/4.5.0/intel/18.0.0/include
driver.f(1): error #5082: Syntax error, found '/' when expecting one of: <LABEL> <END-OF-STATEMENT> ; TYPE INTEGER REAL COMPLEX BYTE CH DOUBLE ...
/* Copyright (C) 1991-2012 Free Software Foundation, Inc.
^
driver.f(16): error #5145: Invalid blank/tab
   <http://www.gnu.org/licenses/>.  */
----------------------------------^
driver.f(20): error #5145: Invalid blank/tab
   include it implicitly at the start of every compilation.  It must
-----------------------------------------------------------^
driver.f(29): error #5143: Missing mandatory separating blank
/* wchar_t uses ISO/IEC 10646 (2nd ed., published 2011-03-15) /
--------------------------------^
driver.f(30): error #5145: Invalid blank/tab
   Unicode 6.0.  */
---------------^
driver.f(32): error #5145: Invalid blank/tab
/* We do not support C11 <threads.h>.  */


密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-12-25 18:55:10 | 显示全部楼层
wangxs 发表于 2018-12-25 18:32
请问一下我的问题跟你一样,怎么解决啊

configure之后,在configure.oa里,找到开头为CPPFLAGS这一行,删去"-C"选项,再编译就行了
密码修改失败请联系微信:mofangbao
回复 支持 4 反对 0

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2018-6-17 10:52:06 | 显示全部楼层
为什么都没有人回复
密码修改失败请联系微信:mofangbao

新浪微博达人勋

 楼主| 发表于 2018-6-18 10:55:25 | 显示全部楼层
已解决~~~~~~~
密码修改失败请联系微信:mofangbao
回复

使用道具 举报

新浪微博达人勋

发表于 2018-9-11 19:08:33 | 显示全部楼层
请问下是怎么解决的啊!
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2018-12-25 18:32:17 | 显示全部楼层
请问一下我的问题跟你一样,怎么解决啊
密码修改失败请联系微信:mofangbao

新浪微博达人勋

发表于 2019-4-22 19:23:55 | 显示全部楼层
请问在哪里下载OBSGRID
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-5-5 16:21:00 | 显示全部楼层
wangxs 发表于 2018-12-25 18:32
请问一下我的问题跟你一样,怎么解决啊

请问你的问题解决了吗
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-11-26 15:14:10 | 显示全部楼层
jstzysq 发表于 2018-12-25 18:55
configure之后,在configure.oa里,找到开头为CPPFLAGS这一行,删去"-C"选项,再编译就行了

大神说的对,我改了之后编译通过了,不知道是什么原因?
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-5-23 10:01:10 | 显示全部楼层
jstzysq 发表于 2018-12-25 18:55
configure之后,在configure.oa里,找到开头为CPPFLAGS这一行,删去"-C"选项,再编译就行了

非常感谢,问题已解决
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表