[SOLVED] Missing Separator WPP compilation error

Questions relating to the use of the WRF Post Processor V3

[SOLVED] Missing Separator WPP compilation error

Postby wintermute » Thu May 16, 2013 9:28 am

Hi all!

I'm having a puzzling issue in compiling WPP: each time I try to compile I receive a "missing separator" error:

Code: Select all
**** Compiling WPS and all utilities ****
 
../configure.wps:1: *** missing separator.  Stop.
/home/modelstation/Software/WRF/WPS/configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.
/home/modelstation/Software/WRF/WPS/configure.wps:1: *** missing separator.  Stop.
/home/modelstation/Software/WRF/WPS/configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.
../configure.wps:1: *** missing separator.  Stop.


I don't understand what's causing it:

- I've compiled WRF-CHEM in dmpar mode (and I've configured WPP to use the same compiler and dmpar)
- I've did the compilation of WRF-CHEM in a tcsh shell
- In the configure.wps of WPP a line indicates that the compiler should use a bash/sh shell, but changing this line to bash/tcsh or trying to compile in a bash/sh environment generates the same "missing separator error".

Here is my configure.wps file:

Code: Select all
# configure.wps
#
# 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, the preamble, and the postamble -
# then rerun configure.
#

.SUFFIXES: .F .f .c .o

SHELL              =       /bin/sh

NCARG_LIBS      =   -L$(NCARG_ROOT)/lib -lncarg -lncarg_gks -lncarg_c \
            -L/usr/X11R6/lib -lX11

NCARG_LIBS2      =   # May be overridden by architecture specific value below

FDEFS         =   -DUSE_JPEG2000 -DUSE_PNG

# Listing of options that are usually independent of machine type.
# When necessary, these are over-ridden by each architecture.

ARFLAGS         =   

PERL         =   perl

RANLIB         =   echo

WRF_DIR         =   /home/modelstation/Software/WRF/WRFV3

WRF_INCLUDE     =       -I$(WRF_DIR)/external/io_netcdf \
                        -I$(WRF_DIR)/external/io_grib_share \
                        -I$(WRF_DIR)/external/io_grib1 \
                        -I$(WRF_DIR)/external/io_int \
                        -I$(WRF_DIR)/inc \
                        -I$(NETCDF)/include

WRF_LIB         =       -L$(WRF_DIR)/external/io_grib1 -lio_grib1 \
                        -L$(WRF_DIR)/external/io_grib_share -lio_grib_share \
                        -L$(WRF_DIR)/external/io_int -lwrfio_int \
                        -L$(WRF_DIR)/external/io_netcdf -lwrfio_nf \
                        -L$(NETCDF)/lib  -lnetcdf

#### Architecture specific settings ####

COMPRESSION_LIBS   =  # intentionally left blank, fill in COMPRESSION_LIBS below

COMPRESSION_INC      =  # intentionally left blank, fill in COMPRESSION_INC below

#
#   Settings for Linux x86_64, PGI compiler   (dmpar)
#
#
COMPRESSION_LIBS    = -L/usr/local/lib -ljasper -lpng -lz
COMPRESSION_INC     = -I/usr/local/include
FDEFS               = -DUSE_JPEG2000 -DUSE_PNG
NCARG_LIBS2         = -L${PGI}/linux86-64/5.2/lib -lpgftnrtl -lpgc \
                      -L/usr/lib64 -lg2c
SFC                 = pgf90
SCC                 = pgcc
DM_FC               = mpif90 -f90=pgf90
DM_CC               = mpicc -cc=pgcc
FC                  = $(DM_FC)
CC                  = $(DM_CC)
LD                  = $(FC)
FFLAGS              = -Mfree -byteswapio -O
F77FLAGS            = -Mfixed -byteswapio -O
FCSUFFIX            =
FNGFLAGS            = $(FFLAGS)
LDFLAGS             =
CFLAGS              = -O
CPP                 = /lib/cpp -C -P -traditional
CPPFLAGS            = -D_UNDERSCORE -DBYTESWAP -DLINUX -DIO_NETCDF -DIO_BINARY -DIO_GRIB1 -DBIT32 -D_MPI
ARFLAGS             =
CC_TOOLS            =

########################################################################################################################
#
#   Macros, these should be generic for all machines

LN      =   ln -sf
MAKE      =   make -i -r
RM      =    /bin/rm -f
CP      =    /bin/cp
AR      =   ar ru

.IGNORE:
.SUFFIXES: .c .f .F .o

#   There is probably no reason to modify these rules

.c.o:
   $(RM) $@
   $(CC) $(CPPFLAGS) $(CFLAGS) -c $<   

.f.o:
   $(RM) $@ $*.mod
   $(FC) $(F77FLAGS) -c $< $(WRF_INCLUDE)

.F.o:
   $(RM) $@ $*.mod
   $(CPP) $(CPPFLAGS) $(FDEFS) $(WRF_INCLUDE) $< > $*.f90
   $(FC) $(FFLAGS) -c $*.f90 $(WRF_INCLUDE)
#   $(RM) $*.f90


I'm really stuck because for my scarce expertise of make-language everything seems ok.

What am I missing?

Best Regards and Thanks!
Last edited by wintermute on Tue May 21, 2013 8:05 am, edited 1 time in total.
wintermute
 
Posts: 29
Joined: Wed Jan 30, 2013 11:48 am

Re: Missing Separator WPP compilation error

Postby wintermute » Tue May 21, 2013 8:04 am

If anyone wants to know: I've been able to solve it. The problem was that Ubuntu opened the .wps file with OpenOffice which, probabily, substituted "hard tabs" with "soft tabs" (i.e.: spaces) and that's what probably created the "missing separator" error. Using gedit or another suitable program should solve the problem.
wintermute
 
Posts: 29
Joined: Wed Jan 30, 2013 11:48 am

Re: [SOLVED] Missing Separator WPP compilation error

Postby SarahR » Tue Jun 07, 2016 7:30 am

Hi

I am a new user to linux and WRF entirely. I am in the compiling process. I am stuck at this exact error as you were at this point. Please can you explain how you managed fix this error.

Sarah
SarahR
 
Posts: 2
Joined: Tue Jun 07, 2016 7:25 am


Return to WRF Post Processor V3

Who is online

Users browsing this forum: No registered users and 1 guest

cron