Error compile UPPV2.2 - module sfcio_module

Questions relating to the use of the WRF Post Processor V3

Error compile UPPV2.2 - module sfcio_module

Postby apextreme » Thu Jul 31, 2014 2:50 am

Hello.
I have the problem with compiling unipost 2.2.
My sistem is Ubuntu 12.04 LTS x64:

Linux apextreme 3.11.0-26-generic #45~precise1-Ubuntu SMP Tue Jul 15 04:02:35 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

The compiler is:

Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.3.174 Build 20140422
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 14.0.3.174 Build 20140422
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
FOR NON-COMMERCIAL USE ONLY

I compiled WRF and WPS whitout problems, and run both without problem too.
Attach the compile log with errors...and configure.upp:

compile.upp.log:
===== Making all in /home/forecast/WRF/UPPV2.2/src/lib/sfcio =====
make[2]: se ingresa al directorio «/home/forecast/WRF/UPPV2.2/src/lib/sfcio»
makefile:45: atención: se imponen comandos para el objetivo «.f.o»
../../../configure.upp:126: atención: se ignoran las instrucciones viejas para el objetivo «.f.o»
mpif90 -f90=ifort -fp-model precise -ftz -assume byterecl -convert big_endian -heap-arrays -DCOMMCODE -DLINUX -DUPPLITTLEENDIAN -O3 -c -I/home/forecast/WRF/UPPV2.2/include sfcio_module.f
ifort: command line warning #10212: -fp-model precise evaluates in source precision with Fortran.
sfcio_module.f(2): error #5149: Illegal character in statement label field [m]
module sfcio_module
^
sfcio_module.f(2): error #5149: Illegal character in statement label field [o]
module sfcio_module


configure.upp:
# configure.upp
#
# This file was automatically generated by the configure script in the
# top level directory. You may make changes to the settings in this
# file but be aware they will be overwritten each time you run configure.
# Ordinarily, it is necessary to run configure once, when the code is
# first installed.
#
# To permanently change options, change the settings for your platform
# in the file arch/configure.defaults then rerun configure.
#

SHELL = /bin/sh

LDFLAGS_MPI = # to be overridden later

#### Architecture specific settings ####


WRF_LIB_EXTRA = -L$(WRF_DIR)/external/RSL_LITE -lrsl_lite

# Settings for Linux x86_64, Intel compiler (dmpar)#
SFC = ifort
SF90 = ifort $(FORMAT_FREE)
SCC = icc

DM_FC = mpif90 -f90=$(SFC)
DM_F90 = mpif90 $(FREE_FORMAT) -f90=$(SFC)
DM_CC = mpicc -cc=$(SCC)

FC = $(DM_FC)
F90 = $(DM_F90)
CC = $(DM_CC)
CPP = /lib/cpp

LINUX_OBJ =
BYTE_ORDER = UPPLITTLEENDIAN
SIZE_I8R8 = -r8 -i8
SIZE_I4R8 = -r8 -i4
SIZE_I4R4 = -r4 -i4
SIZE =

PPDEFINE = -DCOMMCODE -DLINUX -D$(BYTE_ORDER)
FPPDEFINE = $(PPDEFINE)

FDEBUG = -O0 -g -traceback -check all -ftrapuv -fpe0
CRTMDBUG= -O0 -g -traceback -check all -ftrapuv -fpe0
CDEBUG = -O0 -g -traceback -debug all -Wall -check-uninit

FOPT = -O3
CRTMOPT = -O3
COPT = -O3

CPP_FLAGS = -C -P $(FPPDEFINE)
INC_FLAGS =
LDFLAGS = -Wl,-noinhibit-exec
FFLAGS = -fp-model precise -ftz -assume byterecl -convert big_endian \
-heap-arrays $(SIZE) $(FPPDEFINE) $(FOPT)
CFLAGS = $(PPDEFINE) $(COPT)
ARFLAGS =

FFLAGS_CRTM = -c -fp-model precise -ftz -assume byterecl -convert big_endian \
$(SIZE) $(FOPT)
#FFLAGS_CRTM = -c -checkbound -convert big_endian -e03 -free -assume byterecl -fp-stack-check -mieee-fp
FL_CRTM =

###########################################################
#
# Macros, these should be generic for all machines
LN = ln -sf
MAKE = make
RM = /bin/rm -f
CP = /bin/cp
MV = /bin/mv
AR = ar ru

WRF_DIR = /home/forecast/WRF/WRFV3
WRF_LIB2 =
NETCDFPATH = /home/forecast/netcdf
NETCDFLIBS = -lnetcdf

