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

OBSGRID compilation error [Invalid character]

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.


Dear Wrf Community,

I have got a compilation problem when trying to install OBSGRID. After ./configuration, selecting LINUX gfortran, I typed ./compile. It prompted as:

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

This file is part of the GNU C Library.

Full log file is attached. Any one can offer help? Thanks.


  • log.compile
    232.8 KB · Views: 85
After configuration, it will generate a "configure.oa" file. In "configure.oa", you can find a line start with "CPPFLAGS=.....". Just deleting a "-C" option in this line, and then compiling. The "-C" option can yield these invalid characters in codes.