[NeXus-code-tickets] [NeXusCode] #168: nexus-42.rc4 including f90 modules with SUN's compiler

NeXus Data Format Library and Applications noreply at nexusformat.org
Fri Feb 27 21:28:50 GMT 2009


#168: nexus-42.rc4 including f90 modules with SUN's compiler
-------------------------+--------------------------------------------------
 Reporter:  Pete Jemian  |       Owner:  Unassigned       
     Type:  defect       |      Status:  new              
 Priority:  major        |   Milestone:  NeXus 4.2 Release
Component:  napi         |     Version:  trunk            
 Keywords:               |  
-------------------------+--------------------------------------------------
 Sun's compiler (SUNWspro/bin/f90, same as f95) uses the {{{-M}}} compiler
 switch rather than {{{-I}}} to indicate module directory paths.  Note the
 manual correction in the excerpt below.

 {{{
 f90 -I../bindings/f90
 -I/home/oxygen/JEMIAN/dev/src/nexus-4.2rc4/bindings/f90 -c NXdump.f90

    use NXmodule
        ^
 "NXdump.f90", Line = 35, Column = 8: ERROR: "NXMODULE" is specified as the
 module name on a USE statement, but the compiler cannot find it.

    type(NXhandle) :: file_id
         ^
 "NXdump.f90", Line = 37, Column = 9: ERROR: Derived type "NXHANDLE" is
 used, but it does not have any components defined for it.

       integer :: status, type, rank, dimensions(NX_MAXRANK)
                                                 ^
 "NXdump.f90", Line = 52, Column = 49: ERROR: Local variable "NX_MAXRANK"
 must be a dummy argument or in common to be used in a bounds specification
 expression.

 f90comp: 82 SOURCE LINES
 f90comp: 3 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
 make[1]: *** [NXdump.o] Error 1
 make[1]: Leaving directory
 `/home/oxygen18/JEMIAN/dev/src/nexus-4.2rc4/applications'
 make: *** [all-recursive] Error 1
 [jemian at elmo,774,applications]$ f90 -M../bindings/f90
 -M/home/oxygen/JEMIAN/dev/src/nexus-4.2rc4/bindings/f90 -c NXdump.f90
 [jemian at elmo,775,applications]$
 }}}

-- 
Ticket URL: <http://trac.nexusformat.org/code/ticket/168>
NeXus Data Format Library and Applications <http://www.nexusformat.org/>
NeXus Data Format Library and Applications



More information about the NeXus-code-tickets mailing list