compilation error during launch (tutorial)

Asked by Derek Li

Greetings,

I am trying to go through the built-in tutorial in the most recent MadGraph version. I was able to complete the 'output' step (though for that I am not able to view the Feynman diagrams in index.html--the corresponding files are missing). The subsequent error occurred when I launched the the output to generate events. For the options, I typed '0' twice. The full message is attached below. Btw, I am have gfortran and g++ version 11.4. Thanks in advance!

INFO: Update the dependent parameter of the param_card.dat
WARNING: update the strong coupling value (alpha_s) to the value from the pdf selected: 0.13
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
Not able to open file /mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/crossx.html since no program configured.Please set one in ./input/mg5_configuration.txt
compile Source Directory
Using random number seed offset = 21
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: Compiling for process 1/2.
INFO: P1_gg_ttx
Error detected in "generate_events run_01"
write debug file /mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/SubProcesses/P1_gg_ttx.
        The compilation fails with the following output message:
            gfortran -w -fPIC -O -ffixed-line-length-132 -w -c symmetry.f -I../../Source/ -I../../Source/PDF/gammaUPC
            gfortran -w -fPIC -O -ffixed-line-length-132 -w -c idenparts.f -I../../Source/ -I../../Source/PDF/gammaUPC
            make: Warning: File '../../lib/libbias.a' has modification time 0.091 s in the future
            cd ../../Source/PDF; make
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            make[1]: Entering directory '/mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/Source/PDF'
            echo "remove previous compilation ElectroweakFluxDriver.o ../../lib/libgammaUPC.a pdfwrap_lhapdf.o"
            remove previous compilation ElectroweakFluxDriver.o ../../lib/libgammaUPC.a pdfwrap_lhapdf.o
            echo "need to compile opendata.o PhotonFlux.o ElectroweakFlux_dummy.o Ctq6Pdf.o pdfwrap.o pdf.o pdg2pdf.o NNPDFDriver.o eepdf.o gridpdfaux.o dfint.o kerset.o"
            need to compile opendata.o PhotonFlux.o ElectroweakFlux_dummy.o Ctq6Pdf.o pdfwrap.o pdf.o pdg2pdf.o NNPDFDriver.o eepdf.o gridpdfaux.o dfint.o kerset.o
            rm -rf ElectroweakFluxDriver.o ../../lib/libgammaUPC.a pdfwrap_lhapdf.o
            gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pdg2pdf.o pdg2pdf.f
            eepdf.inc:1:2:

                1 | ../eepdf.inc
                  | 1
            Error: Non-numeric character in statement label at (1)
            eepdf.inc:1:3:

                1 | ../eepdf.inc
                  | 1
            Error: Invalid character in name at (1)
            pdg2pdf.f:361:33:

              361 | double precision comp1(n_ee), comp2(n_ee)
                  | 1
            Error: Symbol ‘n_ee’ at (1) has no IMPLICIT type
            make[1]: *** [<builtin>: pdg2pdf.o] Error 1
            make[1]: Leaving directory '/mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/Source/PDF'
            make: *** [makefile:71: ../../lib/libpdf.a] Error 2
            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:

Question information

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

Are you on a windows machine? Did you generate the code from a windows machine?

If that's not the issue, then it might be that you are using a version of gfortran that we have never tested.
What is the version of gfortran that you are using?

Also could you copy paste the content of
/mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/Source/eepdf.inc
maybe the file is indeed corrupted or something like that.

Cheers,

Olivier

Revision history for this message
Derek Li (dereklogos) said :
#2

Thanks for the quick reply! I am running a linux subsystem on windows.

I am using a gfortran of version 11.4 installed in Ubuntu, brief description copied below:

