gfortran error on launch

Asked by Rebecca Riley on 2018-06-25

Every time I try to 'launch' a process, madgraph immediately fails with gfortran compiler errors. Generation is working fine. I'm on a Manjaro Linux machine (built off of Arch). I have the same version of both gcc and gfortan -- 8.1.1. All seems to be in order with PATH. Events used to launch just fine but one day a few months ago madgraph started crashing. I have no clue what changed. Any ideas?

MG5_aMC>generate e+ e- > e+ e-
INFO: Checking for minimal orders which gives processes.
INFO: Please specify coupling orders to bypass this step.
INFO: Trying process: e+ e- > e+ e- WEIGHTED<=4 @1
INFO: Process has 4 diagrams
1 processes with 4 diagrams generated in 0.010 s
Total: 1 processes with 4 diagrams
MG5_aMC>output delete_me
INFO: directory /home/rebecca_riley/graph1/bin/delete_me already exists.
If you continue this directory will be deleted and replaced.
Do you want to continue? [y, n][60s to answer]
>y
INFO: initialize a new directory: delete_me
INFO: remove old information in delete_me
INFO: Organizing processes into subprocess groups
INFO: Generating Helas calls for process: e+ e- > e+ e- WEIGHTED<=4 @1
INFO: Processing color information for process: e+ e- > e+ e- @1
INFO: Creating files in directory P1_ll_ll
INFO: Generating Feynman diagrams for Process: e+ e- > e+ e- WEIGHTED<=4 @1
INFO: Finding symmetric diagrams for subprocess group ll_ll
Generated helas calls for 1 subprocesses (4 diagrams) in 0.021 s
Wrote files for 12 helas calls in 0.097 s
ALOHA: aloha creates FFV2 routines
ALOHA: aloha creates FFV1 routines
ALOHA: aloha creates FFV4 routines
save configuration file to /home/rebecca_riley/graph1/bin/delete_me/Cards/me5_configuration.txt
INFO: Use Fortran compiler gfortran
INFO: Use c++ compiler g++
INFO: Generate jpeg diagrams
INFO: Generate web pages
Output to directory /home/rebecca_riley/graph1/bin/delete_me done.
Type "launch" to generate events from this process, or see
/home/rebecca_riley/graph1/bin/delete_me/README
Run "open index.html" to see more information about this process.
MG5_aMC>launch
************************************************************
* *
* W E L C O M E to *
* M A D G R A P H 5 _ a M C @ N L O *
* M A D E V E N T *
* *
* * * *
* * * * * *
* * * * * 5 * * * * *
* * * * * *
* * * *
* *
* VERSION 2.6.3 2018-06-15 *
* *
* The MadGraph5_aMC@NLO Development Team - Find us at *
* https://server06.fynu.ucl.ac.be/projects/madgraph *
* *
* Type 'help' for in-line help. *
* *
************************************************************
INFO: load configuration from /home/rebecca_riley/graph1/bin/delete_me/Cards/me5_configuration.txt
INFO: load configuration from /home/rebecca_riley/graph1/input/mg5_configuration.txt
INFO: load configuration from /home/rebecca_riley/graph1/bin/delete_me/Cards/me5_configuration.txt
No valid eps viewer found. Please set in ./input/mg5_configuration.txt
No valid Delphes path found
generate_events run_01
The following switches determine which programs are run:
/===========================================================================\
| 1. Choose the shower/hadronization program shower = Not Avail. |
| 2. Choose the detector simulation program detector = Not Avail. |
| 3. Choose an analysis package (plot/convert) analysis = ExRoot |
| 4. Decay onshell particles madspin = OFF |
| 5. Add weights to events for new hypp. reweight = OFF |
\===========================================================================/
Either type the switch number (1 to 5) to change its setting,
Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
Type 'help' for the list of all valid option
Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
>
Do you want to edit a card (press enter to bypass editing)?
/------------------------------------------------------------\
| 1. param : param_card.dat |
| 2. run : run_card.dat |
\------------------------------------------------------------/
 you can also
   - enter the path to a valid card or banner.
   - use the 'set' command to modify a parameter directly.
     The set option works only for param_card and run_card.
     Type 'help set' for more information on this command.
   - call an external program (ASperGE/MadWidth/...).
     Type 'help' for the list of available command
 [0, done, 1, param, 2, run, enter path][90s to answer]
