This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [m3user] Issues on installing CMAQ5.0 :unrecognized command line option "-finit-character=32"
- From: Tom Roche <Tom_Roche at pobox dot com>,
- To: m3user at listserv dot unc dot edu,
- Cc: fortran at gcc dot gnu dot org,
- Date: Sat, 23 Jun 2012 16:38:52 -0400
- Subject: Re: [m3user] Issues on installing CMAQ5.0 :unrecognized command line option "-finit-character=32"
- References: <LYRIS-24886807-31705056-2012.06.23-14.22.58--tom_roche#pobox.com@listserv.unc.edu> <LYRIS-42101171-31604775-2012.06.04-01.52.19--yaoxianh#mtu.edu@listserv.unc.edu>
- Reply-to: m3user at listserv dot unc dot edu,
Yaoxian Huang Sat, 23 Jun 2012 14:22:48 -0400
> I also met the exact same problem
...
>> After netCDF,I/O API 3.1 and MPICH has been installed, I tried to
>> compile the main CMAQ5.0 by excuting './bldit.bldmake' in
>> $M3HOME/scripts/build directory, but something was wrong:
>> gfortran -c -ffixed-form -ffixed-line-length-132 -O3 -funroll-loops
>> -finit-character=32 cfg_module.F
>> cc1: error:unrecognized command line option "-finit-character=32"
>> end
...
>> Platform : RH5.5 AS 32bit
>> Required Software:
>> 1. cvs: preshipped.
>> 2. gfortran: preshiped.
>> 3. gcc: preshipped.
I suspect you have a downlevel gfortran. Note that
http://www.cmaq-model.org/cmaqwiki/index.php?title=CMAQ_version_5.0_%28February_2010_release%29_OGD#Known_Issues_in_CMAQ_version_5.0
> When compiling with Gnu Fortran (gfortran), you must use version 4.2
> or greater
You can dis/prove my hypothesis by running
$ gfortran --version
If correct, how to fix? One way is to upgrade your RHEL (the current
version==6), but that may be outside your control. If so, I suspect
the fine folks on the gfortran list can suggest the best version of
GCC to install on RHEL 5.5.
HTH, Tom Roche <Tom_Roche@pobox.com>