gfortran compilation error on launch

Asked by Martina Javurkova

Dear authors,

I downloaded the latest version of MadGraph5: MG5_aMC_v3_4_0.

I have the same version of gcc and gfortan: 11.2.0.

I use python 3.9.6.

The output directory is created without any problems but when I type 'launch' to generate events from the process which requires loop computations (g g > e+ e- mu+ mu- (+g)), I got the following error:

Error detected in "generate_events Test_run_Martina_270522"
write debug file /afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Test_run_Martina_270522_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Source.
 The compilation fails with the following output message:
     cd DHELAS; make
     make[1]: Entering directory `/afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Source/DHELAS'
     make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o aloha_functions.o aloha_functions.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFS5L2_1.o FFS5L2_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFS5L2_1.o MP_FFS5L2_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFS5L1_2.o FFS5L1_2.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFS5L1_2.o MP_FFS5L1_2.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVVV1_0.o VVVV1_0.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVVV1_0.o MP_VVVV1_0.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVV10P0_1.o VVV10P0_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVV10P0_1.o MP_VVV10P0_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVV11P0_1.o VVV11P0_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVV11P0_1.o MP_VVV11P0_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVS1_0.o VVS1_0.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVS1_0.o MP_VVS1_0.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVS1_3.o VVS1_3.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVS1_3.o MP_VVS1_3.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2_1.o FFV2_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2_1.o MP_FFV2_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2L2_1.o FFV2L2_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2L2_1.o MP_FFV2L2_1.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2L1_2.o FFV2L1_2.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2L1_2.o MP_FFV2L1_2.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2_2.o FFV2_2.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2_2.o MP_FFV2_2.f
     /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2P1T_3.o FFV2P1T_3.f
     FFV2P1T_3.f:30:36:

        30 | IF (DABS(P3(0))*1E-10.GT.DABS(P3(1))) P3(1)=1D-30
           | 1
     Error: 'a' argument of 'dabs' intrinsic at (1) must be REAL
     FFV2P1T_3.f:31:36:

        31 | IF (DABS(P3(0))*1E-10.GT.DABS(P3(2))) P3(2)=0D0
           | 1
     Error: 'a' argument of 'dabs' intrinsic at (1) must be REAL
     FFV2P1T_3.f:32:36:

        32 | IF (DABS(P3(0))*1E-10.GT.DABS(P3(3))) P3(3)=1D-15
           | 1
     Error: 'a' argument of 'dabs' intrinsic at (1) must be REAL
     make[1]: *** [FFV2P1T_3.o] Error 1
     make[1]: Leaving directory `/afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Source/DHELAS'
     make: *** [../lib/libdhelas.a] Error 2

 Please try to fix this compilations issue and retry.
 Help might be found at https://answers.launchpad.net/mg5amcnlo.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
quit
INFO:

The error seems to be related to the fortran version. Which version should I use?

Many thanks in advance!

Best,
Martina

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Martina Javurkova
Solved:
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

I do have the same version of gfortran and I can correctly compile that routine without any issue.

in the file Source/DHELAS/ FFV2P1T_3.f

 I do have the same line and the parameter is correctly defined as a real number:

> SUBROUTINE FFV2P1T_3(F1, F2, COUP, M3, W3,V3)
> IMPLICIT NONE
> COMPLEX*16 CI
> PARAMETER (CI=(0D0,1D0))
> COMPLEX*16 COUP
> COMPLEX*16 F1(*)
> COMPLEX*16 F2(*)
> REAL*8 M3
> REAL*8 P3(0:3) # ------------- HERE IT IS A REAL
> COMPLEX*16 TMP1
> COMPLEX*16 TMP2
> COMPLEX*16 TMP3
> COMPLEX*16 TMP4
> COMPLEX*16 TMP5
> COMPLEX*16 V3(6)
> REAL*8 W3
> COMPLEX*16 DENOM
> V3(1) = +F1(1)+F2(1)
> V3(2) = +F1(2)+F2(2)
> P3(0) = -DBLE(V3(1))
> P3(1) = -DBLE(V3(2))
> P3(2) = -DIMAG(V3(2))
> P3(3) = -DIMAG(V3(1))
> IF (DABS(P3(0))*1E-10.GT.DABS(P3(1))) P3(1)=1D-30 # ---- HERE IS THE LINE PROBLEMATIC IN YOUR CASE
> IF (DABS(P3(0))*1E-10.GT.DABS(P3(2))) P3(2)=0D0
> IF (DABS(P3(0))*1E-10.GT.DABS(P3(3))) P3(3)=1D-15

