compile problems

Asked by Meng Lu

i want to generate p p > a j j l- l+, i work on a server in my school whose gfortran version is [gcc version 4.1.2 20080704 (Red Hat 4.1.2-55) ], when i launch the card, it met some compile problems

generate_events run_01
Traceback (most recent call last):
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1011, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 1992, in do_generate_events
    postcmd=False)
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1037, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 966, in onecmd_orig
    return func(arg, **opt)
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 2664, in do_survey
    self.configure_directory()
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/madevent_interface.py", line 3927, in configure_directory
    self.compile(arg=[name], cwd=os.path.join(self.me_dir, 'Source'))
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/interface/extended_cmd.py", line 1105, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/madgraph/various/misc.py", line 535, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/bin/ewk_13/Source.
The compilation fails with the following output message:
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o DiscreteSampler.o DiscreteSampler.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o setrun.o setrun.f
    cd PDF; make
    cd MODEL; make
    make[1]: Entering directory `/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/bin/ewk_13/Source/PDF'
    make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
    make[1]: Entering directory `/ClusterDisks/HDN14/WorkSpace/lum/software/MG5_aMC_v2_4_3/bin/ewk_13/Source/MODEL'
    make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
     In file DiscreteSampler.f:239

            character, dimension(:), allocatable :: dimension_name
                                               1
    Error: Attribute at (1) is not allowed in a TYPE definition
    ar cru ../../lib/libpdf.a Ctq4Fn.o Ctq5Par.o Ctq5Pdf.o Partonx5.o Ctq6Pdf.o cteq3.o mrs98.o mrs98lo.o mrs98ht.o mrs99.o mrst2001.o mrst2002.o jeppe02.o pdfwrap.o opendata.o pdf.o PhotonFlux.o pdg2pdf.o NNPDFDriver.o
     In file DiscreteSampler.f:241

            type(bin) , dimension(:), allocatable :: bins
                                                1
    Error: Attribute at (1) is not allowed in a TYPE definition
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o rw_para.o rw_para.f
     In file DiscreteSampler.f:382

         & intent(inout) :: grid
                                                                          1
    Error: ALLOCATABLE attribute conflicts with DUMMY attribute at (1)
     In file DiscreteSampler.f:385

                  if (allocated(grid(i)%bins)) then
                                      1
    Error: Syntax error in argument list at (1)
     In file DiscreteSampler.f:386

                    deallocate(grid(i)%bins)
                                  1
    Error: Syntax error in DEALLOCATE statement at (1)
     In file DiscreteSampler.f:387

                  endif
                    1
    Error: Expecting END DO statement at (1)
     In file DiscreteSampler.f:388

                  if (allocated(grid(i)%dimension_name)) then
                                      1
    Error: Syntax error in argument list at (1)
     In file DiscreteSampler.f:389

how can i fix this problem.

thanks.

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
No assignee Edit question
Solved by:
Valentin Hirschi
Solved:
Last query:
Last reply:
Revision history for this message
Best Valentin Hirschi (valentin-hirschi) said :
#1

MG5aMC requires gcc version 4.6+. I therefore recommend that you update your compiler suite.
If you don't have admin rights on that particular machine, you can perform a local installation of a recent gcc compiler suite, and specify the path to the resulting gfortran compiler in the MG5aMC option 'fortran_compiler'.

This can be done either by directly modifying the file

<MG5aMC_installation_directory>/input/mg5_configuration.txt

or using the command 'set fortran_compiler <absolute_path_to_gfortran_executable>' in the MG5aMC interpreter (started with ./bin/mg5_aMC).

Revision history for this message
Meng Lu (meng-lu) said :
#3

Thanks Valentin Hirschi, that solved my question.