CutTools compilation fails

Asked by Laura Moreno on 2019-06-27

Hi,

I am trying to run the NLO cross section for p p > h t j in Madgraph. Everything goes fine until I ask for the output and then it tries to compile CutTools. Following https://answers.launchpad.net/mg5amcnlo/+question/250594 I tried to go to the vendor/CutTools folder and do

>> make clean
>> make

but I get the following:

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/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/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
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
../../src/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 <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
make[1]: *** [makefile:97: ffcrr.o] Error 1
make[1]: Leaving directory '/home/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/vendor/CutTools/includects'
make: *** [makefile:62: default] Error 2

I updated my Debian system, and still the error is there. I checked the version of both gfortran and gcc and I get the following:

>> gfortran --version
GNU Fortran (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

>> gcc --version
gcc (Debian 8.2.0-4) 8.2.0

If I also try to compile CutTools with

>> make clean
>> make -j2

given that I have two processor cores, I get the following error
cp -p ./src/cts/cts_qpr.in ./src/cts/cts_mpr.h
mkdir -p includects
cp -p ./src/avh/* includects/
cp -p ./src/cts/* includects/
cp -p ./src/cts/cts_qpc.in ./src/cts/cts_mpc.h
cp -p ./src/mpfun90/* includects/
cp -p ./src/cts/cts_qprec.in ./src/cts/cts_mprec.h
cp -p ./src/qcdloop/* includects/
cp -p ./src/cts/cts_qpinit.in ./src/cts/cts_mpinit.h
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/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/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
mpmod90.f90:43:4:

 use mpfunmod
    1
Fatal Error: Can't open module file ‘mpfunmod.mod’ for reading at (1): No such file or directory
compilation terminated.
make[1]: *** [makefile:94: mpmod90.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/vendor/CutTools/includects'
make: *** [makefile:62: default] Error 2

But that file is indeed there, so I don't understand it.

LO with this version of Madgraph works fine for me, but the problem arises when computing the NLO, where CutTools are then being used.

It's the first time I face this error. If you have any advice or hint of how could I solve this problem and run NLO in my computer, I would really appreciate it.

Thank you in advance.

Best,
Laura

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Olivier Mattelaer
Solved:
2019-08-26
Last query:
2019-08-26
Last reply:
2019-06-27

Could you try another gfortran version?
Thanks

Olivier

Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________
From: <email address hidden> <email address hidden> on behalf of Laura Moreno <email address hidden>
Sent: Thursday, June 27, 2019 6:07:48 PM
To: Olivier Mattelaer
Subject: [Question #681654]: CutTools compilation fails

New question #681654 on MadGraph5_aMC@NLO:
https://answers.launchpad.net/mg5amcnlo/+question/681654

Hi,

I am trying to run the NLO cross section for p p > h t j in Madgraph. Everything goes fine until I ask for the output and then it tries to compile CutTools. Following https://answers.launchpad.net/mg5amcnlo/+question/250594 I tried to go to the vendor/CutTools folder and do

>> make clean
>> make

but I get the following:

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/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/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
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
../../src/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 <file:///usr/share/doc/gcc-6/README.Bugs> for instructions.
make[1]: *** [makefile:97: ffcrr.o] Error 1
make[1]: Leaving directory '/home/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/vendor/CutTools/includects'
make: *** [makefile:62: default] Error 2

I updated my Debian system, and still the error is there. I checked the version of both gfortran and gcc and I get the following:

>> gfortran --version
GNU Fortran (Debian 6.3.0-18+deb9u1) 6.3.0 20170516

>> gcc --version
gcc (Debian 8.2.0-4) 8.2.0

If I also try to compile CutTools with

>> make clean
>> make -j2

given that I have two processor cores, I get the following error
cp -p ./src/cts/cts_qpr.in ./src/cts/cts_mpr.h
mkdir -p includects
cp -p ./src/avh/* includects/
cp -p ./src/cts/* includects/
cp -p ./src/cts/cts_qpc.in ./src/cts/cts_mpc.h
cp -p ./src/mpfun90/* includects/
cp -p ./src/cts/cts_qprec.in ./src/cts/cts_mprec.h
cp -p ./src/qcdloop/* includects/
cp -p ./src/cts/cts_qpinit.in ./src/cts/cts_mpinit.h
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/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/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
mpmod90.f90:43:4:

 use mpfunmod
    1
Fatal Error: Can't open module file ‘mpfunmod.mod’ for reading at (1): No such file or directory
compilation terminated.
make[1]: *** [makefile:94: mpmod90.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/laura/Documents/Madgraph5_aMC@NLO/MG5_aMC_v2_6_5/vendor/CutTools/includects'
make: *** [makefile:62: default] Error 2

But that file is indeed there, so I don't understand it.

LO with this version of Madgraph works fine for me, but the problem arises when computing the NLO, where CutTools are then being used.

It's the first time I face this error. If you have any advice or hint of how could I solve this problem and run NLO in my computer, I would really appreciate it.

Thank you in advance.

Best,
Laura

--
You received this question notification because you are an answer
contact for MadGraph5_aMC@NLO.

Laura Moreno (laumova) said : #2

Hi Olivier,

thank you for the answer and sorry for the delay in answering. It works with another version, but now I am still having some problems with the version I installed and LHAPDF. However, now that problem with CutTools is solved. Thank you very much.

Best,
Laura

Laura Moreno (laumova) said : #3

Thanks Olivier Mattelaer, that solved my question.