COMMS_ADD_OBJ =
COMMS_ADD_OBJST =
COMMS_LIB =

SERIAL_MPI_STUB =
SERIAL_MPI_LIB =

GRIB2SUPT_LIB = -L/usr/lib/x86_64-linux-gnu -lpng -lz -ljasper
GRIB2SUPT_INC = -I/usr/include/jasper

BINDIR = /home/forecast/WRF/UPPV2.2/bin
INCMOD = /home/forecast/WRF/UPPV2.2/include
LIBDIR = /home/forecast/WRF/UPPV2.2/lib

WRF_INCLUDE = -I$(WRF_DIR)/frame

WRF_LIB = -L$(WRF_DIR)/main -lwrflib \
-L$(WRF_DIR)/external/io_int -lwrfio_int \
-L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
-L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
-L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
-L$(WRF_DIR)/external/esmf_time_f90 -lesmf_time \
-L$(WRF_DIR)/external/fftpack/fftpack5 -lfftpack

WRF_MODS = $(WRF_DIR)/frame/module_internal_header_util.o \
$(WRF_DIR)/frame/pack_utils.o \
$(WRF_DIR)/frame/module_machine.o \
$(WRF_DIR)/frame/module_wrf_error.o \
$(WRF_DIR)/frame/wrf_debug.o

#
# These files may be changed to enable other files with the same
# functions definitions, but different logic. This is typically
# how backward compatibilty is achieved for the community code.
INITPOST_NMM_BIN_MPIIO = INITPOST_NMM_BIN_MPIIO_IJK.f
GRIBIT = GRIBIT.f
CALRAD = CALRAD_WCLOUD_crtm.f

# There is probably no reason to modify these rules
.SUFFIXES : .c .f .f90
.c.o:
$(CC) $(CFLAGS) $(EXTRA_CFLAGS) $<

.f.o:
$(FC) $(FFLAGS) $(EXTRA_FFLAGS) $<

.f90.o :
$(F90) $(FFLAGS) $(EXTRA_FFLAGS) $<

.F.o:
$(CPP) $(CPP_FLAGS) $< > $*.f
$(FC) $(FFLAGS) $(EXTRA_FFLAGS) $<

.F90.o:
$(CPP) $(CPP_FLAGS) $< > $*.f90
$(F90) $(FFLAGS) $(EXTRA_FFLAGS) $<


Please help me!
I dont understand what happens!

Thanks.

apextreme

Posts: 46
Joined: Thu Nov 05, 2009 8:58 am

Top
apextreme
 
Posts: 47
Joined: Thu Nov 05, 2009 9:58 am

Re: Error compile UPPV2.2 - module sfcio_module

Postby Stefano90 » Tue Dec 08, 2015 3:14 pm

Hello, I have the same problem compiling UPP2.2

I have Intel compilers, v 12.1.5
My system is CentOS Linux 7.1.1503

Code: Select all
SHELL              =       /bin/sh

LDFLAGS_MPI             =     # to be overridden later

#### Architecture specific settings ####

# Settings for Linux x86_64, Intel compiler    (serial)#
SFC     = ifort
SF90    = ifort -free
SCC     = icc

DM_FC  = mpif90
DM_F90 = mpif90 -free
DM_CC  = mpicc

FC      = $(SFC)
F90     = $(SF90)
CC      = $(SCC)
CPP     = /lib/cpp

LINUX_OBJ     =
BYTE_ORDER    = UPPLITTLEENDIAN
SIZE_I8R8   = -r8 -i8
SIZE_I4R8   = -r8 -i4
SIZE_I4R4   = -r4 -i4
SIZE        =

PPDEFINE   = -DCOMMCODE -DLINUX -D$(BYTE_ORDER)
FPPDEFINE  = $(PPDEFINE)

FDEBUG  = -O0 -g -traceback -check all -ftrapuv -fpe0
CRTMDBUG= -O0 -g -traceback -check all -ftrapuv -fpe0
CDEBUG  = -O0 -g -traceback -debug all -Wall -check-uninit

FOPT    = -O3
CRTMOPT = -O3
COPT    = -O3

CPP_FLAGS = -traditional-cpp -P $(FPPDEFINE)
INC_FLAGS =
LDFLAGS   = -Wl,-noinhibit-exec
FFLAGS    = -fp-model precise -ftz -assume byterecl -convert big_endian \
            -heap-arrays $(SIZE) $(FPPDEFINE) $(FOPT)
CFLAGS    = $(PPDEFINE) $(COPT)
ARFLAGS   =