GNU Fortran (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The content of my eepdf.inc file is:

      ! Some stuff relevant for the dressed-lepton luminosity
      !
      ! the number of components
      integer n_ee
      parameter (n_ee = 4)
      ! arrays to store the components before combining them
      double precision ee_components(n_ee)
      common / to_ee_components / ee_components

Thanks,
Derek

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

Ok so the file is "correct" and the version of gfortran is current enough, so this is quite surprising...

According to google such error is linked to a format issue between f90 and f77 standard. So I guess that we do have a missmatch (not sure what it is) and not sure when you are the first to face such issue.

Can you try to remove all the line with the "!" (those are comment line so does not matter)
and maybe add one additional space to each line and be sure that each line starts by at least 7 spaces.

Then you can do (within MG5aMC interface)
launch MY_FIRST_MG5_RUN
to check if this is compiling/working.

If this fix the issue then I will push the same (sorry to ask you to do such test, this is the only way since i do not reproduce such issue).

Thanks,

Olivier

Revision history for this message
Derek Li (dereklogos) said :
#4

Hi Olivier,

Thanks for the suggestion. Unfortunately, the problem persists, yet a slightly different error message is produced this time, apparently involving 'make' rather than 'fortran'. It is shown below.

INFO: Update the dependent parameter of the param_card.dat
Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
Not able to open file /mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/crossx.html since no program configured.Please set one in ./input/mg5_configuration.txt
compile Source Directory
Using random number seed offset = 30
INFO: Running Survey
Creating Jobs
Working on SubProcesses
INFO: Compiling for process 1/2.
INFO: P1_gg_ttx
Error detected in "generate_events run_01"
write debug file /mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/mg5amcnlo
str : A compilation Error occurs when trying to compile /mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/SubProcesses/P1_gg_ttx.
        The compilation fails with the following output message:
            make: Warning: File '../../lib/libbias.a' has modification time 0.17 s in the future
            cd ../../Source/PDF; make
            make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule.
            make[1]: Entering directory '/mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/Source/PDF'
            echo "remove previous compilation ElectroweakFluxDriver.o ../../lib/libgammaUPC.a pdfwrap_lhapdf.o"
            remove previous compilation ElectroweakFluxDriver.o ../../lib/libgammaUPC.a pdfwrap_lhapdf.o
            echo "need to compile opendata.o PhotonFlux.o ElectroweakFlux_dummy.o Ctq6Pdf.o pdfwrap.o pdf.o pdg2pdf.o NNPDFDriver.o eepdf.o gridpdfaux.o dfint.o kerset.o"
            need to compile opendata.o PhotonFlux.o ElectroweakFlux_dummy.o Ctq6Pdf.o pdfwrap.o pdf.o pdg2pdf.o NNPDFDriver.o eepdf.o gridpdfaux.o dfint.o kerset.o
            rm -rf ElectroweakFluxDriver.o ../../lib/libgammaUPC.a pdfwrap_lhapdf.o
            gfortran -w -fPIC -O -ffixed-line-length-132 -c -o pdg2pdf.o pdg2pdf.f
            eepdf.inc:1:2:

                1 | ../eepdf.inc
                  | 1
            Error: Non-numeric character in statement label at (1)
            eepdf.inc:1:3:

                1 | ../eepdf.inc
                  | 1
            Error: Invalid character in name at (1)
            pdg2pdf.f:361:33:

              361 | double precision comp1(n_ee), comp2(n_ee)
                  | 1
            Error: Symbol ‘n_ee’ at (1) has no IMPLICIT type
            make[1]: *** [<builtin>: pdg2pdf.o] Error 1
            make[1]: Leaving directory '/mnt/c/Users/derek/physics/hep-sim/MG5_aMC_v3_5_1/MY_FIRST_MG5_RUN/Source/PDF'
            make: *** [makefile:71: ../../lib/libpdf.a] Error 2

For reference as well, here is my eepdf.inc modified accordingly, with no beginning or ending spaces.
       integer n_ee
       parameter (n_ee = 4)
       double precision ee_components(n_ee)
       common / to_ee_components / ee_components

Thanks again,
Derek

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

Ok so this is not my previous "idea".

I have look a bit deeper into that file, and they are a weird behaviour:
They are two identical copy of the problematic file:
I do have
Source/eepdf.inc
and
Source/PDF/eepdf.inc

According to your error message this is actually Source/PDF/eepdf.inc which is problematic.
In my system, the two files are 100% identical (but physically different).
I would not be surprised that on your system, you observe something different (maybe related to windows in a way or another).
Actually, even on my OS, I would have expected something different (to get one file and a symlink pointing to that file in the second directory). In term of OS, I have tested osx 11 and rocky 8 --a clone of redhat8-- [both behaves the same way].

So the first point is to check the content of "Source/PDF/eepdf.inc" to check if that content is the same as the one written above.
If not then we have a clear culprit. Fixing that specific directory should then be easy.

But obviously one would like to fix this once and for all.
My guess is that the error/issue is already in the Template/Common/Source/PDF/eepdf.inc file (which I would expect to be symlink and which might be something else on your system --which can make sense if you untar the file on the windows OS--).

If you are only interested in Leading Order computation, then remove that file and then copy the file Template/Common/Source/eepdf.inc to Template/Common/Source/PDF/eepdf.inc is likely to be enough to fix this issue in the future.

However, if you plot to do some run at NLO accuracy, then you will need to fix 27 other files with the same type of issue.
So in that case, it is likely better to reinstall MG5aMC directly from the Ubuntu side.

I hope that this suggestion/idea is more useful than the previous one.

Cheers,

Olivier

Revision history for this message
Derek Li (dereklogos) said :
#6

Hi Olivier,

That is the culprit indeed! The content of my eepdf.inc inside the PDF folder is simply

../eepdf.inc

rather than actually having the content of the referred file.

Better yet, per your suggestion, I was able to remove the error entirely by 'untarring' within the Linux subsystem rather than unzipping inside Windows. In hind sight this is a silly mistake, but I am truly a new Linux user.

Thanks for all the expedient help along the way!

Derek

Revision history for this message
Derek Li (dereklogos) said :
#7

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
fgjg (yjhk) said :
#8

I noticed you're experiencing a compilation error during your tutorial launch – that can be frustrating!If you're looking for solutions, you might want to check out the dubaimaintenance section of the tutorial or seek assistance from the community. They might have some helpful tips to get you back on track! Good luck! https://dubaiimaitenance.com/