jagot / bsr

1 stars 3 forks source link

Compile issue on gfortran 12 #7

Open YenochQin opened 11 months ago

YenochQin commented 11 months ago

Hi, I compiled your code on gfortran-12, and got the following error :

[ 60%] Built target bsr_mult
[ 60%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/mod_coef.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/mod_param_mpi.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/mod_spinorb_mpi.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/mod_zoef.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/term_loop.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/det_mult.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/idet_fact.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/prepare.f90.o
[ 61%] Building Fortran object bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/bsr_mult_mpi.f90.o
/home/workstation2/AppFiles/DBSR/bsr/src/bsr/BSR_MULT/bsr_mult_mpi.f90:51:21:

   51 |        open(pri,file=AF_p)
      |                     1
Error: FILE tag at (1) must be of type CHARACTER
/home/workstation2/AppFiles/DBSR/bsr/src/bsr/BSR_MULT/bsr_mult_mpi.f90:66:26:

   66 |       if(myid.ne.0) write(AF_p,'(a,i4.4)') 'mult_',myid
      |                          1
Error: UNIT specification at (1) must be an INTEGER expression or a CHARACTER variable
/home/workstation2/AppFiles/DBSR/bsr/src/bsr/BSR_MULT/bsr_mult_mpi.f90:71:35:

   71 |        if(myid.ne.0) open(pri,file=AF_p)
      |                                   1
Error: FILE tag at (1) must be of type CHARACTER
make[2]: *** [bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/build.make:153: bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/bsr_mult_mpi.f90.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1346: bsr/BSR_MULT/CMakeFiles/bsr_mult_mpi.dir/all] Error 2
make: *** [Makefile:91: all] Error 2

How to fix it ?

jagot commented 5 months ago

Sorry for the late reply, I must have missed the notification.

I have not seen this particular error before, but in PR #8 I'm working on making the package compile again. Please try that branch and see if it works for you. Not all programs compile yet, but those that do not, are disabled for the moment.