NOAH-MP compilation

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

NOAH-MP compilation

Postby igarousi » Mon Dec 19, 2016 6:46 pm

Hi,

I intended to run the uncoupled mode of Noah-MP version 1.6 (consistent with WRF release 3.6). The Noah-MP code has been downloaded from http://www.jsg.utexas.edu/noah-mp/getting-started/. The "user_build_options" has been eddied to set up compiler, compiler options, and libraries as follows:


# Options for Linux with gfortran
COMPILERF90 = gfortran
FREESOURCE = -ffree-form -ffree-line-length-none
F90FLAGS = -g -fconvert=big-endian -fbounds-check
MODFLAG = -I
LDFLAGS =
CPP = cpp
CPPFLAGS = -C -P -traditional # -D_HRLDAS_URBAN_
LIBS =
LIBJASPER = -ljpeg -L/home/irene/model/Build_WRF/LIBRARIES/grib2/lib -ljasper
INCJASPER = -I/home/irene/model/Build_WRF/LIBRARIES/grib2/include
NETCDFMOD = -I/home/irene/model/Build_WRF/LIBRARIES/netcdf/include
NETCDFLIB = -L/home/irene/model/Build_WRF/LIBRARIES/netcdf/lib -lnetcdf
RM = rm -f
CC = gcc

When using "make" command to compile the code, I got the following errors:

(cd Utility_routines; make)
make[1]: Entering directory '/home/irene/model/noah_mp/HRLDAS-v3.6/Utility_routines'

rm -f module_date_utilities.f
cpp -C -P -traditional -D_HRLDAS_OFFLINE_ module_date_utilities.F > module_date_utilities.f
gfortran -o module_date_utilities.o -c -g -fconvert=big-endian -fbounds-check -ffree-form -ffree-line-length-none module_date_utilities.f
module_date_utilities.f:1.1:

/* Copyright (C) 1991-2016 Free Software Foundation, Inc.
1
Error: Invalid character in name at (1)
module_date_utilities.f:2.3:

This file is part of the GNU C Library.
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:4.3:

The GNU C Library is free software; you can redistribute it and/or
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:4.39:

The GNU C Library is free software; you can redistribute it and/or
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:5.3:

modify it under the terms of the GNU Lesser General Public
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:6.3:

License as published by the Free Software Foundation; either
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:6.57:

License as published by the Free Software Foundation; either
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:7.3:

version 2.1 of the License, or (at your option) any later version.
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:9.3:

The GNU C Library is distributed in the hope that it will be useful,
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:10.3:

but WITHOUT ANY WARRANTY; without even the implied warranty of
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:10.29:

but WITHOUT ANY WARRANTY; without even the implied warranty of
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:11.3:

MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:12.3:

Lesser General Public License for more details.
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:14.3:

You should have received a copy of the GNU Lesser General Public
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:15.3:

License along with the GNU C Library; if not, see
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:15.41:

License along with the GNU C Library; if not, see
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:16.4:

<http://www.gnu.org/licenses/>. */
1
Error: Invalid character in name at (1)
module_date_utilities.f:19.1:

/* This header is separate from features.h so that the compiler can
1
Error: Invalid character in name at (1)
module_date_utilities.f:20.3:

include it implicitly at the start of every compilation. It must
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:21.3:

not itself include <features.h> or any other header that includes
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:22.4:

<features.h> because the implicit include comes before any feature
1
Error: Invalid character in name at (1)
module_date_utilities.f:23.3:

test macros that may be defined in a source file before it first
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:24.3:

explicitly includes a system header. GCC knows the name of this
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:25.3:

header in order to preinclude it. */
1
Error: Unclassifiable statement at (1)
module_date_utilities.f:27.1:

/* glibc's intent is to support the IEC 559 math functionality, real
1
Error: Invalid character in name at (1)
Fatal Error: Error count reached limit of 25.
Makefile:20: recipe for target 'module_date_utilities.o' failed
make[1]: *** [module_date_utilities.o] Error 1
make[1]: Leaving directory '/home/irene/model/noah_mp/HRLDAS-v3.6/Utility_routines'
Makefile:4: recipe for target 'all' failed
make: *** [all] Error 2

Would someone have any idea on what the problem is?

Thanks,
Irene
igarousi
 
Posts: 1
Joined: Sun Jul 17, 2016 5:12 pm

Return to Installation

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron