GunnerLab / Stable-MCCE

Stable version of MCCE.
MIT License
9 stars 14 forks source link

Fortran Error when installing, "$ make" returns "Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ...." #266

Open hs280 opened 9 months ago

hatem-amer commented 9 months ago

What is the output of : gfortran --version

hs280 commented 9 months ago

Version 10.2.1, specifically: GNU Fortran (Debian 10.2.1-6) 10.2.1 20210110

mbatgh commented 3 months ago

same here, see below, my compiler is: GNU Fortran (Debian 13.2.0-25) 13.2.0 any help much appreciated!

prompt> make make[1]: Entering directory '/home/micb/local/Stable-MCCE/lib/delphi' gfortran -O3 -fcray-pointer -ffixed-line-length-none -g -Isrc/ -DLINUX -DIFC -DDP -c src/qdiff4v.F pointer.h:159:21:

Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ‘i_phimap4’ at (1) pointer.h:157:21:

Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ‘i_limgunit’ at (1) pointer.h:156:21:

Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ‘i_chgpos’ at (1) pointer.h:155:21:

etc ...

newbooks commented 3 months ago

It is due to the legacy delphi compile issue.

To install gfortran compiler that is compatible for delphi:

Create mcce environment

conda create -n mcce conda activate mcce

Install compilers

conda install -c conda-forge gcc gfortran

Now roll back gfortran to 9.5.0 (delphi requires an old compiler)

conda install -c conda-forge gfortran=9.5.0

On Mon, Jun 10, 2024 at 8:01 AM Michael Brunsteiner < @.***> wrote:

same here, see below, my compiler is: GNU Fortran (Debian 13.2.0-25) 13.2.0 any help much appreciated!

prompt> make make[1]: Entering directory '/home/micb/local/Stable-MCCE/lib/delphi' gfortran -O3 -fcray-pointer -ffixed-line-length-none -g -Isrc/ -DLINUX -DIFC -DDP -c src/qdiff4v.F pointer.h:159:21:

Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ‘i_phimap4’ at (1) pointer.h:157:21:

Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ‘i_limgunit’ at (1) pointer.h:156:21:

Error: CRAY POINTER attribute conflicts with DIMENSION attribute in ‘i_chgpos’ at (1) pointer.h:155:21:

etc ...

— Reply to this email directly, view it on GitHub https://github.com/GunnerLab/Stable-MCCE/issues/266#issuecomment-2158156943, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPRCWXJADOWMUMJE5TPCUDZGWISNAVCNFSM6AAAAABJCE7D7GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJYGE2TMOJUGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>