- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
All,
Thanks in advance for looking at this thread.
I am not a FORTRAN developer but know a little about the build process. The FORTRAN code I am compiling (WRF model) has errors associated with the first characters on a line:
wrf_io.f(41): error #5149: Illegal character in statement label field
integer , parameter :: FATAL = 1
--^
wrf_io.f(41): error #5149: Illegal character in statement label field
integer , parameter :: FATAL = 1
---^
wrf_io.f(41): error #5149: Illegal character in statement label field
integer , parameter :: FATAL = 1
These errors are generated from this code:
module wrf_data
integer , parameter :: FATAL = 1
integer , parameter :: WARN = 1
How is the compiler configured to allow such constructions? I am running the Intel ifort compiler v 11.0 on a 64 bit Intel Mac running OS 10.5.
Thanks,
Jeff
Thanks in advance for looking at this thread.
I am not a FORTRAN developer but know a little about the build process. The FORTRAN code I am compiling (WRF model) has errors associated with the first characters on a line:
wrf_io.f(41): error #5149: Illegal character in statement label field
integer , parameter :: FATAL = 1
--^
wrf_io.f(41): error #5149: Illegal character in statement label field
integer , parameter :: FATAL = 1
---^
wrf_io.f(41): error #5149: Illegal character in statement label field
integer , parameter :: FATAL = 1
These errors are generated from this code:
module wrf_data
integer , parameter :: FATAL = 1
integer , parameter :: WARN = 1
How is the compiler configured to allow such constructions? I am running the Intel ifort compiler v 11.0 on a 64 bit Intel Mac running OS 10.5.
Thanks,
Jeff
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
These specific errors suggest the source file wrf_io.f contains free format source (starting in column 1) at line 41 but it is named with a .f file extension which instructs the compiler to compile the source according to fixed format rules.
The other possibility is that the file really contains fixed format source and the statement on line 41was added incorrectly starting in column 1 thru 5 when itmust start in column 7.
If the statements were added incorrectly, then add white space to move them over to start in column 7.
If the file really contains free format source, then you can try adding the -free compiler option. Ifthatoption is applied to all sourcefiles that follow fixed format rules then that could cause errors for source that violates free format rules.
You might also be interested in the following Knowledge Base article on building WRF with Intel Compilers here:
http://software.intel.com/en-us/articles/performance-tools-for-software-developers-building-wrf-with-the-intel-compilers/

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page