NERSC Cray Compilation Fail

Bug #1867475 reported by Alec Wills
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libPSML
New
Undecided
Unassigned

Bug Description

Hello,
When compiling with the Cray Fortran 9.0.0 or 9.1.0 on the NERSC cluster, an error occurs.

The configuration is generated with

------
./configure CXX=CC CC=cc FC=ftn --prefix=/global/homes/a/alecpw/progs/libpsml-1.1.8/haswell --enable-shared=no --with-xmlf90=/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell
------

and 'make' leads to

------
alecpw@cori12:~/progs/libpsml-1.1.8> make
make all-recursive
make[1]: Entering directory '/global/u1/a/alecpw/progs/libpsml-1.1.8'
Making all in src
make[2]: Entering directory '/global/u1/a/alecpw/progs/libpsml-1.1.8/src'
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c -o assoc_list.lo assoc_list.F90
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c assoc_list.F90 -o assoc_list.o
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c -o class_grid.lo class_grid.F90
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c class_grid.F90 -o class_grid.o
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c -o external_interfaces.lo external_interfaces.F90
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c external_interfaces.F90 -o external_interfaces.o
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c -o iso_varying_string.lo iso_varying_string.F90
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -g -O2 -I/global/homes/a/alecpw/progs/xmlf90-1.5.4/haswell/include -c iso_varying_string.F90 -o iso_varying_string.o

module iso_varying_string
       ^
ftn-855 crayftn: ERROR ISO_VARYING_STRING, File = iso_varying_string.F90, Line = 42, Column = 8
  The compiler has detected errors in module "ISO_VARYING_STRING". No module information file will be created for this module.

    character(LEN=len(string)) :: char_string
                  ^
ftn-355 crayftn: WARNING CHAR_AUTO, File = iso_varying_string.F90, Line = 770, Column = 19
  Generic interface "LEN" is referenced in a declarative expression in a [sub]module. Specific "LEN_" must be completely specified prior to being referenced.
                  ^
ftn-389 crayftn: ERROR CHAR_AUTO, File = iso_varying_string.F90, Line = 770, Column = 19
  No specific match can be found for the generic subprogram call "LEN".

Cray Fortran : Version 9.1.0 (20191016203550_ead188cfa2ec260732a812302b9f99cc778ac7a3)
Cray Fortran : Compile time: 0.0384 seconds
Cray Fortran : 2453 source lines
Cray Fortran : 2 errors, 1 warnings, 0 other messages, 0 ansi
Cray Fortran : "explain ftn-message number" gives more information about each message.
make[2]: *** [Makefile:743: iso_varying_string.lo] Error 1
make[2]: Leaving directory '/global/u1/a/alecpw/progs/libpsml-1.1.8/src'
make[1]: *** [Makefile:546: all-recursive] Error 1
make[1]: Leaving directory '/global/u1/a/alecpw/progs/libpsml-1.1.8'
make: *** [Makefile:430: all] Error 2
------

Using GNU compilers for the library doesn't yield any errors, but as the NERSC cluster is a Cray system, ideally I'd like to be able to compile everything with Cray compilers. Perhaps there is a fundamental disagreement between the compiler and the format of the code, but the Cray Fortran docs aren't very illuminating in that regard.

Best,
Alec

Revision history for this message
Alberto Garcia (albertog) wrote :

Dear Alec,

Sorry to be so late, but things are a bit hectic around here.

Note first that I have moved this issue to Gitlab:

    https://gitlab.com/siesta-project/libraries/libpsml/-/issues/2

(The bugs and questions interfaces in Launchpad will go away soon)

Second, I have released libpsml-1.1.10 in Gitlab:

    https://gitlab.com/siesta-project/libraries/libpsml/-/releases

This version removes the dependency on iso_varying_string (using instead allocatable character variables), so your problem might
have gone away...

I would be grateful if you could check this new version with your compilers.

 Best regards,

 Alberto

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.