FFLAGS_CRTM  = -c -fp-model precise -ftz  -assume byterecl -convert big_endian \
               $(SIZE) $(FOPT)
#FFLAGS_CRTM = -c -checkbound -convert big_endian -e03 -free -assume byterecl -fp-stack-check -mieee-fp
FL_CRTM     =

###########################################################
#
#   Macros, these should be generic for all machines
LN      =   ln -sf
MAKE  =   make
RM      =   /bin/rm -f
CP      =   /bin/cp
MV              =   /bin/mv
AR      =   ar ru

WRF_DIR         =    /home/HWRF/WRFV3.5
WRF_LIB2        =    -L/home/HWRF/WRFV3.5/external/atm_ocn -latm_ocn
NETCDFPATH      =    /home/UPPV2.2/netcdf_links
NETCDFLIBS      =     -lnetcdf

COMMS_ADD_OBJ   =   
COMMS_ADD_OBJST =   
COMMS_LIB       =   

SERIAL_MPI_STUB =    wrfmpi_stubs
SERIAL_MPI_LIB  =    -lmpi

GRIB2SUPT_LIB   =    -L/contrib/jasper/lib -L/opt/freeware/lib -ljasper -lpng -lz
GRIB2SUPT_INC   =    -I/contrib/libpng/include -I/contrib/zlib/include -I/contrib/jasper/include

BINDIR          =    /home/UPPV2.2/bin
INCMOD          =    /home/UPPV2.2/include
LIBDIR          =    /home/UPPV2.2/lib

WRF_INCLUDE     = -I$(WRF_DIR)/frame

WRF_LIB         = -L$(WRF_DIR)/main  -lwrflib \
                  -L$(WRF_DIR)/external/io_int -lwrfio_int \
                  -L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
                  -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
                  -L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
                  -L$(WRF_DIR)/external/esmf_time_f90 -lesmf_time \
                  -L$(WRF_DIR)/external/fftpack/fftpack5 -lfftpack

WRF_MODS        = $(WRF_DIR)/frame/module_internal_header_util.o \
                  $(WRF_DIR)/frame/pack_utils.o \
                  $(WRF_DIR)/frame/module_machine.o \
        $(WRF_DIR)/frame/module_wrf_error.o \
        $(WRF_DIR)/frame/wrf_debug.o

#
# These files may be changed to enable other files with the same
# functions definitions, but different logic.  This is typically
# how backward compatibilty is achieved for the community code.
INITPOST_NMM_BIN_MPIIO = INITPOST_NMM_BIN_MPIIO_IJK.f
GRIBIT = GRIBIT.f
CALRAD = CALRAD_WCLOUD_crtm.f

# There is probably no reason to modify these rules
.SUFFIXES : .c .f .f90
.c.o:
   $(CC) $(CFLAGS) $(EXTRA_CFLAGS)  $<

.f.o:
   $(FC) $(FFLAGS) $(EXTRA_FFLAGS) $<

.f90.o :
   $(F90) $(FFLAGS) $(EXTRA_FFLAGS) $<

.F.o:
   $(CPP) $(CPP_FLAGS) $< > $*.f
   $(FC) $(FFLAGS) $(EXTRA_FFLAGS) $<

.F90.o:
   $(CPP) $(CPP_FLAGS) $< > $*.f90
   $(F90) $(FFLAGS) $(EXTRA_FFLAGS) $<


Error during compilation:
Code: Select all
ifort -fp-model precise -ftz -assume byterecl -convert big_endian -heap-arrays  -DCOMMCODE -DLINUX -DUPPLITTLEENDIAN -O3   ../unipost/kinds_mod.f
../unipost/kinds_mod.f(1): error #5149: Illegal character in statement label field  [M]
MODULE kinds
^
../unipost/kinds_mod.f(1): error #5149: Illegal character in statement label field  [O]
MODULE kinds
-^
../unipost/kinds_mod.f(1): error #5149: Illegal character in statement label field  [D]
MODULE kinds
--^
../unipost/kinds_mod.f(1): error #5149: Illegal character in statement label field  [U]
MODULE kinds
---^
../unipost/kinds_mod.f(1): error #5149: Illegal character in statement label field  [L]
MODULE kinds
----^
../unipost/kinds_mod.f(1): error #5118: First statement in file must not be continued
MODULE kinds
-----^
../unipost/kinds_mod.f(38): error #5149: Illegal character in statement label field  [I]
  IMPLICIT none
--^
../unipost/kinds_mod.f(38): error #5149: Illegal character in statement label field  [M]
  IMPLICIT none
