gfortran problem on MacOS

Asked by Isaac Wang

I am using MacOS system 10.13 sierra. My gcc version is currently installed from homebrew, version 8.

I successfully generated events: p p > ur > j n1, and output in mono-phi director.

When I try to exec the generate_events in mono-phi folder with all the default params, I get error.

-------------------------------------------erro info---------------------------------------------------------------------
Error detected in "generate_events "
write debug file /Users/isaac/Work/MG5_aMC_v2_6_3_2/mono-phi/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/isaac/Work/MG5_aMC_v2_6_3_2/mono-phi/SubProcesses/P1_qq_qn1.
 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/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.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)
     gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c reweight.f -I../../Source/
     make: *** [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
INFO:
-------------------------------------------------------------------------------------------------------------------------------

I found that the version is incompatible in this link
https://answers.launchpad.net/mg5amcnlo/+question/670455

but after I downgrade the version of my gcc and do it again, the compiler directly tole me "cannot find fortran compiler"

What should I do?

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 suggestion would be to fully remove gcc/gfortran from homebrew
and install the one pre-compiled from the hpc website.
This is actually the minimal setup (the one I use personally)

Cheers,

Olivier

> On 3 Jul 2018, at 23:42, Ruoquan Wang <email address hidden> wrote:
>
> New question #670645 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/670645
>
> I am using MacOS system 10.13 sierra. My gcc version is currently installed from homebrew, version 8.
>
> I successfully generated events: p p > ur > j n1, and output in mono-phi director.
>
> When I try to exec the generate_events in mono-phi folder with all the default params, I get error.
>
> -------------------------------------------erro info---------------------------------------------------------------------
> Error detected in "generate_events "
> write debug file /Users/isaac/Work/MG5_aMC_v2_6_3_2/mono-phi/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/isaac/Work/MG5_aMC_v2_6_3_2/mono-phi/SubProcesses/P1_qq_qn1.
> 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/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.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)
> gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c reweight.f -I../../Source/
> make: *** [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
> INFO:
> -------------------------------------------------------------------------------------------------------------------------------
>
> I found that the version is incompatible in this link
> https://answers.launchpad.net/mg5amcnlo/+question/670455
>
> but after I downgrade the version of my gcc and do it again, the compiler directly tole me "cannot find fortran compiler"
>
> What should I do?
>
>
>
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
Roberto Franceschini (franceschini-roberto) said :
#2

Hi Oliver,
   I think I am using gcc 8 from HPC, is that supposed to work? or 8 is not supported? I get a similar compilation error

MadGraph5Error : A compilation Error occurs when trying to compile /Users/roberto/MG5_aMC_v2_6_0/4ftest/SubProcesses/P1_qq_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/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c setcuts.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c get_color.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cuts.f -I../../Source/
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -w -c cluster.f -I../../Source/
            genps.f:328:25:

                  & nbranch,P,M,S,X,jac,pswgt)
                                     1
            Error: Actual argument contains too few elements for dummy argument ‘x’ (16/40) at (1)
            genps.f:60:53:

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

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

Hi,

gcc8 is indeed not yet supported.

Cheers,

Olivier

Revision history for this message
Roberto Franceschini (franceschini-roberto) said :
#4

Thanks for confirming.
Best,
Roberto

Revision history for this message
Roberto Franceschini (franceschini-roberto) said :
#5

7.3 works, just FYI.

Can you help with this problem?

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

To post a message you must log in.