Able to generate loop calculations but receive error upon output.

Asked by Brian Keith Ragsdale

MG5_aMC>output h1n1
INFO: initialize a new directory: h1n1
INFO: remove old information in h1n1
INFO: Compiling CutTools. This has to be done only once and can take a couple of minutes.
Error detected in "output h1n1"
write debug file MG5_debug
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 /home/bandit5/MG5_aMC_v2_9_2/vendor/CutTools.
        The compilation fails with the following output message:
            cp -p ./src/cts/cts_qpr.in ./src/cts/cts_mpr.h
            cp -p ./src/cts/cts_qpc.in ./src/cts/cts_mpc.h
            cp -p ./src/cts/cts_qprec.in ./src/cts/cts_mprec.h
            cp -p ./src/cts/cts_qpinit.in ./src/cts/cts_mpinit.h
            mkdir -p includects
            cp -p ./src/avh/* includects/
            cp -p ./src/cts/* includects/
            cp -p ./src/mpfun90/* includects/
            cp -p ./src/qcdloop/* includects/
            cp -p ./src/makefile includects/
            cd includects && make EXE="" FC="gfortran" FFLAGS="-fPIC -fno-automatic -O2 -funroll-all-loops" default
            make[1]: Entering directory `/home/bandit5/MG5_aMC_v2_9_2/vendor/CutTools/includects'
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpfun90.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpmod90.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpmodm90.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpmodx90.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c avh_olo.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_type.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_tensors.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_constants.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_combinatorics.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_dynamics.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_kinematics.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_loopfunctions.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_cuttools.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_cutroutines.f90
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxbx.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxcx.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxdx.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxex.f
            aaxex.f: In function ‘ffxexp’:
            aaxex.f:464:0: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
                  cexi(i) = ce3ijk(m2ijk(1,i),m2ijk(2,i),m2ijk(3,i))
             ^
            aaxex.f:463:0: note: containing loop
              do i=16,35
             ^
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxinv.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aacbc.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaccc.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aacinv.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c spence.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c npoin.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ff2dl2.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffabcd.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffca0.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb0.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb1.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb2.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb2p.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcdb0.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcc0.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcc0p.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcc1.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel2.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel3.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel4.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel5.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffceta.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcli2.f
            gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcrr.f
            init2.c:52: MPFR assertion failed: p >= 2 && p <= ((mpfr_prec_t)((mpfr_uprec_t)(~(mpfr_uprec_t)0)>>1))
            f951: internal compiler error: Aborted
            Please submit a full bug report,
            with preprocessed source if appropriate.
            See <http://bugzilla.redhat.com/bugzilla> for instructions.
            make[1]: *** [ffcrr.o] Error 1
            make[1]: Leaving directory `/home/bandit5/MG5_aMC_v2_9_2/vendor/CutTools/includects'
            make: *** [default] 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
MG5_aMC>exit

Question information

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

This sounds a GCC bug incompatibility issue.
Which version of GCC are you using?

Olivier

> On 18 Jun 2021, at 16:35, Brian Keith Ragsdale <email address hidden> wrote:
>
> New question #697603 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/697603
>
> MG5_aMC>output h1n1
> INFO: initialize a new directory: h1n1
> INFO: remove old information in h1n1
> INFO: Compiling CutTools. This has to be done only once and can take a couple of minutes.
> Error detected in "output h1n1"
> write debug file MG5_debug
> 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 /home/bandit5/MG5_aMC_v2_9_2/vendor/CutTools.
> The compilation fails with the following output message:
> cp -p ./src/cts/cts_qpr.in ./src/cts/cts_mpr.h
> cp -p ./src/cts/cts_qpc.in ./src/cts/cts_mpc.h
> cp -p ./src/cts/cts_qprec.in ./src/cts/cts_mprec.h
> cp -p ./src/cts/cts_qpinit.in ./src/cts/cts_mpinit.h
> mkdir -p includects
> cp -p ./src/avh/* includects/
> cp -p ./src/cts/* includects/
> cp -p ./src/mpfun90/* includects/
> cp -p ./src/qcdloop/* includects/
> cp -p ./src/makefile includects/
> cd includects && make EXE="" FC="gfortran" FFLAGS="-fPIC -fno-automatic -O2 -funroll-all-loops" default
> make[1]: Entering directory `/home/bandit5/MG5_aMC_v2_9_2/vendor/CutTools/includects'
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpfun90.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpmod90.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpmodm90.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c mpmodx90.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c avh_olo.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_type.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_tensors.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_constants.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_combinatorics.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_dynamics.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_kinematics.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_loopfunctions.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_cuttools.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -c cts_cutroutines.f90
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxbx.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxcx.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxdx.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxex.f
> aaxex.f: In function ‘ffxexp’:
> aaxex.f:464:0: warning: iteration 5 invokes undefined behavior [-Waggressive-loop-optimizations]
> cexi(i) = ce3ijk(m2ijk(1,i),m2ijk(2,i),m2ijk(3,i))
> ^
> aaxex.f:463:0: note: containing loop
> do i=16,35
> ^
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaxinv.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aacbc.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aaccc.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c aacinv.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c spence.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c npoin.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ff2dl2.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffabcd.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffca0.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb0.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb1.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb2.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcb2p.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcdb0.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcc0.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcc0p.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcc1.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel2.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel3.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel4.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcel5.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffceta.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcli2.f
> gfortran -fPIC -fno-automatic -O2 -funroll-all-loops -std=legacy -c ffcrr.f
> init2.c:52: MPFR assertion failed: p >= 2 && p <= ((mpfr_prec_t)((mpfr_uprec_t)(~(mpfr_uprec_t)0)>>1))
> f951: internal compiler error: Aborted
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <http://bugzilla.redhat.com/bugzilla> for instructions.
> make[1]: *** [ffcrr.o] Error 1
> make[1]: Leaving directory `/home/bandit5/MG5_aMC_v2_9_2/vendor/CutTools/includects'
> make: *** [default] 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
> MG5_aMC>exit
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#2

Hey Olivier,

typing gcc --version, I get:

gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#3

I would strongly suggest to use a more recent version of GCC.
That version is completely out-dated and likely the reason of the issue.

Cheers,

Olivier

> On 18 Jun 2021, at 17:25, Brian Keith Ragsdale <email address hidden> wrote:
>
> Question #697603 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697603
>
> Status: Answered => Open
>
> Brian Keith Ragsdale is still having a problem:
> Hey Olivier,
>
> typing gcc --version, I get:
>
> gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#4

Thanks Olivier,

I am looking into how to update the gcc. Do you know how to do this for Windows? I tried mingw-get update but it wasn't recognized.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#5

I guess you means on the linux sub-system of windows?
In that case it does depend of which unix you choose?
I guess that you are redhat base and therefore will suggest
sudo yum install gcc

even if I do not have experience with yum and gcc.

Olivier
> On 18 Jun 2021, at 17:41, Brian Keith Ragsdale <email address hidden> wrote:
>
> Question #697603 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697603
>
> Status: Answered => Open
>
> Brian Keith Ragsdale is still having a problem:
> Thanks Olivier,
>
> I am looking into how to update the gcc. Do you know how to do this for
> Windows? I tried mingw-get update but it wasn't recognized.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#6

That didn't work. Here is the log:

[bandit5@pete ~]$ sudo yum install gcc

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for bandit5:
bandit5 is not in the sudoers file. This incident will be reported.
[bandit5@pete ~]$ sudo install gcc
[sudo] password for bandit5:
bandit5 is not in the sudoers file. This incident will be reported.

I'm on windows using command prompt to access a supercomputer, if that helps.

Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#7

Hi,

Then you should just read the documentation of the supercomputer to learn how to have access to a more recent version of GCC.

Cheers,

Olivier

> On 18 Jun 2021, at 18:05, Brian Keith Ragsdale <email address hidden> wrote:
>
> Question #697603 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/697603
>
> Status: Answered => Open
>
> Brian Keith Ragsdale is still having a problem:
> That didn't work. Here is the log:
>
> [bandit5@pete ~]$ sudo yum install gcc
>
> We trust you have received the usual lecture from the local System
> Administrator. It usually boils down to these three things:
>
> #1) Respect the privacy of others.
> #2) Think before you type.
> #3) With great power comes great responsibility.
>
> [sudo] password for bandit5:
> bandit5 is not in the sudoers file. This incident will be reported.
> [bandit5@pete ~]$ sudo install gcc
> [sudo] password for bandit5:
> bandit5 is not in the sudoers file. This incident will be reported.
>
> I'm on windows using command prompt to access a supercomputer, if that
> helps.
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#8

Hey Olivier or whomever,

I was able to make progress and output my interaction but now I cannot launch it. Below is the log with the module list provided; Is there something you see I can adjust to generate my event?

INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
Failed to open connection to "session" message bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead
Running without a11y support!
initMadLoop -f
Error: no DISPLAY environment variable specified
Initializing MadLoop loop-induced matrix elements (this can take some time)...
WARNING: A compilation Error occurs when trying to compile /home/bandit5/MG5_aMC_v3_1_1/test/SubProcesses/PV0_0_1_h_aa.
The compilation fails with the following output message:
    gfortran -w -fPIC -O -ffixed-line-length-132 -c check_sa.f -o check_sa.o
    check_sa.f:415:38:

      415 | CALL RAMBO(NEXTERNAL-2,ENERGY,PMASS(3),PRAMBO,WGT)
          | 1
    Error: Actual argument contains too few elements for dummy argument ‘xm’ (1/2) at (1)
    make: *** [check_sa.o] Error 1

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
Error detected in "generate_events "
write debug file /home/bandit5/MG5_aMC_v3_1_1/test/run_01_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 /home/bandit5/MG5_aMC_v3_1_1/test/SubProcesses/PV0_0_1_h_aa.
        The compilation fails with the following output message:
            gfortran -w -fPIC -O -ffixed-line-length-132 -c check_sa.f -o check_sa.o
            check_sa.f:415:38:

              415 | CALL RAMBO(NEXTERNAL-2,ENERGY,PMASS(3),PRAMBO,WGT)
                  | 1
            Error: Actual argument contains too few elements for dummy argument ‘xm’ (1/2) at (1)
            make: *** [check_sa.o] Error 1

        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:
[bandit5@pete bin]$ module list

Currently Loaded Modules:
  1) gcc/10.2.0 2) anaconda3/2021.05

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#9

The interaction is h > a a [noborn=QED]

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#10

Also, I import the model loop_qcd_qed_sm

Revision history for this message
Best Olivier Mattelaer (olivier-mattelaer) said :
#11

thanks,

you are not lucky on that one since you face an issue that GCC10 is over-protective and crash for no reason (and that we fail to identify that issue for loop-induced0

You will find the fix here:
https://bazaar.launchpad.net/~maddevelopers/mg5amcnlo/LTS_dev/revision/321

Thanks,

Olivier

Revision history for this message
Brian Keith Ragsdale (bransbrain) said :
#12

Thanks Olivier Mattelaer, that solved my question.