---^
../unipost/kinds_mod.f(38): error #5149: Illegal character in statement label field  [P]
  IMPLICIT none
----^
../unipost/kinds_mod.f(39): error #5149: Illegal character in statement label field  [p]
  private
--^
../unipost/kinds_mod.f(39): error #5149: Illegal character in statement label field  [r]
  private
---^
../unipost/kinds_mod.f(39): error #5149: Illegal character in statement label field  [i]
  private
----^
../unipost/kinds_mod.f(44): error #5149: Illegal character in statement label field  [i]
  integer, parameter, public  :: i_byte  = selected_int_kind(1)      ! byte  integer
--^
../unipost/kinds_mod.f(44): error #5149: Illegal character in statement label field  [n]
  integer, parameter, public  :: i_byte  = selected_int_kind(1)      ! byte  integer
---^
../unipost/kinds_mod.f(44): error #5149: Illegal character in statement label field  [t]
  integer, parameter, public  :: i_byte  = selected_int_kind(1)      ! byte  integer
----^
../unipost/kinds_mod.f(45): error #5149: Illegal character in statement label field  [i]
  integer, parameter, public  :: i_short = selected_int_kind(4)      ! short integer
--^
../unipost/kinds_mod.f(45): error #5149: Illegal character in statement label field  [n]
  integer, parameter, public  :: i_short = selected_int_kind(4)      ! short integer
---^
../unipost/kinds_mod.f(45): error #5149: Illegal character in statement label field  [t]
  integer, parameter, public  :: i_short = selected_int_kind(4)      ! short integer
----^
../unipost/kinds_mod.f(46): error #5149: Illegal character in statement label field  [i]
  integer, parameter, public  :: i_long  = selected_int_kind(8)      ! long  integer
--^
../unipost/kinds_mod.f(46): error #5149: Illegal character in statement label field  [n]
  integer, parameter, public  :: i_long  = selected_int_kind(8)      ! long  integer
---^
../unipost/kinds_mod.f(46): error #5149: Illegal character in statement label field  [t]
  integer, parameter, public  :: i_long  = selected_int_kind(8)      ! long  integer
----^
../unipost/kinds_mod.f(47): error #5149: Illegal character in statement label field  [i]
  integer, parameter, private :: llong_t = selected_int_kind(16)     ! llong integer
--^
../unipost/kinds_mod.f(47): error #5149: Illegal character in statement label field  [n]
  integer, parameter, private :: llong_t = selected_int_kind(16)     ! llong integer
---^
../unipost/kinds_mod.f(47): error #5149: Illegal character in statement label field  [t]
  integer, parameter, private :: llong_t = selected_int_kind(16)     ! llong integer
----^
../unipost/kinds_mod.f(48): error #5149: Illegal character in statement label field  [i]
  integer, parameter, public  :: i_llong = max( llong_t, i_long )
--^
../unipost/kinds_mod.f(48): error #5149: Illegal character in statement label field  [n]
  integer, parameter, public  :: i_llong = max( llong_t, i_long )
---^
../unipost/kinds_mod.f(48): error #5149: Illegal character in statement label field  [t]
  integer, parameter, public  :: i_llong = max( llong_t, i_long )
----^
../unipost/kinds_mod.f(51): error #5149: Illegal character in statement label field  [i]
  integer, parameter, public :: num_bytes_for_i_byte  = 1
--^
../unipost/kinds_mod.f(51): error #5149: Illegal character in statement label field  [n]
  integer, parameter, public :: num_bytes_for_i_byte  = 1
---^
../unipost/kinds_mod.f(51): error #5149: Illegal character in statement label field  [t]
  integer, parameter, public :: num_bytes_for_i_byte  = 1
----^
../unipost/kinds_mod.f(52): catastrophic error: Too many errors, exiting
compilation aborted for ../unipost/kinds_mod.f (code 1)
Stefano90
 
Posts: 1
Joined: Tue Dec 08, 2015 3:00 pm

Re: Error compile UPPV2.2 - module sfcio_module

Postby kolldrome » Tue Feb 02, 2016 10:08 am

check that the directory WRF_DIR point correctly. In my case this was the error
kolldrome
 
Posts: 2
Joined: Wed Jun 10, 2009 3:48 am

Re: Error compile UPPV2.2 - module sfcio_module

Postby lanlandeercy » Mon May 09, 2016 11:28 pm

Thanks!
lanlandeercy
 
Posts: 2
Joined: Wed Aug 12, 2015 3:53 pm


Return to WRF Post Processor V3

Who is online

Users browsing this forum: No registered users and 1 guest

cron