Compilation error with ...interaction_DIS/SubProcesses/P1100_xdu_xdu

Asked by Taylor Gray

Hi, I'm trying to run maddump (where I am running it with python 2) with the following inputs:

import model DMsimp_UFO-full
generate production p p > xd xd~ /y1
define darkmatter xd
add process interaction @DIS /y1
output scalar
launch

I get the error:
Error detected in "generate_events run_03 -f"
write debug file /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/run_03_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 /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/SubProcesses/P1100_xdu_xdu.
 The compilation fails with the following output message:
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c myamp.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c genps.f -I../../Source/
     gfortran -w -fPIC -O -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
     unwgt.f:949:132:

       949 | & sscale,aaqcd,aaqed,buff,use_syst,s_buff,nclus,buffclus)
           | 1
     Error: Missing actual argument for argument ‘_formal_38’ at (1)
     make: *** [unwgt.o] Error 1
     make: *** Waiting for unfinished jobs....

when running "launch".
Do you know how I can fix this?

Here I paste the debug file:
#************************************************************
#* MadGraph5_aMC@NLO/MadEvent *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 3.2.0 20xx-xx-xx *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* *
#************************************************************
#* *
#* Command File for MadEvent *
#* *
#* run as ./bin/madevent.py filename *
#* *
#************************************************************
generate_events run_03 -f
Traceback (most recent call last):
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/extended_cmd.py", line 1544, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/madevent_interface.py", line 2362, in do_generate_events
    self.run_generate_events(switch_mode, args)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/common_run_interface.py", line 7266, in new_fct
    original_fct(obj, *args, **opts)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/madevent_interface.py", line 2402, in run_generate_events
    postcmd=False)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/extended_cmd.py", line 1573, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/extended_cmd.py", line 1493, in onecmd_orig
    return func(arg, **opt)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/madevent_interface.py", line 3259, in do_survey
    jobs, P_zero_result = ajobcreator.get_helicity()
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/gen_ximprove.py", line 148, in get_helicity
    self.cmd.compile(['madevent_forhel'], cwd=Pdir)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/extended_cmd.py", line 1639, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/bin/internal/misc.py", line 552, in compile
    raise MadGraph5Error(error_text)
internal.MadGraph5Error: A compilation Error occurs when trying to compile /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/SubProcesses/P1100_xdu_xdu.
The compilation fails with the following output message:
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c myamp.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c genps.f -I../../Source/
    gfortran -w -fPIC -O -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
    unwgt.f:949:132:

      949 | & sscale,aaqcd,aaqed,buff,use_syst,s_buff,nclus,buffclus)
          | 1
    Error: Missing actual argument for argument ‘_formal_38’ at (1)
    make: *** [unwgt.o] Error 1
    make: *** Waiting for unfinished jobs....

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
                              Run Options
                              -----------
               stdout_level : None

                         MadEvent Options
                         ----------------
     automatic_html_opening : False (user set)
        notification_center : True
                   run_mode : 2
              cluster_queue : None
               cluster_time : None
               cluster_size : 100
             cluster_memory : None
                    nb_core : 4 (user set)
          cluster_temp_path : None

                      Configuration Options
                      ---------------------
               pythia8_path : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/HEPTools/pythia8 (user set)
                  hwpp_path : None (user set)
                thepeg_path : None (user set)
                 hepmc_path : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/HEPTools/hepmc (user set)
           madanalysis_path : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/MadAnalysis (user set)
          madanalysis5_path : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/HEPTools/madanalysis5/madanalysis5 (user set)
            pythia-pgs_path : None (user set)
                    td_path : None (user set)
               delphes_path : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/Delphes (user set)
        exrootanalysis_path : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/ExRootAnalysis (user set)
               syscalc_path : None (user set)
                     lhapdf : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/HEPTools/lhapdf6_py3/bin/lhapdf-config (user set)
                 lhapdf_py2 : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/HEPTools/lhapdf6/bin/lhapdf-config (user set)
                 lhapdf_py3 : /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/HEPTools/lhapdf6_py3/bin/lhapdf-config (user set)
                    timeout : 60
              f2py_compiler : None
          f2py_compiler_py2 : None
          f2py_compiler_py3 : None
                web_browser : None
                 eps_viewer : None
                text_editor : None
           fortran_compiler : None
               cpp_compiler : None
                auto_update : 7 (user set)
               cluster_type : condor
      cluster_status_update : (600, 30)
           cluster_nb_retry : 1
         cluster_local_path : None
         cluster_retry_wait : 300