Do you have the momenta defined in a different way (as complex number?)
If so are you doing something specific that can explain that you do not have the same file as me?
(like setting special option like complex mass scheme, changing the gauge, using a plugin,...)

Cheers,

Olivier

> On 27 May 2022, at 10:35, Martina Javurkova <email address hidden> wrote:
>
> New question #701975 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/701975
>
> Dear authors,
>
> I downloaded the latest version of MadGraph5: MG5_aMC_v3_4_0.
>
> I have the same version of gcc and gfortan: 11.2.0.
>
> I use python 3.9.6.
>
> The output directory is created without any problems but when I type 'launch' to generate events from the process which requires loop computations (g g > e+ e- mu+ mu- (+g)), I got the following error:
>
> Error detected in "generate_events Test_run_Martina_270522"
> write debug file /afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Test_run_Martina_270522_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> str : A compilation Error occurs when trying to compile /afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Source.
> The compilation fails with the following output message:
> cd DHELAS; make
> make[1]: Entering directory `/afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Source/DHELAS'
> make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o aloha_functions.o aloha_functions.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFS5L2_1.o FFS5L2_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFS5L2_1.o MP_FFS5L2_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFS5L1_2.o FFS5L1_2.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFS5L1_2.o MP_FFS5L1_2.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVVV1_0.o VVVV1_0.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVVV1_0.o MP_VVVV1_0.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVV10P0_1.o VVV10P0_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVV10P0_1.o MP_VVV10P0_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVV11P0_1.o VVV11P0_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVV11P0_1.o MP_VVV11P0_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVS1_0.o VVS1_0.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVS1_0.o MP_VVS1_0.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o VVS1_3.o VVS1_3.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_VVS1_3.o MP_VVS1_3.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2_1.o FFV2_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2_1.o MP_FFV2_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2L2_1.o FFV2L2_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2L2_1.o MP_FFV2L2_1.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2L1_2.o FFV2L1_2.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2L1_2.o MP_FFV2L1_2.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2_2.o FFV2_2.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o MP_FFV2_2.o MP_FFV2_2.f
> /cvmfs/sft.cern.ch/lcg/releases/gcc/11.2.0-8a51a/x86_64-centos7/bin/gfortran -w -fPIC -O -ffixed-line-length-132 -c -o FFV2P1T_3.o FFV2P1T_3.f
> FFV2P1T_3.f:30:36:
>
> 30 | IF (DABS(P3(0))*1E-10.GT.DABS(P3(1))) P3(1)=1D-30
> | 1
> Error: 'a' argument of 'dabs' intrinsic at (1) must be REAL
> FFV2P1T_3.f:31:36:
>
> 31 | IF (DABS(P3(0))*1E-10.GT.DABS(P3(2))) P3(2)=0D0
> | 1
> Error: 'a' argument of 'dabs' intrinsic at (1) must be REAL
> FFV2P1T_3.f:32:36:
>
> 32 | IF (DABS(P3(0))*1E-10.GT.DABS(P3(3))) P3(3)=1D-15
> | 1
> Error: 'a' argument of 'dabs' intrinsic at (1) must be REAL
> make[1]: *** [FFV2P1T_3.o] Error 1
> make[1]: Leaving directory `/afs/cern.ch/work/p/pagacova/private/MadGraph5/MG5_aMC_v3_4_0/ZPolar_gg_eemm_nj_QED4_QCD2_XLO_Martina_270522/Source/DHELAS'
> make: *** [../lib/libdhelas.a] Error 2
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/mg5amcnlo.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo
> quit
> INFO:
>
>
> The error seems to be related to the fortran version. Which version should I use?
>
> Many thanks in advance!
>
> Best,
> Martina
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Martina Javurkova (martina-javurkova) said :
#2

Many thanks Olivier! Indeed, I am using a specific model. I will first check to see if there is a problem and then come back to you.

Best,
Martina

Revision history for this message
Martina Javurkova (martina-javurkova) said :
#3

The problem was solved by entering into the Source/DHELAS directory, and replacing "dabs(" -> "abs(" in all * .f files.

Best,
Martina