>
INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
compile Source Directory
Using random number seed offset = 21
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: P1_ll_ll
Error detected in "generate_events run_01"
write debug file /home/rebecca_riley/graph1/bin/delete_me/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
MadGraph5Error : A compilation Error occurs when trying to compile /home/rebecca_riley/graph1/bin/delete_me/SubProcesses/P1_ll_ll.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c driver.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c myamp.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c genps.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
     genps.f:60:55:

            call gen_mom(iconfig,mincfig,maxcfig,invar,wgt,x,p)
                                                            1
     Error: Actual argument contains too few elements for dummy argument ‘p1’ (5/20) at (1)
     make: *** [makefile:60: genps.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
quit

Question information

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

Hi,

MG5aMC is not compatible with gcc version 8.
So please use an older version of gcc for the moment.

Cheers,

Olivier

> On 25 Jun 2018, at 20:52, Rebecca Riley <email address hidden> wrote:
>
> New question #670455 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/670455
>
> Every time I try to 'launch' a process, madgraph immediately fails with gfortran compiler errors. Generation is working fine. I'm on a Manjaro Linux machine (built off of Arch). I have the same version of both gcc and gfortan -- 8.1.1. All seems to be in order with PATH. Events used to launch just fine but one day a few months ago madgraph started crashing. I have no clue what changed. Any ideas?
>
> MG5_aMC>generate e+ e- > e+ e-
> INFO: Checking for minimal orders which gives processes.
> INFO: Please specify coupling orders to bypass this step.
> INFO: Trying process: e+ e- > e+ e- WEIGHTED<=4 @1
> INFO: Process has 4 diagrams
> 1 processes with 4 diagrams generated in 0.010 s
> Total: 1 processes with 4 diagrams
> MG5_aMC>output delete_me
> INFO: directory /home/rebecca_riley/graph1/bin/delete_me already exists.
> If you continue this directory will be deleted and replaced.
> Do you want to continue? [y, n][60s to answer]
>> y
> INFO: initialize a new directory: delete_me
> INFO: remove old information in delete_me
> INFO: Organizing processes into subprocess groups
> INFO: Generating Helas calls for process: e+ e- > e+ e- WEIGHTED<=4 @1
> INFO: Processing color information for process: e+ e- > e+ e- @1
> INFO: Creating files in directory P1_ll_ll
> INFO: Generating Feynman diagrams for Process: e+ e- > e+ e- WEIGHTED<=4 @1
> INFO: Finding symmetric diagrams for subprocess group ll_ll
> Generated helas calls for 1 subprocesses (4 diagrams) in 0.021 s
> Wrote files for 12 helas calls in 0.097 s
> ALOHA: aloha creates FFV2 routines
> ALOHA: aloha creates FFV1 routines
> ALOHA: aloha creates FFV4 routines
> save configuration file to /home/rebecca_riley/graph1/bin/delete_me/Cards/me5_configuration.txt
> INFO: Use Fortran compiler gfortran
> INFO: Use c++ compiler g++
> INFO: Generate jpeg diagrams
> INFO: Generate web pages
> Output to directory /home/rebecca_riley/graph1/bin/delete_me done.
> Type "launch" to generate events from this process, or see
> /home/rebecca_riley/graph1/bin/delete_me/README
> Run "open index.html" to see more information about this process.
> MG5_aMC>launch
> ************************************************************
> * *
> * W E L C O M E to *
> * M A D G R A P H 5 _ a M C @ N L O *
> * M A D E V E N T *
> * *
> * * * *
> * * * * * *
> * * * * * 5 * * * * *
> * * * * * *
> * * * *
> * *
> * VERSION 2.6.3 2018-06-15 *
> * *
> * The MadGraph5_aMC@NLO Development Team - Find us at *
> * https://server06.fynu.ucl.ac.be/projects/madgraph *
> * *
> * Type 'help' for in-line help. *
> * *
> ************************************************************
> INFO: load configuration from /home/rebecca_riley/graph1/bin/delete_me/Cards/me5_configuration.txt
> INFO: load configuration from /home/rebecca_riley/graph1/input/mg5_configuration.txt
> INFO: load configuration from /home/rebecca_riley/graph1/bin/delete_me/Cards/me5_configuration.txt
> No valid eps viewer found. Please set in ./input/mg5_configuration.txt
> No valid Delphes path found
> generate_events run_01
> The following switches determine which programs are run:
> /===========================================================================\
> | 1. Choose the shower/hadronization program shower = Not Avail. |
> | 2. Choose the detector simulation program detector = Not Avail. |
> | 3. Choose an analysis package (plot/convert) analysis = ExRoot |
> | 4. Decay onshell particles madspin = OFF |
> | 5. Add weights to events for new hypp. reweight = OFF |
> \===========================================================================/
> Either type the switch number (1 to 5) to change its setting,
> Set any switch explicitly (e.g. type 'madspin=ON' at the prompt)
> Type 'help' for the list of all valid option
> Type '0', 'auto', 'done' or just press enter when you are done.[60s to answer]
>>
> Do you want to edit a card (press enter to bypass editing)?
> /------------------------------------------------------------\
> | 1. param : param_card.dat |
> | 2. run : run_card.dat |
> \------------------------------------------------------------/
> you can also
> - enter the path to a valid card or banner.
> - use the 'set' command to modify a parameter directly.
> The set option works only for param_card and run_card.
> Type 'help set' for more information on this command.
> - call an external program (ASperGE/MadWidth/...).
> Type 'help' for the list of available command
> [0, done, 1, param, 2, run, enter path][90s to answer]
>>
> INFO: Update the dependent parameter of the param_card.dat
> Generating 10000 events with run name run_01
> survey run_01
> INFO: compile directory
> compile Source Directory
> Using random number seed offset = 21
> INFO: Running Survey
> Creating Jobs
> Working on SubProcesses
> INFO: P1_ll_ll
> Error detected in "generate_events run_01"
> write debug file /home/rebecca_riley/graph1/bin/delete_me/run_01_tag_1_debug.log
> If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
> MadGraph5Error : A compilation Error occurs when trying to compile /home/rebecca_riley/graph1/bin/delete_me/SubProcesses/P1_ll_ll.
> The compilation fails with the following output message:
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c driver.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c myamp.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c genps.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c unwgt.f -I../../Source/
> genps.f:60:55:
>
> call gen_mom(iconfig,mincfig,maxcfig,invar,wgt,x,p)
> 1
> Error: Actual argument contains too few elements for dummy argument ‘p1’ (5/20) at (1)
> make: *** [makefile:60: genps.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
> quit
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Rebecca Riley (r-riley) said : #2

Thanks Olivier Mattelaer, that solved my question.

Rebecca Riley (r-riley) said : #3

For those of you on Arch Linux machines, thought I'd share what I've learned:
Old versions of packages are stored locally in a cache at /var/cache/pacman/pkg/[pkgname]. You can use pacman to downgrade gcc, gcc-libs, and gcc-fortran. There is a utility called 'downgrade' available through pacman, but I was unable to get past dependency issues linking gcc, gcc-libs, and gcc-fortran to both older and newer versions of each other using the downgrade utility. You can force downgrades with pacman using flags, which is what I ended up doing.

The syntax for the downgrade is, for example, sudo pacman --nodeps --force -U /var/cache/pacman/pkg/gcc-libs-7.3.1+20180406-1-x86_64.pkg.tar.xz You can see what packages are available locally and remotely to downgrade to using 'downgrade' (e.g. 'downgrade gcc' gives me a list of 5 packages -- three version 7 and two version 8 packages -- to pick from. I then used one of the version 7 packages with pacman.)

Flags you'll need:
--nodeps "upgrades" (downgrades) the specified package regardless of other packages that depend on your currently installed version
[error that you get without this flag: gcc/gcc-libs cannot be installed due to dependency in gcc-libs/gcc]
--force overwrites files previously owned by a package (most likely? couldn't quite figure out what was going on with this error)
[error that you get without this flag: usr/bin/x86_64-pc-linux-gnu-gcc-7.3.1 exists in filesystem]

I downgraded in this order:
1) gcc-libs
2) gcc-fortran
3) gcc
* Note: gcc-libs and gcc-fortran actually didn't require the --force flag, but gcc did.

I have a Manjaro distribution, so the update manager immediately registered the outdated packages when I downgraded. Be careful not to upgrade them accidentally when doing a batch update using the update manager!

Madgraph is working perfectly again. Hopefully I didn't destroy my computer with the forced downgrades, but no heat or smoke yet (knock on wood). Good luck to anyone else with this problem and thanks to Olivier and everyone else who mans the forum so responsively.