This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [m3user] Issues on installing CMAQ5.0 :unrecognized command line option "-finit-character=32"


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>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]