NERSC Cray Compilation Fail
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=
------
and 'make' leads to
------
alecpw@
make all-recursive
make[1]: Entering directory '/global/
Making all in src
make[2]: Entering directory '/global/
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
/bin/sh ../libtool --tag=FC --mode=compile ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
libtool: compile: ftn -DHAVE_CONFIG_H -I. -I.. -I/global/
module iso_varying_string
^
ftn-855 crayftn: ERROR ISO_VARYING_STRING, File = iso_varying_
The compiler has detected errors in module "ISO_VARYING_
character(
^
ftn-355 crayftn: WARNING CHAR_AUTO, File = iso_varying_
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_
No specific match can be found for the generic subprogram call "LEN".
Cray Fortran : Version 9.1.0 (20191016203550
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_
make[2]: Leaving directory '/global/
make[1]: *** [Makefile:546: all-recursive] Error 1
make[1]: Leaving directory '/global/
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
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