launch error. Error detected in "generate_events run_01"

Asked by williamhuang

Dear MG5 team,

After I generated the process p p > t t~ and launch it, I got the following bug:

=============================================================================
Error detected in "generate_events run_01"
write debug file /Users/william/Documents/Project/Program/MG5_aMC_v2_5_3/SM_LO/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 /Users/william/Documents/Project/Program/MG5_aMC_v2_5_3/SM_LO/Source.
 The compilation fails with the following output message:
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o StringCast.o StringCast.f
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o ranmar.o ranmar.f
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o transpole.o transpole.f
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [alfas_functions.o] Error 1
     make: *** Waiting for unfinished jobs....
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [StringCast.o] Error 1
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [transpole.o] Error 1
     FATAL:/opt/local/bin/../libexec/as/x86_64/as: I don't understand 'm' flag!
     make: *** [ranmar.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
=============================================================================

I use clang and gfortran of version 6.3.

Thanks for your help

Question information

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

Hi,

I think that you have a missmatch of installation, the "as" program that you use is from /opt/local/bin/../libexec/as/x86_64/
where I would expect that you should use /usr/bin/as for clang.

This is probably related to your $PATH and/or $LD_LIBRARY_PATH

Cheers,

Olivier

Revision history for this message
williamhuang (williamhuang) said :
#2

Dear Olivier,

Here is my $PATH

/opt/local/bin:/opt/local/sbin:/Users/william/Documents/Project/Program/root/bin:/Library/Frameworks/Python.framework/Versions/3.4/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin

Is there any question?

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

What happens when you type "which as"

The problem of your installation seems that you have some inconsistency between gcc and clang.
Some of the program that are linked are gcc based and some other are clang based.

Looks like it founds "as" in this directory:
/opt/local/bin/../libexec/as/x86_64/
since this is not in your $PATH, I'm not sure how you link to this one.
but this one is one that you installed yourself (probably via gcc)

But it looks like that you compile with clang and not gcc (clang is the default mac compiler) and therefore the code is confused.
Your pythia problem is likely to be related to this as well. (I've quickly discussed with PY8 author and this is what they told me).
Now I'm not sure how you install your gcc version and how to remove it to have something clean (and/or fix it to force to use that one completely).

One think that you can try is to force in input/mg5_configuration to set your cpp compiler to the gcc version of g++ to see if this fix the problem.

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.