problems about WPS compiling

All things involving the setup (compiling, NetCDF, etc.) of the WRF Model itself.

problems about WPS compiling

Postby lizixuan » Thu May 31, 2018 8:20 am

I try to compile the WPS in my laptop with Intel compiler ,netcdf-4.1.3, zlib,libpng,jasper,and compiling the wrfv3.9.1.1 successfully.When i compilie the wps v3.9.1 there are some errors as follow:

Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.1.106 Build 20131008
Copyright (C) 1985-2013 Intel Corporation. All rights reserved.

ld: cannot find -lnetcdff
ld: cannot find -lnetcdf
make[1]: [geogrid.exe] 错误 1 (忽略)
Makefile:44: warning: overriding recipe for target `.f.o'
/home/WPS/configure.wps:101: warning: ignoring old recipe for target `.f.o'
Makefile:48: warning: overriding recipe for target `.c.o'
/home/WPS/configure.wps:97: warning: ignoring old recipe for target `.c.o'
ar: 正在创建 libw3.a
Makefile:67: warning: overriding recipe for target `.F.o'
/home/WPS/configure.wps:105: warning: ignoring old recipe for target `.F.o'
Makefile:72: warning: overriding recipe for target `.f.o'
/home/WPS/configure.wps:101: warning: ignoring old recipe for target `.f.o'
Makefile:75: warning: overriding recipe for target `.c.o'
/home/WPS/configure.wps:97: warning: ignoring old recipe for target `.c.o'
ar: 正在创建 libg2_4.a
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:105: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:97: warning: ignoring old recipe for target `.c.o'
ar: 正在创建 libpgu.a
/usr/local/jasper/lib/libjasper.a(jas_stream.o):在函数‘jas_stream_tmpfile’中:
jas_stream.c:(.text+0x65c): 警告:the use of `tmpnam' is dangerous, better use `mkstemp'
scan_input.f90(14): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [NETCDF]
use netcdf
--------^
scan_input.f90(74): error #6404: This name does not have a type, and must have an explicit type. [NF90_NOWRITE]
stat = nf90_open(trim(filename), NF90_NOWRITE, handle % ncid)
-----------------------------------------^
scan_input.f90(74): error #6404: This name does not have a type, and must have an explicit type. [NF90_OPEN]
stat = nf90_open(trim(filename), NF90_NOWRITE, handle % ncid)
---------------^
scan_input.f90(75): error #6404: This name does not have a type, and must have an explicit type. [NF90_NOERR]
if (stat /= NF90_NOERR) then
--------------------^
scan_input.f90(80): error #6632: Keyword arguments are invalid without an explicit interface. [NVARIABLES]
stat = nf90_inquire(handle % ncid, nVariables=handle % num_vars)
-------------------------------------------^
scan_input.f90(80): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE]
stat = nf90_inquire(handle % ncid, nVariables=handle % num_vars)
---------------^
scan_input.f90(97): error #6632: Keyword arguments are invalid without an explicit interface. [UNLIMITEDDIMID]
stat = nf90_inquire(handle % ncid, unlimitedDimId=handle % unlimited_dimid)
-------------------------------------------^
scan_input.f90(104): error #6632: Keyword arguments are invalid without an explicit interface. [LEN]
stat = nf90_inquire_dimension(handle % ncid, handle % unlimited_dimid, len=nRecords)
-----------------------------------------------------------------------------------^
scan_input.f90(104): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_DIMENSION]
stat = nf90_inquire_dimension(handle % ncid, handle % unlimited_dimid, len=nRecords)
-------------------^
scan_input.f90(132): error #6404: This name does not have a type, and must have an explicit type. [NF90_CLOSE]
stat = nf90_close(handle % ncid)
---------------^
scan_input.f90(178): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % name, &
-------------------------------------^
scan_input.f90(179): error #6632: Keyword arguments are invalid without an explicit interface. [XTYPE]
xtype=field % xtype, &
-------------------------------------^
scan_input.f90(180): error #6632: Keyword arguments are invalid without an explicit interface. [NDIMS]
ndims=field % ndims)
-------------------------------------^
scan_input.f90(177): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_VARIABLE]
stat = nf90_inquire_variable(handle % ncid, field % varid, &
---------------^
scan_input.f90(186): error #6404: This name does not have a type, and must have an explicit type. [NF90_FLOAT]
if (field % xtype == NF90_FLOAT) then
-----------------------------^
scan_input.f90(188): error #6404: This name does not have a type, and must have an explicit type. [NF90_DOUBLE]
else if (field % xtype == NF90_DOUBLE) then
----------------------------------^
scan_input.f90(190): error #6404: This name does not have a type, and must have an explicit type. [NF90_INT]
else if (field % xtype == NF90_INT) then
----------------------------------^
scan_input.f90(192): error #6404: This name does not have a type, and must have an explicit type. [NF90_CHAR]
else if (field % xtype == NF90_CHAR) then
----------------------------------^
scan_input.f90(201): error #6632: Keyword arguments are invalid without an explicit interface. [DIMIDS]
dimids=field % dimids)
-------------------------------------^
scan_input.f90(213): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % dimnames(idim), &
------------------------------------------^
scan_input.f90(214): error #6632: Keyword arguments are invalid without an explicit interface. [LEN]
len=field % dimlens(idim))
------------------------------------------^
scan_input.f90(212): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_DIMENSION]
stat = nf90_inquire_dimension(handle % ncid, field % dimids(idim), &
-------------------^
scan_input.f90(239): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQ_VARID]
stat = nf90_inq_varid(handle % ncid, trim(fieldname), field % varid)
---------------^
scan_input.f90(246): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % name, &
-------------------------------------^
scan_input.f90(247): error #6632: Keyword arguments are invalid without an explicit interface. [XTYPE]
xtype=field % xtype, &
-------------------------------------^
scan_input.f90(248): error #6632: Keyword arguments are invalid without an explicit interface. [NDIMS]
ndims=field % ndims)
-------------------------------------^
scan_input.f90(245): error #6404: This name does not have a type, and must have an explicit type. [NF90_INQUIRE_VARIABLE]
stat = nf90_inquire_variable(handle % ncid, field % varid, &
---------------^
scan_input.f90(269): error #6632: Keyword arguments are invalid without an explicit interface. [DIMIDS]
dimids=field % dimids)
-------------------------------------^
scan_input.f90(281): error #6632: Keyword arguments are invalid without an explicit interface. [NAME]
name=field % dimnames(idim), &
------------------------------------------^
scan_input.f90(282): error #6632: Keyword arguments are invalid without an explicit interface. [LEN]
len=field % dimlens(idim))
------------------------------------------^
scan_input.f90(608): catastrophic error: Too many errors, exiting
compilation aborted for scan_input.f90 (code 1)
make[1]: [scan_input.o] 错误 1 (忽略)
mpas_mesh.f90(14): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SCAN_INPUT]
use scan_input
--------^
mpas_mesh.f90(48): error #6457: This derived type name has not been declared. [INPUT_HANDLE_TYPE]
type (input_handle_type) :: handle
--------------^
mpas_mesh.f90(49): error #6457: This derived type name has not been declared. [INPUT_FIELD_TYPE]
type (input_field_type) :: field
--------------^
mpas_mesh.f90(53): error #6404: This name does not have a type, and must have an explicit type. [HANDLE]
if (scan_input_open(mesh_filename, handle) /= 0) then
-------------------------------------------^
mpas_mesh.f90(53): error #6404: This name does not have a type, and must have an explicit type. [SCAN_INPUT_OPEN]
if (scan_input_open(mesh_filename, handle) /= 0) then
------------^
mpas_mesh.f90(61): error #6404: This name does not have a type, and must have an explicit type. [FIELD]
if (scan_input_for_field(handle, 'nEdgesOnCell', field) /= 0) then
---------------------------------------------------------^
mpas_mesh.f90(61): error #6404: This name does not have a type, and must have an explicit type. [SCAN_INPUT_FOR_FIELD]
if (scan_input_for_field(handle, 'nEdgesOnCell', field) /= 0) then
------------^
mpas_mesh.f90(66): error #6460: This is not a field name that is defined in the encompassing structure. [DIMLENS]
mesh % nCells = field % dimlens(1)
--------------------------------^
mpas_mesh.f90(70): error #6404: This name does not have a type, and must have an explicit type. [SCAN_INPUT_READ_FIELD]
stat = scan_input_read_field(field)
---------------^
mpas_mesh.f90(72): error #6460: This is not a field name that is defined in the encompassing structure. [ARRAY1I]
mesh % nEdgesOnCell(:) = field % array1i(:)
-----------------------------------------^
mpas_mesh.f90(73): error #6404: This name does not have a type, and must have an explicit type. [SCAN_INPUT_FREE_FIELD]
stat = scan_input_free_field(field)
---------------^
mpas_mesh.f90(81): error #6514: A substring must be of type CHARACTER. [ARRAY1I]
mesh % landmask(:) = field % array1i(:)
-----------------------------------------^
mpas_mesh.f90(81): error #6303: The assignment operation or the binary expression operation is invalid for the data types of the two operands. [ARRAY1I]
mesh % landmask(:) = field % array1i(:)
-----------------------------------------^
mpas_mesh.f90(100): error #6460: This is not a field name that is defined in the encompassing structure. [ARRAY2I]
mesh % cellsOnCell(:,:) = field % array2i(:,:)
------------------------------------------^
mpas_mesh.f90(113): error #6911: The syntax of this substring is invalid. [ARRAY2I]
mesh % verticesOnCell(:,:) = field % array2i(:,:)
---------------------------------------------^
compilation aborted for mpas_mesh.f90 (code 1)
make[1]: [mpas_mesh.o] 错误 1 (忽略)
remapper.f90(14): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPAS_MESH]
use mpas_mesh
--------^
remapper.f90(15): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SCAN_INPUT]
use scan_input, only : input_field_type, FIELD_TYPE_REAL, FIELD_TYPE_DOUBLE, FIELD_TYPE_INTEGER
--------^
remapper.f90(98): error #6457: This derived type name has not been declared. [MPAS_MESH_TYPE]
type (mpas_mesh_type), intent(in), target :: src_mesh
--------------^
remapper.f90(354): error #6406: Conflicting attributes or multiple declaration of name. [INPUT_FIELD_TYPE]
type (input_field_type), intent(in) :: field
--------------^
remapper.f90(395): error #6406: Conflicting attributes or multiple declaration of name. [INPUT_FIELD_TYPE]
type (input_field_type), intent(in) :: src_field
--------------^
remapper.f90(433): error #6406: Conflicting attributes or multiple declaration of name. [INPUT_FIELD_TYPE]
type (input_field_type), intent(in) :: src_field
--------------^
remapper.f90(15): error #6580: Name in only-list does not exist. [INPUT_FIELD_TYPE]
use scan_input, only : input_field_type, FIELD_TYPE_REAL, FIELD_TYPE_DOUBLE, FIELD_TYPE_INTEGER
---------------------------^
remapper.f90(15): error #6580: Name in only-list does not exist. [FIELD_TYPE_REAL]
use scan_input, only : input_field_type, FIELD_TYPE_REAL, FIELD_TYPE_DOUBLE, FIELD_TYPE_INTEGER
---------------------------------------------^
remapper.f90(15): error #6580: Name in only-list does not exist. [FIELD_TYPE_DOUBLE]
use scan_input, only : input_field_type, FIELD_TYPE_REAL, FIELD_TYPE_DOUBLE, FIELD_TYPE_INTEGER
--------------------------------------------------------------^
remapper.f90(15): error #6580: Name in only-list does not exist. [FIELD_TYPE_INTEGER]
use scan_input, only : input_field_type, FIELD_TYPE_REAL, FIELD_TYPE_DOUBLE, FIELD_TYPE_INTEGER
---------------------------------------------------------------------------------^
remapper.f90(32): error #6457: This derived type name has not been declared. [MPAS_MESH_TYPE]
type (mpas_mesh_type), pointer :: src_mesh
--------------^
remapper.f90(114): error #6404: This name does not have a type, and must have an explicit type. [SRC_MESH]
remap_info % src_mesh => src_mesh
---------------------------------^
remapper.f90(114): error #6796: The variable must have the TARGET attribute or be a subobject of an object with the TARGET attribute, or it must have the POINTER attribute. [SRC_MESH]
remap_info % src_mesh => src_mesh
---------------------------------^
remapper.f90(130): error #6460: This is not a field name that is defined in the encompassing structure. [NCELLS]
src_mesh % nCells, src_mesh % maxEdges, &
------------------------------------------^
remapper.f90(130): error #6460: This is not a field name that is defined in the encompassing structure. [MAXEDGES]
src_mesh % nCells, src_mesh % maxEdges, &
-------------------------------------------------------------^
remapper.f90(131): error #6460: This is not a field name that is defined in the encompassing structure. [NEDGESONCELL]
src_mesh % nEdgesOnCell, src_mesh % cellsOnCell, src_mesh % latCell, src_mesh % lonCell)
------------------------------------------^
remapper.f90(131): error #6460: This is not a field name that is defined in the encompassing structure. [CELLSONCELL]
src_mesh % nEdgesOnCell, src_mesh % cellsOnCell, src_mesh % latCell, src_mesh % lonCell)
-------------------------------------------------------------------^
remapper.f90(131): error #6460: This is not a field name that is defined in the encompassing structure. [LATCELL]
src_mesh % nEdgesOnCell, src_mesh % cellsOnCell, src_mesh % latCell, src_mesh % lonCell)
-------------------------------------------------------------------------------------------^
remapper.f90(131): error #6460: This is not a field name that is defined in the encompassing structure. [LONCELL]
src_mesh % nEdgesOnCell, src_mesh % cellsOnCell, src_mesh % latCell, src_mesh % lonCell)
---------------------------------------------------------------------------------------------------------------^
remapper.f90(129): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [NEDGESONCELL]
idx = nearest_cell(dst_mesh % lats(index2d(irank,ix),iy), dst_mesh % lons(ix,index2d(irank,iy)), idx, &
------------------^
remapper.f90(129): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [CELLSONCELL]
idx = nearest_cell(dst_mesh % lats(index2d(irank,ix),iy), dst_mesh % lons(ix,index2d(irank,iy)), idx, &
------------------^
remapper.f90(129): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [LATCELL]
idx = nearest_cell(dst_mesh % lats(index2d(irank,ix),iy), dst_mesh % lons(ix,index2d(irank,iy)), idx, &
------------------^
remapper.f90(129): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [LONCELL]
idx = nearest_cell(dst_mesh % lats(index2d(irank,ix),iy), dst_mesh % lons(ix,index2d(irank,iy)), idx, &
------------------^
remapper.f90(140): error #6460: This is not a field name that is defined in the encompassing structure. [NVERTICES]
src_mesh % nCells, src_mesh % nVertices, src_mesh % maxEdges, 3, &
---------------------------------------------------------------^
remapper.f90(141): error #6460: This is not a field name that is defined in the encompassing structure. [VERTICESONCELL]
src_mesh % nEdgesOnCell, src_mesh % verticesOnCell, &
---------------------------------------------------------------------^
remapper.f90(142): error #6460: This is not a field name that is defined in the encompassing structure. [CELLSONVERTEX]
src_mesh % cellsOnVertex, src_mesh % latCell, src_mesh % lonCell, &
--------------------------------------------^
remapper.f90(143): error #6460: This is not a field name that is defined in the encompassing structure. [LATVERTEX]
src_mesh % latVertex, src_mesh % lonVertex )
--------------------------------------------^
remapper.f90(143): error #6460: This is not a field name that is defined in the encompassing structure. [LONVERTEX]
src_mesh % latVertex, src_mesh % lonVertex )
------------------------------------------------------------------^
remapper.f90(139): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [NEDGESONCELL]
idx = nearest_vertex(dst_mesh % lats(index2d(irank,ix),iy), dst_mesh % lons(ix,index2d(irank,iy)), idx, &
------------------^
remapper.f90(139): error #8284: If the actual argument is scalar, the dummy argument shall be scalar unless the actual argument is of type character or is an element of an array that is not assumed shape, pointer, or polymorphic. [VERTICESONCELL]
idx = nearest_vertex(dst_mesh % lats(index2d(irank,ix),iy), dst_mesh % lons(ix,index2d(irank,iy)), idx, &
------------------^
remapper.f90(1309): catastrophic error: Too many errors, exiting
compilation aborted for remapper.f90 (code 1)
make[1]: [remapper.o] 错误 1 (忽略)
process_domain_module.f90(14): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPAS_MESH]
use mpas_mesh
-------^
process_domain_module.f90(16): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [REMAPPER]
use remapper
-------^
process_domain_module.f90(18): error #6457: This derived type name has not been declared. [MPAS_MESH_TYPE]
type (mpas_mesh_type), save :: mpas_source_mesh
---------^
process_domain_module.f90(20): error #6457: This derived type name has not been declared. [REMAP_INFO_TYPE]
type (remap_info_type), save :: remap_info_m, remap_info_u, remap_info_v
---------^
process_domain_module.f90(1492): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SCAN_INPUT]
use scan_input
----------^
process_domain_module.f90(1493): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPAS_MESH]
use mpas_mesh
----------^
process_domain_module.f90(1526): error #6457: This derived type name has not been declared. [INPUT_HANDLE_TYPE]
type (input_handle_type) :: mpas_handle
------------^
process_domain_module.f90(1527): error #6457: This derived type name has not been declared. [INPUT_FIELD_TYPE]
type (input_field_type) :: mpas_field
------------^
process_domain_module.f90(1528): error #6457: This derived type name has not been declared. [TARGET_FIELD_TYPE]
type (target_field_type) :: wrf_field
------------^
process_domain_module.f90(1982): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [SCAN_INPUT]
use scan_input
----------^
process_domain_module.f90(1983): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [MPAS_MESH]
use mpas_mesh
----------^
process_domain_module.f90(207): error #6404: This name does not have a type, and must have an explicit type. [MPAS_SOURCE_MESH]
istatus = mpas_mesh_free(mpas_source_mesh)
-------------------------------^
process_domain_module.f90(207): error #6404: This name does not have a type, and must have an explicit type. [MPAS_MESH_FREE]
istatus = mpas_mesh_free(mpas_source_mesh)
----------------^
process_domain_module.f90(219): error #6404: This name does not have a type, and must have an explicit type. [REMAP_INFO_M]
istatus = remap_info_free(remap_info_m)
--------------------------------^
process_domain_module.f90(219): error #6404: This name does not have a type, and must have an explicit type. [REMAP_INFO_FREE]
istatus = remap_info_free(remap_info_m)
----------------^
process_domain_module.f90(220): error #6404: This name does not have a type, and must have an explicit type. [REMAP_INFO_U]
istatus = remap_info_free(remap_info_u)
--------------------------------^
process_domain_module.f90(221): error #6404: This name does not have a type, and must have an explicit type. [REMAP_INFO_V]
istatus = remap_info_free(remap_info_v)
--------------------------------^
process_domain_module.f90(1542): error #6460: This is not a field name that is defined in the encompassing structure. [VALID]
if (.not. mpas_source_mesh % valid) then
-----------------------------------^
process_domain_module.f90(1543): error #6404: This name does not have a type, and must have an explicit type. [MPAS_MESH_SETUP]
if (mpas_mesh_setup(mpas_filename, mpas_source_mesh) /= 0) then
-------------^
process_domain_module.f90(1562): error #6404: This name does not have a type, and must have an explicit type. [REMAP_INFO_SETUP]
if (remap_info_setup(mpas_source_mesh, wrf_target_mesh_m, remap_info_m) /= 0) then
-------------^
process_domain_module.f90(1606): error #6404: This name does not have a type, and must have an explicit type. [MPAS_HANDLE]
if (scan_input_open(mpas_filename, mpas_handle, nRecords) /= 0) then
-----------------------------------------^
process_domain_module.f90(1606): error #6404: This name does not have a type, and must have an explicit type. [SCAN_INPUT_OPEN]
if (scan_input_open(mpas_filename, mpas_handle, nRecords) /= 0) then
----------^
process_domain_module.f90(1648): error #6404: This name does not have a type, and must have an explicit type. [MPAS_FIELD]
do while (scan_input_next_field(mpas_handle, mpas_field) == 0)
---------------------------------------------------^
process_domain_module.f90(1648): error #6404: This name does not have a type, and must have an explicit type. [SCAN_INPUT_NEXT_FIELD]
do while (scan_input_next_field(mpas_handle, mpas_field) == 0)
----------------^
process_domain_module.f90(1650): error #6404: This name does not have a type, and must have an explicit type. [CAN_REMAP_FIELD]
if (can_remap_field(mpas_field)) then
-------------^
process_domain_module.f90(1650): error #6341: A logical data type is required in this context. [CAN_REMAP_FIELD]
if (can_remap_field(mpas_field)) then
-------------^
process_domain_module.f90(1655): error #6460: This is not a field name that is defined in the encompassing structure. [NAME]
if (trim(mpas_field % name) == 'u10') then
----------------------------------^
process_domain_module.f90(1655): error #6362: The data types of the argument(s) are invalid. [TRIM]
if (trim(mpas_field % name) == 'u10') then
---------------------^
process_domain_module.f90(1657): error #6362: The data types of the argument(s) are invalid. [TRIM]
else if (trim(mpas_field % name) == 'v10') then
--------------------------^
process_domain_module.f90(1659): error #6362: The data types of the argument(s) are invalid. [TRIM]
else if (trim(mpas_field % name) == 'q2') then
--------------------------^
process_domain_module.f90(3731): catastrophic error: Too many errors, exiting
compilation aborted for process_domain_module.f90 (code 1)
make[1]: [process_domain_module.o] 错误 1 (忽略)
metgrid.f90(23): error #7002: Error in opening the compiled module file. Check INCLUDE paths. [PROCESS_DOMAIN_MODULE]
use process_domain_module
-------^
compilation aborted for metgrid.f90 (code 1)
make[1]: [metgrid.o] 错误 1 (忽略)
ifort: error #10236: File not found: 'metgrid.o'
ifort: error #10236: File not found: 'process_domain_module.o'
ifort: error #10236: File not found: 'scan_input.o'
ifort: error #10236: File not found: 'mpas_mesh.o'
ifort: error #10236: File not found: 'remapper.o'
make[1]: [metgrid.exe] 错误 1 (忽略)
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:105: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:97: warning: ignoring old recipe for target `.c.o'
Makefile:90: warning: overriding recipe for target `.F.o'
../../configure.wps:105: warning: ignoring old recipe for target `.F.o'
Makefile:95: warning: overriding recipe for target `.c.o'
../../configure.wps:97: warning: ignoring old recipe for target `.c.o'
/usr/local/jasper/lib/libjasper.a(jas_stream.o):在函数‘jas_stream_tmpfile’中:
jas_stream.c:(.text+0x65c): 警告:the use of `tmpnam' is dangerous, better use `mkstemp'
calc_ecmwf_p.f90(66): remark #8290: Recommended relationship between field width 'W' and the number of fractional digits 'D' in this edit descriptor is 'W>=D+3'.
write(6,'(i5,5x,f12.6,2x,f12.10)') nlvl, a(i), b(i)
-----------------------------------^
int2nc.f90(21): error #5102: Cannot open include file 'netcdf.inc'
include "netcdf.inc"
----------^
int2nc.f90(79): error #6404: This name does not have a type, and must have an explicit type. [NF_CREATE]
call check(nf_create(trim(nfile),nf_clobber,ncid))
--------------^
int2nc.f90(93): error #6404: This name does not have a type, and must have an explicit type. [NF_DEF_DIM]
call check(nf_def_dim(ncid,dname(i),dval(i),i))
--------------------------^
int2nc.f90(114): error #6404: This name does not have a type, and must have an explicit type. [NF_CLOSE]
call check(nf_close(ncid))
--------------^
int2nc.f90(117): error #6404: This name does not have a type, and must have an explicit type. [NF_OPEN]
call check(nf_open(trim(nfile),nf_write,ncid))
--------------^
int2nc.f90(205): error #6404: This name does not have a type, and must have an explicit type. [NF_REDEF]
call check(nf_redef(ncid))
--------------------^
int2nc.f90(206): error #6404: This name does not have a type, and must have an explicit type. [NF_DEF_VAR]
call check(nf_def_var(ncid,name,NF_REAL,NDIMS,dimids,varid))
--------------------^
int2nc.f90(207): error #6404: This name does not have a type, and must have an explicit type. [NF_PUT_ATT_TEXT]
call check(nf_put_att_text(ncid,varid,DATEV,132,date))
--------------------^
int2nc.f90(208): error #6404: This name does not have a type, and must have an explicit type. [NF_PUT_ATT_REAL]
call check(nf_put_att_real(ncid,varid,FCSTV,nf_float,1,fcst))
--------------------^
int2nc.f90(213): error #6404: This name does not have a type, and must have an explicit type. [NF_PUT_ATT_INT]
call check(nf_put_att_int (ncid,varid,LEVELV,nf_int,1,ablevel))
--------------------^
int2nc.f90(268): error #6404: This name does not have a type, and must have an explicit type. [NF_ENDDEF]
call check(nf_enddef(ncid))
--------------------^
int2nc.f90(269): error #6404: This name does not have a type, and must have an explicit type. [NF_PUT_VAR_REAL]
call check(nf_put_var_real(ncid,varid,data))
--------------------^
int2nc.f90(287): error #6404: This name does not have a type, and must have an explicit type. [NF_NOERR]
if(status /= nf_noerr) then
-----------------^
int2nc.f90(288): error #6404: This name does not have a type, and must have an explicit type. [NF_STRERROR]
print *, trim(nf_strerror(status))
--------------------^
int2nc.f90(288): error #6362: The data types of the argument(s) are invalid. [TRIM]
print *, trim(nf_strerror(status))
--------------------^
compilation aborted for int2nc.f90 (code 1)
make[1]: [int2nc.o] 错误 1 (忽略)
ifort: error #10236: File not found: 'int2nc.o'
make[1]: [int2nc.exe] 错误 1 (忽略)


and my environment is as follow:


# .bashrc

# User specific aliases and functions

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'

# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi


#set for intel compiler
source /opt/intel/bin/compilervars.sh intel64

#set fot NCL
export NCARG_ROOT=/usr/local/ncl
export PATH=$NCARG_ROOT/bin:$PATH

#set for zlib
export zlibhome=/usr/local/zlib
export LD_LIBRARY_PATH=$zlibhome/lib:$LD_LIBRARY_PATH
export MANPATH=$zlibhome/share/man:$MANPATH
export C_INCLUDE_PATH=$zlibhome/include:$C_INCLUDE_PATH


#set for hdf5
export hdfhome=/usr/local/hdf5
export PATH=$hdfhome/bin:$PATH
export LD_LIBRARY_PATH=$hdfhome/lib:$LD_LIBRARY_PATH
export MANPATH=$hdfhome/share/man:$MANPATH
#export INCLUDE=$hdfhome/include:$INCLUDE
export C_INCLUDE_PATH=$hdfhome/include:$C_INCLUDE_PATH


####pre install for netcdf
export CC=icc
export CXX=icpc
export CFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CXXFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export F77=ifort
export FC=ifort
export F90=ifort
export FFLAGS='-O3 -xHost -ip -no-prec-div -static-intel'
export CPP='icc -E'
export CXXCPP='icpc -E'

#and enviroment for netcdf
export netcdfhome=/usr/local/netcdf
export PATH=$netcdfhome/bin:$PATH
export LD_LIBRARY_PATH=$netcdfhome/lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=$netcdfhome/lib:$DYLD_LIBRARY_PATH
export MANPATH=$netcdfhome/share/man:$MANPATH
#export C_INCLUDE_PATH=$netcdfhome/include:$C_INCLUDE_PATH
export NETCDF_INC=$netcdfhome/include
#export NETCDF_LIB=$netcdfhome/lib
#export NETCDF=$netcdfhome



# --- GRIB-Tools
#grib_tools=/usr/local/grib_tools
#
# --- grib2
#wgrib2_path=${grib_tools}/grib2
#PATH=$PATH:${wgrib2_path}/wgrib2
#export wgrib2_path
# --- UPP
#JASPERLIB=${wgrib2_path}/lib
#JASPERINC=${wgrib2_path}/include
#WRF_DIR=/home/WRFV3
#export JASPERLIB JASPERINC WRF_DIR
#
# --- cdo
#cdo_path=${grib_tools}/cdo
#PATH=$PATH:${cdo_path}/bin
#export cdo_path
#
# --- cnvrgib
#cnvgrib_path=${grib_tools}/cnvgrib-1.4.1
#PATH=$PATH:${cnvgrib_path}
#export cnvgrib_path
#
# --- bin_collect
#bin_col=${grib_tools}/bin_collect
#PATH=$PATH:${bin_col}
#export bin_col


#set for jasper
export jasperhome=/usr/local/jasper
export PATH=$jasperhome/bin:$PATH
export LD_LIBRARY_PATH=$jasperhome/lib:$LD_LIBRARY_PATH
export MANPATH=$jasperhome/man:$MANPATH
#export INCLUDE=$hdfhome/include:$INCLUDE
export C_INCLUDE_PATH=$jasperhome/include:$C_INCLUDE_PATH


#set for libpng
export libpnghome=/usr/local/libpng
export PATH=$libpnghome/bin:$PATH
export LD_LIBRARY_PATH=$libpnghome/lib:$LD_LIBRARY_PATH
export MANPATH=$libpnghome/share/man:$MANPATH
#export INCLUDE=$libpnghome/include:$INCLUDE
export C_INCLUDE_PATH=$libpnghome/include:$C_INCLUDE_PATH
lizixuan
 
Posts: 1
Joined: Thu May 31, 2018 8:16 am

Return to Installation

Who is online

Users browsing this forum: No registered users and 8 guests

cron