Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

[SOLVED] Compile WRF 3.5.1 on Unbutu 16.04.5

This post was from a previous version of the WRF&MPAS-A Support Forum. New replies have been disabled and if you have follow up questions related to this post, then please start a new thread from the forum home page.

Fangzhou

New member
I got these errors while compiling....

Code:
Error: Invalid character in name at (1)
io_grib_share.f90:2:3:

    This file is part of the GNU C Library.
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:4:3:

    The GNU C Library is free software; you can redistribute it and/or
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:4:39:

    The GNU C Library is free software; you can redistribute it and/or
                                       1
Error: Unclassifiable statement at (1)
io_grib_share.f90:5:3:

    modify it under the terms of the GNU Lesser General Public
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:6:3:

    License as published by the Free Software Foundation; either
   1
Error: Unclassifiable statement at (1)
io_grib_share.f90:6:57:

    License as published by the Free Software Foundation; either
                                                         1
Error: Unclassifiable statement at (1)
io_grib_share.f90:7:3:

    version 2.1 of the License, or (at your option) any later version.
   1

And these...

Code:
make[4]: [io_grib1.o] Error 1 (ignored)
gcc  -I. -I./MEL_grib1 -Igrib1_util -I../io_grib_share -I../ -w -O3 -c -DLANDREAD_STUB -DDM_PARALLEL -DMAX_HISTORY=25   -c trim.c
ar ru ./libio_grib1.a grib1_routines.o gribmap.o io_grib1.o trim.o
ar: `u' modifier ignored since `D' is the default (see `U')
ar: io_grib1.o: No such file or directory
../io_grib_share/build/library_rules.mk:106: recipe for target 'thisdir_archive' failed
make[4]: [thisdir_archive] Error 1 (ignored)
makefile:32: recipe for target 'module_internal_header_util.o' failed
make[3]: [module_internal_header_util.o] Error 1 (ignored)

Anyone knows what happened?? I have the compile log file attached. Thanks in advance :)
 

Attachments

  • compile.log
    688.9 KB · Views: 51
Hi,
Can you take a look at this previous post and see if this helps your problem?
http://forum.mmm.ucar.edu/phpBB3/viewtopic.php?f=37&t=218
Thanks!
 
I added "-cpp" on line 120 and line 121 of the configure.wrf file.

And on line 194 from
Code:
LIB_EXTERNAL = /
-L$(WRF_SRC_ROOT_DIR)/external/io -lwrfio_nf -L/usr/lib  -lnetcdf

to

Code:
LIB_EXTERNAL = /
-L$(WRF_SRC_ROOT_DIR)/external/io -lwrfio_nf -L/usr/lib  -lnetcdf -lnetcdff

And I compiled again.

I attached my configrue.wrf file here.
 

Attachments

  • configure.wrf
    19.8 KB · Views: 73
kwerner said:
Hi,
Can you take a look at this previous post and see if this helps your problem?
http://forum.mmm.ucar.edu/phpBB3/viewtopic.php?f=37&t=218
Thanks!

Thanks for the help! But my problem is solved in other way. I did not download the edited version because I am installing WRF-FIRE.
 
Top