fortran issue

Asked by yvonne ng

Hi I ran into this problem when I tried to launch the process that I generated:
I know it is likely to be a fortran issue as I only see this after updating fortran. but Mac is stubborn and will not let me change it back. Please let me know if there is a known to work gcc version that I can switch to to make this work. Thank you.

Error detected in "generate_events run_01"
write debug file /Users/yvonne/Downloads/MG5_aMC_v2_5_5/test/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/yvonne/Downloads/MG5_aMC_v2_5_5/test/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: *** [transpole.o] Error 1
     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: *** [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

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,

My guess is that you have an invalid installation setup with the "as" program which does not match the compiler that you have install by default.

Cheers,

Olivier

> On 10 Jun 2017, at 03:06, yvonne ng <email address hidden> wrote:
>
> New question #642953 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/642953
>
> Hi I ran into this problem when I tried to launch the process that I generated:
> I know it is likely to be a fortran issue as I only see this after updating fortran. but Mac is stubborn and will not let me change it back. Please let me know if there is a known to work gcc version that I can switch to to make this work. Thank you.
>
> Error detected in "generate_events run_01"
> write debug file /Users/yvonne/Downloads/MG5_aMC_v2_5_5/test/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/yvonne/Downloads/MG5_aMC_v2_5_5/test/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: *** [transpole.o] Error 1
> 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: *** [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
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
yvonne ng (greywolf-net) said :
#2

Hi Oliver,

What would I need to do to fix this problem?

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

Just google the error message and you should find some help:

This is for example the first link that google provide (which confirms my guess) and it provides multiple way to solve the problem.
https://github.com/dmlc/xgboost/issues/1945
(my advise try those at the end of the thread they sounds better than those at the beginning)

But the real solution is actually to check how your various version of gcc are installed and check that each component is correctly setup. Otherwise you will have a lot of dead script on your machine which will be source of instability.

Cheers,

Olivier

Can you help with this problem?

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

To post a message you must log in.