Question information

Language:
English Edit question
Status:
Answered
For:
maddump Edit question
Assignee:
Luca Edit question
Last query:
Last reply:
Revision history for this message
Olivier Mattelaer (olivier-mattelaer) said :
#1

Hi,

The issue is that recent gcc compiler have switch a warning to an error.
The simplest solution here is likely to edit the file Source/make_opts
to add the flag -std=legacy (to the FFLAGS variable)

This should allow to bypass such error on most version of GCC.

Another solution would be to update the a more recent version of madgraph.
but the latest 3.x version does not support python2 anymore. On the other hand, using the LTS version (2.9.x) might be an option.

Cheers,

Olivier

Revision history for this message
Taylor Gray (taylorrosegray) said :
#2

Hi Oliver,

Thanks for the quick response!
Is this Source/make_opts file you are referring to in the Madgraph output directory? I see one in interaction_dis and production.
I still get the same error when changing the line in both: FFLAGS= -w -fPIC -> FFLAGS= -w -fPIC -std=legacy

Let me know if there is a different make_opts file I can try editing. Thanks for your help.

Taylor

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

If you see that the line above the crash did contain the flag then it means that you editted the correct file/line.

googling a bit, another flag that you can try is this one: -fallow-argument-mismatch

Cheers,

Olivier

Revision history for this message
Taylor Gray (taylorrosegray) said :
#4

Unfortunately even with these new flags, I still get the same error :(
I also tried with the LTS version (MG5_aMC_v2_9_12) and get the same error (shown below).
Do you think I need an older gcc version? Thanks for your help!

Error detected in "generate_events run_07 -f"
write debug file /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/run_07_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 /Users/Taylor/Documents/PhD/Code/MG5_aMC_v3_2_0/test_maddump/interaction_DIS/SubProcesses/P1100_xdu_xdu.
 The compilation fails with the following output message:
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c driver.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c myamp.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c genps.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c get_color.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c cuts.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c cluster.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c reweight.f -I../../Source/
     gfortran -w -fPIC -std=legacy -fallow-argument-mismatch -O -ffixed-line-length-132 -w -c initcluster.f -I../../Source/
     reweight.f:1203:27:

      1203 | if(fixed_fac_scale.and.first)then
           | 1
     Error: Symbol ‘fixed_fac_scale’ at (1) has no IMPLICIT type; did you mean ‘fixed_fac_scale2’?
     make: *** [reweight.o] Error 1
     make: *** Waiting for unfinished jobs....

 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

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

Hi,

I would see some progress here.
The error is now a real bug within MG5aMC. So here the only solution is to change the version of MG5aMC.
Did you try the LTS version?

Cheers,

Olivier

Revision history for this message
Taylor Gray (taylorrosegray) said :
#6

Hi,

MG5aMC works fine on my machine (at least with python 3).
As mentioned above: "I also tried with the LTS version (MG5_aMC_v2_9_12) and get the same error".

Do you suggest I ask the MG5 team about this issue?

Thanks,
Taylor

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

Hi,

> Do you suggest I ask the MG5 team about this issue?

I would be the one in charge of replying for the MG5 team.

But since you said that you had the same error in 2.9.12, this is certainly not the old bug that I was thinking about.
And indeed I have checked in 2.9.12 and did not find any matching line.
But then I found that line within a file reweight.f present within maddump.

So looks like that such file is not in sync with the latest change related to beam assymetry.
I will assign this to Lucas since I would need him to indicates why this file is not the standard one before trying to update it (and to see if we can do it in a nicer way).

Cheers and thanks,

Olivier

Revision history for this message
Taylor Gray (taylorrosegray) said :
#8

Hi Oliver,

Okay great. Really appreciate the help!
I'm also wondering if using an older version of gcc and/or gfortran could fix this issue.

Thank you!
Taylor

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

For the first error that you presented, this would avoid to edit the make_opts file.
However the error that you face after that will remains and is due to a missmatch between maddump and MG5aMC.
So for that one it will not help at all.

Cheers,

Olivier

Revision history for this message
Luca (lbuono) said :
#10

Hi Olivier, Taylor,

> So looks like that such file is not in sync with the latest change related to beam assymetry.
> I will assign this to Lucas since I would need him to indicates why this file is not the standard one before trying to update it (and to > see if we can do it in a nicer way).

I will have a look at it during next week and I will report to Olivier.

Cheers,
Luca

Can you help with this problem?

Provide an answer of your own, or ask Taylor Gray for more information if necessary.

To post a message you must log in.