xcompact3d / x3d2

https://xcompact3d.github.io/x3d2
BSD 3-Clause "New" or "Revised" License
3 stars 4 forks source link

Code won't compile under Cray compilers #104

Open pbartholomew08 opened 2 months ago

pbartholomew08 commented 2 months ago

Attempted to build using Cray compilers on ARCHER2 (CCE 15) and after configuring CMake the build failed with

cmake --build build/
Scanning dependencies of target x3d2
[  2%] Building Fortran object src/CMakeFiles/x3d2.dir/common.f90.o
[  5%] Building Fortran object src/CMakeFiles/x3d2.dir/field.f90.o
[  7%] Building Fortran object src/CMakeFiles/x3d2.dir/mesh.f90.o
[ 10%] Building Fortran object src/CMakeFiles/x3d2.dir/allocator.f90.o

ftn-855 ftn: ERROR M_ALLOCATOR, File = ../../../mnt/lustre/a2fs-work1/work/e01/e01/ptbe01/src/x3d2/src/allocator.f90, Line = 1, Column = 8 
  The compiler has detected errors in module "M_ALLOCATOR".  No module information file will be created for this module.

ftn-1873 ftn: ERROR GET_BLOCK, File = ../../../mnt/lustre/a2fs-work1/work/e01/e01/ptbe01/src/x3d2/src/allocator.f90, Line = 133, Column = 49 
  POINTER dummy argument "NEXT" is not polymorphic so its associated actual argument must not be polymorphic.

Cray Fortran : Version 15.0.0 (20221026200610_324a8e7de6a18594c06a0ee5d8c0eda2109c6ac6)
Cray Fortran : Compile time:  0.0156 seconds
Cray Fortran : 207 source lines
Cray Fortran : 2 errors, 0 warnings, 0 other messages, 0 ansi
Cray Fortran : "explain ftn-message number" gives more information about each message.
gmake[2]: *** [src/CMakeFiles/x3d2.dir/build.make:75: src/CMakeFiles/x3d2.dir/allocator.f90.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:136: src/CMakeFiles/x3d2.dir/all] Error 2
gmake: *** [Makefile:101: all] Error 2