SunOS / f95 / mod_boundary.f90 compilation problem

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
sspagnol
Posts: 7
Joined: Fri Oct 21, 2005 2:42 pm
Location: Australian Institute of Marine Science

SunOS / f95 / mod_boundary.f90 compilation problem

#1 Unread post by sspagnol »

Hi, have problem when I try to compile mod_boundary.f90 from roms-2.2 with latest corrections applied. Compiler output is listed below

f95 -c -u -U -xarch=v9 -O3 mod_boundary.f90

MODULE mod_boundary
^
"mod_boundary.f90", Line = 1, Column = 14: ERROR: The compiler has detected errors in module "mod_boundary". No module information file will be created for this module.

SUBROUTINE initialize_boundary (ng, tile)
^
"mod_boundary.f90", Line = 385, Column = 43: ERROR: IMPLICIT NONE is specified in the host scope, therefore an explicit type must be specified for data object "tile".

integer, intent(in) :: ng, tile
^
"mod_boundary.f90", Line = 403, Column = 34: ERROR: "tile" has the INTENT attribute, therefore it must be a dummy argument.

f90comp: 517 SOURCE LINES
f90comp: 3 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
make: *** [mod_boundary.o] Error 1

> uname -a
SunOS octopod 5.9 Generic_118558-10 sun4u sparc SUNW,Sun-Fire-880
> f95 -V
f95: Sun Fortran 95 8.2 2005/10/13

What is needed to fix this?
Thanks,
Simon.

User avatar
arango
Site Admin
Posts: 1350
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

#2 Unread post by arango »

I don't know what is the problem here. Yes, tile is a dummy variable of INTENT(in). This variable has been declared correctly. I compiled in our old SunOS computer without problems. I wonder if this is a compiler bug :?:

User avatar
kate
Posts: 4088
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

#3 Unread post by kate »

Yes, it is a compiler bug and will go away if you remove the -U compiler option. It has been reported to the vendor (at least for their Linux version of it).

Post Reply