Error during ARWPost compiling

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

Error during ARWPost compiling

Postby krishnaap7@gmail.com » Tue Nov 21, 2017 6:38 am

Hi,
I was trying to install ARWPost V3 on my laptop. I am using Ubuntu 15.04, netcdf 3.6.3 and gfortran.
While compiling it showing the following errors
Code: Select all
**** Compiling ARWpost ****
 
/bin/rm -f module_get_file_names.o module_get_file_names.mod
/lib/cpp -C -P -traditional -DIO_NETCDF -DIO_GRIB1 -DIO_BINARY -DRECL4  -Dbytesw  module_get_file_names.F90 > module_get_file_names.f
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4  -I/usr/local/netcdf-3.6.3/include -c module_get_file_names.f
module_get_file_names.f:1.1:

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

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

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

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

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

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

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

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

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

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

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


Code: Select all
/* 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.
../configure.arwp:68: recipe for target 'module_get_file_names.o' failed
make: [module_get_file_names.o] Error 1 (ignored)
/bin/rm -f module_get_file_names.f
/bin/rm -f gridinfo_module.o gridinfo_module.mod
/bin/cp gridinfo_module.f90 gridinfo_module.f
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4  -I/usr/local/netcdf-3.6.3/include -c gridinfo_module.f
gridinfo_module.f:12.7:

   USE module_get_file_names
       1
Fatal Error: Can't open module file 'module_get_file_names.mod' for reading at (1): No such file or directory
../configure.arwp:62: recipe for target 'gridinfo_module.o' failed
make: [gridinfo_module.o] Error 1 (ignored)
/bin/rm -f gridinfo_module.f
/bin/rm -f input_module.o input_module.mod
/bin/cp input_module.f90 input_module.f
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4  -I/usr/local/netcdf-3.6.3/include -c input_module.f
input_module.f:3.7:

   USE gridinfo_module
       1
Fatal Error: Can't open module file 'gridinfo_module.mod' for reading at (1): No such file or directory
../configure.arwp:62: recipe for target 'input_module.o' failed
make: [input_module.o] Error 1 (ignored)
/bin/rm -f input_module.f
/bin/rm -f module_arrays.o module_arrays.mod
/bin/cp module_arrays.f90 module_arrays.f
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4  -I/usr/local/netcdf-3.6.3/include -c module_arrays.f
module_arrays.f:75.6:

Code: Select all
Fatal Error: Can't open module file 'gridinfo_module.mod' for reading at (1): No such file or directory
../configure.arwp:62: recipe for target 'ARWpost.o' failed
make: [ARWpost.o] Error 1 (ignored)
/bin/rm -f ARWpost.f
gfortran -ffree-form -O -fno-second-underscore -fconvert=big-endian -frecord-marker=4   -o ARWpost.exe module_model_basics.o constants_module.o gridinfo_module.o ARWpost.o input_module.o output_module.o module_map_utils.o misc_definitions_module.o module_date_pack.o module_debug.o process_domain_module.o module_get_file_names.o module_interp.o module_basic_arrays.o module_diagnostics.o module_arrays.o module_pressure.o module_calc_height.o module_calc_pressure.o module_calc_theta.o module_calc_tk.o module_calc_tc.o module_calc_td.o module_calc_td2.o module_calc_rh.o module_calc_rh2.o module_calc_uvmet.o module_calc_slp.o module_calc_dbz.o module_calc_cape.o module_calc_wdir.o module_calc_wspd.o module_calc_clfr.o  \
   -L/usr/local/netcdf-3.6.3/lib -lnetcdf -lnetcdff -I/usr/local/netcdf-3.6.3/include -lnetcdf -lnetcdff
gfortran: error: gridinfo_module.o: No such file or directory
gfortran: error: ARWpost.o: No such file or directory
gfortran: error: input_module.o: No such file or directory
gfortran: error: output_module.o: No such file or directory
gfortran: error: process_domain_module.o: No such file or directory
gfortran: error: module_get_file_names.o: No such file or directory
gfortran: error: module_interp.o: No such file or directory
gfortran: error: module_basic_arrays.o: No such file or directory
gfortran: error: module_diagnostics.o: No such file or directory
gfortran: error: module_arrays.o: No such file or directory
Makefile:18: recipe for target 'ARWpost.exe' failed
make: [ARWpost.exe] Error 1 (ignored)

Someone could help me on this?
Krishnakumar AP
Banaras Hindu University
krishnaap7@gmail.com
 
Posts: 4
Joined: Sun Nov 12, 2017 3:23 am

Re: Error during ARWPost compiling

Postby kwthomas » Tue Nov 21, 2017 4:44 pm

Hi...

In your configuration file, change the defintion of CPP to be:

CPP=/lib/cpp -P -nostdinc

If your version of CPP is in a different location, keep that path.

If this doesn't work, check the man page for "cpp". You need options that do not give you the
C style GNU comment lines.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 208
Joined: Thu Aug 07, 2008 6:53 pm

Re: Error during ARWPost compiling

Postby krishnaap7@gmail.com » Wed Nov 22, 2017 10:38 am

kwthomas wrote:Hi...

In your configuration file, change the defintion of CPP to be:

CPP=/lib/cpp -P -nostdinc

If your version of CPP is in a different location, keep that path.

If this doesn't work, check the man page for "cpp". You need options that do not give you the
C style GNU comment lines.


Editing configure.arwp failed with CPP=/lib/cpp -P -nostdinc . I tried which cpp in terminal which give /usr/bin/cpp ,that also didn't worked. I didn't understand about man page cpp, could you tell me more?
Thanks in advance
Krishnakumar AP
Banaras Hindu University
krishnaap7@gmail.com
 
Posts: 4
Joined: Sun Nov 12, 2017 3:23 am

Re: Error during ARWPost compiling

Postby kwthomas » Wed Nov 22, 2017 7:04 pm

Hi...

You must have an older system that doesn't work the same as others.

Here is what I had to do a while back.

o Make directory $HOME/include. Don't put any files there.

o Set the environmental variable CPATH to "$CPATH\:$HOME/include".
It should have a default definition on your system. Note the \:, this is to prevent syntax
error problems.

Try again and see what happens. I don't remember if I'm doing this right.
Kevin W. Thomas
Center for Analysis and Prediction of Storms
University of Oklahoma
kwthomas
 
Posts: 208
Joined: Thu Aug 07, 2008 6:53 pm


Return to Installation

Who is online

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