gfortan compilation error in MG5 v2.5.3

Asked by mazuza

Hello,

I am getting a compilation error in the latest MG5 version, v2.5.3. Although I didn't have this problem for MG5 v2.5.1 or the earlier version.
The setup on my machine can be like this:

Setting up gcc gcc493_x86_64_slc6 ...
 Setting up python 2.7.10-x86_64-slc6-gcc49 ...
 Setting up gsl 1.10-x86_64-slc6-gcc49-opt ...
 Setting up fftw 3.1.2-x86_64-slc6-gcc49-opt ...
 Setting up root 6.04.14-x86_64-slc6-gcc49-opt ...
 Setting up xrootd 4.2.3-x86_64-slc6 ...
 Setting up davix 0.6.4-x86_64-slc6 ...

The error as the following:

    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /afs/cern.ch/work/m/mghneima/MG5_2.5.3/MG5_aMC_v2_5_3/New_Nominal_LO/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 rw_events.o rw_events.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o kin_functions.o kin_functions.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o open_file.o open_file.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o basecode.o basecode.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o setrun.o setrun.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o run_printout.o run_printout.f
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o dgauss.o dgauss.f
    DiscreteSampler.f:149.9:

          use StringCast
             1
    Fatal Error: Cannot read module file 'stringcast.mod' opened at (1), because it was created by a different version of GNU Fortran
    make: *** [DiscreteSampler.o] Error 1
   make: *** Waiting for unfinished jobs....
Please try to fix this compilations issue and retry.

Thanks,
 Mazuza

Question information

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

As the error suggests, it seems that you have changed your compiler since
the last time you have compiled this output.

So make sure completely clean the compilation of Source before compiling
again, with something like:

cd /afs/cern.ch/work/m/mghneima/MG5_2.5.3/MG5_aMC_v2_5_3/New_
Nominal_LO/Source
make clean
make

On Fri, Mar 17, 2017 at 8:15 PM, Olivier Mattelaer <
<email address hidden>> wrote:

> Question #571637 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/571637
>
> Assignee: None => Valentin Hirschi
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.
>

--
Valentin

Revision history for this message
mazuza (mghneimat) said :
#2

Hello,

Thanks my problem is solved now!
I got another error after that but I fixed with: for i in `ls -d P*`; do cd $i; make clean;cd ..; done;

Error detected in "generate_events "
write debug file /afs/cern.ch/work/m/mghneima/MG5_2.5.3/MG5_aMC_v2_5_3/New_Nominal_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 /afs/cern.ch/work/m/mghneima/MG5_2.5.3/MG5_aMC_v2_5_3/New_Nominal_LO/SubProcesses/P1_qq_lvlbqqbxa.
 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: Internal error: Segmentation fault (program f951)
     Please submit a full bug report.
     See <http://bugzilla.redhat.com/bugzilla> for instructions.
     make: *** [unwgt.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

Cheers,
 Mazuza

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

Hi,

This message indicates that you use a bugged version of gfortran.
If it works when you do it manually, it means that the bug (of gfortran) is related with the multicore option of gfortran.
Thanks for the information, I will suggest to force single core compilation to the other user facing such problem.

Cheers,

Olivier