compilation error

Asked by kevin siehl

Dear Experts,

I recently downloaded Madgraph_aMC@NLO v2.3.3 on my laptop, which has Ubuntu 14.04. In order to use reweighting, I had to get numpy, which I did using
 'sudo apt-get install python-numpy'
However, after trying to run a simulation with reweighting, I got the following compilation error:

Command "generate_events " interrupted with error:
MadGraph5Error : A compilation Error occurs when trying to compile /home/kevin/MG5_aMC_v2_3_3/bin/FULL_SIM/rw_me/SubProcesses/P1_uux_wpwm_wp_csx_wm_mumvmx.
        The compilation fails with the following output message:
            touch __init__.py
            f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --fcompiler=gfortran
            Unknown vendor: "gfortran"
            running build
            running config_cc
            unifing config_cc, config, build_clib, build_ext, build commands --compiler options
            running config_fc
            unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
            running build_src
            build_src
            building extension "matrix2py" sources
            f2py options: []
            f2py:> /tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2pymodule.c
            creating /tmp/tmpolRaLm/src.linux-x86_64-2.7
            Reading fortran codes...
                Reading file 'matrix.f' (format:fix,strict)
            Line #87 in matrix.f:" DATA (NHEL(I, 1),I=1,6) / 1,-1,-1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 1),i=1,6)" is not supported. Skipping.
            Line #88 in matrix.f:" DATA (NHEL(I, 2),I=1,6) / 1,-1,-1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 2),i=1,6)" is not supported. Skipping.
            Line #89 in matrix.f:" DATA (NHEL(I, 3),I=1,6) / 1,-1,-1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 3),i=1,6)" is not supported. Skipping.
            Line #90 in matrix.f:" DATA (NHEL(I, 4),I=1,6) / 1,-1,-1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 4),i=1,6)" is not supported. Skipping.
            Line #91 in matrix.f:" DATA (NHEL(I, 5),I=1,6) / 1,-1,-1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 5),i=1,6)" is not supported. Skipping.
            Line #92 in matrix.f:" DATA (NHEL(I, 6),I=1,6) / 1,-1,-1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 6),i=1,6)" is not supported. Skipping.
            Line #93 in matrix.f:" DATA (NHEL(I, 7),I=1,6) / 1,-1,-1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 7),i=1,6)" is not supported. Skipping.
            Line #94 in matrix.f:" DATA (NHEL(I, 8),I=1,6) / 1,-1,-1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 8),i=1,6)" is not supported. Skipping.
            Line #95 in matrix.f:" DATA (NHEL(I, 9),I=1,6) / 1,-1, 1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 9),i=1,6)" is not supported. Skipping.
            Line #96 in matrix.f:" DATA (NHEL(I, 10),I=1,6) / 1,-1, 1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 10),i=1,6)" is not supported. Skipping.
            Line #97 in matrix.f:" DATA (NHEL(I, 11),I=1,6) / 1,-1, 1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 11),i=1,6)" is not supported. Skipping.
            Line #98 in matrix.f:" DATA (NHEL(I, 12),I=1,6) / 1,-1, 1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 12),i=1,6)" is not supported. Skipping.
            Line #99 in matrix.f:" DATA (NHEL(I, 13),I=1,6) / 1,-1, 1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 13),i=1,6)" is not supported. Skipping.
            Line #100 in matrix.f:" DATA (NHEL(I, 14),I=1,6) / 1,-1, 1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 14),i=1,6)" is not supported. Skipping.
            Line #101 in matrix.f:" DATA (NHEL(I, 15),I=1,6) / 1,-1, 1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 15),i=1,6)" is not supported. Skipping.
            Line #102 in matrix.f:" DATA (NHEL(I, 16),I=1,6) / 1,-1, 1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 16),i=1,6)" is not supported. Skipping.
            Line #103 in matrix.f:" DATA (NHEL(I, 17),I=1,6) / 1, 1,-1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 17),i=1,6)" is not supported. Skipping.
            Line #104 in matrix.f:" DATA (NHEL(I, 18),I=1,6) / 1, 1,-1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 18),i=1,6)" is not supported. Skipping.
            Line #105 in matrix.f:" DATA (NHEL(I, 19),I=1,6) / 1, 1,-1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 19),i=1,6)" is not supported. Skipping.
            Line #106 in matrix.f:" DATA (NHEL(I, 20),I=1,6) / 1, 1,-1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 20),i=1,6)" is not supported. Skipping.
            Line #107 in matrix.f:" DATA (NHEL(I, 21),I=1,6) / 1, 1,-1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 21),i=1,6)" is not supported. Skipping.
            Line #108 in matrix.f:" DATA (NHEL(I, 22),I=1,6) / 1, 1,-1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 22),i=1,6)" is not supported. Skipping.
            Line #109 in matrix.f:" DATA (NHEL(I, 23),I=1,6) / 1, 1,-1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 23),i=1,6)" is not supported. Skipping.
            Line #110 in matrix.f:" DATA (NHEL(I, 24),I=1,6) / 1, 1,-1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 24),i=1,6)" is not supported. Skipping.
            Line #111 in matrix.f:" DATA (NHEL(I, 25),I=1,6) / 1, 1, 1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 25),i=1,6)" is not supported. Skipping.
            Line #112 in matrix.f:" DATA (NHEL(I, 26),I=1,6) / 1, 1, 1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 26),i=1,6)" is not supported. Skipping.
            Line #113 in matrix.f:" DATA (NHEL(I, 27),I=1,6) / 1, 1, 1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 27),i=1,6)" is not supported. Skipping.
            Line #114 in matrix.f:" DATA (NHEL(I, 28),I=1,6) / 1, 1, 1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 28),i=1,6)" is not supported. Skipping.
            Line #115 in matrix.f:" DATA (NHEL(I, 29),I=1,6) / 1, 1, 1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 29),i=1,6)" is not supported. Skipping.
            Line #116 in matrix.f:" DATA (NHEL(I, 30),I=1,6) / 1, 1, 1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 30),i=1,6)" is not supported. Skipping.
            Line #117 in matrix.f:" DATA (NHEL(I, 31),I=1,6) / 1, 1, 1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 31),i=1,6)" is not supported. Skipping.
            Line #118 in matrix.f:" DATA (NHEL(I, 32),I=1,6) / 1, 1, 1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 32),i=1,6)" is not supported. Skipping.
            Line #119 in matrix.f:" DATA (NHEL(I, 33),I=1,6) /-1,-1,-1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 33),i=1,6)" is not supported. Skipping.
            Line #120 in matrix.f:" DATA (NHEL(I, 34),I=1,6) /-1,-1,-1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 34),i=1,6)" is not supported. Skipping.
            Line #121 in matrix.f:" DATA (NHEL(I, 35),I=1,6) /-1,-1,-1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 35),i=1,6)" is not supported. Skipping.
            Line #122 in matrix.f:" DATA (NHEL(I, 36),I=1,6) /-1,-1,-1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 36),i=1,6)" is not supported. Skipping.
            Line #123 in matrix.f:" DATA (NHEL(I, 37),I=1,6) /-1,-1,-1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 37),i=1,6)" is not supported. Skipping.
            Line #124 in matrix.f:" DATA (NHEL(I, 38),I=1,6) /-1,-1,-1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 38),i=1,6)" is not supported. Skipping.
            Line #125 in matrix.f:" DATA (NHEL(I, 39),I=1,6) /-1,-1,-1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 39),i=1,6)" is not supported. Skipping.
            Line #126 in matrix.f:" DATA (NHEL(I, 40),I=1,6) /-1,-1,-1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 40),i=1,6)" is not supported. Skipping.
            Line #127 in matrix.f:" DATA (NHEL(I, 41),I=1,6) /-1,-1, 1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 41),i=1,6)" is not supported. Skipping.
            Line #128 in matrix.f:" DATA (NHEL(I, 42),I=1,6) /-1,-1, 1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 42),i=1,6)" is not supported. Skipping.
            Line #129 in matrix.f:" DATA (NHEL(I, 43),I=1,6) /-1,-1, 1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 43),i=1,6)" is not supported. Skipping.
            Line #130 in matrix.f:" DATA (NHEL(I, 44),I=1,6) /-1,-1, 1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 44),i=1,6)" is not supported. Skipping.
            Line #131 in matrix.f:" DATA (NHEL(I, 45),I=1,6) /-1,-1, 1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 45),i=1,6)" is not supported. Skipping.
            Line #132 in matrix.f:" DATA (NHEL(I, 46),I=1,6) /-1,-1, 1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 46),i=1,6)" is not supported. Skipping.
            Line #133 in matrix.f:" DATA (NHEL(I, 47),I=1,6) /-1,-1, 1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 47),i=1,6)" is not supported. Skipping.
            Line #134 in matrix.f:" DATA (NHEL(I, 48),I=1,6) /-1,-1, 1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 48),i=1,6)" is not supported. Skipping.
            Line #135 in matrix.f:" DATA (NHEL(I, 49),I=1,6) /-1, 1,-1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 49),i=1,6)" is not supported. Skipping.
            Line #136 in matrix.f:" DATA (NHEL(I, 50),I=1,6) /-1, 1,-1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 50),i=1,6)" is not supported. Skipping.
            Line #137 in matrix.f:" DATA (NHEL(I, 51),I=1,6) /-1, 1,-1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 51),i=1,6)" is not supported. Skipping.
            Line #138 in matrix.f:" DATA (NHEL(I, 52),I=1,6) /-1, 1,-1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 52),i=1,6)" is not supported. Skipping.
            Line #139 in matrix.f:" DATA (NHEL(I, 53),I=1,6) /-1, 1,-1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 53),i=1,6)" is not supported. Skipping.
            Line #140 in matrix.f:" DATA (NHEL(I, 54),I=1,6) /-1, 1,-1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 54),i=1,6)" is not supported. Skipping.
            Line #141 in matrix.f:" DATA (NHEL(I, 55),I=1,6) /-1, 1,-1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 55),i=1,6)" is not supported. Skipping.
            Line #142 in matrix.f:" DATA (NHEL(I, 56),I=1,6) /-1, 1,-1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 56),i=1,6)" is not supported. Skipping.
            Line #143 in matrix.f:" DATA (NHEL(I, 57),I=1,6) /-1, 1, 1, 1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 57),i=1,6)" is not supported. Skipping.
            Line #144 in matrix.f:" DATA (NHEL(I, 58),I=1,6) /-1, 1, 1, 1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 58),i=1,6)" is not supported. Skipping.
            Line #145 in matrix.f:" DATA (NHEL(I, 59),I=1,6) /-1, 1, 1, 1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 59),i=1,6)" is not supported. Skipping.
            Line #146 in matrix.f:" DATA (NHEL(I, 60),I=1,6) /-1, 1, 1, 1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 60),i=1,6)" is not supported. Skipping.
            Line #147 in matrix.f:" DATA (NHEL(I, 61),I=1,6) /-1, 1, 1,-1,-1, 1/"
                analyzeline: implied-DO list "(nhel(i, 61),i=1,6)" is not supported. Skipping.
            Line #148 in matrix.f:" DATA (NHEL(I, 62),I=1,6) /-1, 1, 1,-1,-1,-1/"
                analyzeline: implied-DO list "(nhel(i, 62),i=1,6)" is not supported. Skipping.
            Line #149 in matrix.f:" DATA (NHEL(I, 63),I=1,6) /-1, 1, 1,-1, 1, 1/"
                analyzeline: implied-DO list "(nhel(i, 63),i=1,6)" is not supported. Skipping.
            Line #150 in matrix.f:" DATA (NHEL(I, 64),I=1,6) /-1, 1, 1,-1, 1,-1/"
                analyzeline: implied-DO list "(nhel(i, 64),i=1,6)" is not supported. Skipping.
                Reading file 'coupl.inc' (format:fix)
            Line #236 in matrix.f:" DATA (CF(I, 1),I= 1, 1) / 9/"
                analyzeline: implied-DO list "(cf(i, 1),i= 1, 1)" is not supported. Skipping.
                Reading file 'coupl.inc' (format:fix)
            Line #311 in matrix.f:" CALL SETPARA(PATH) !first call to setup the paramaters "
                analyzeline: No name/args pattern found for line.
            Post-processing...
                Block: matrix2py
                                Block: smatrixhel
                                Block: smatrix
                                Block: matrix
                                Block: get_me
                                Block: initialise
            Post-processing (stage 2)...
            Building modules...
                Building module "matrix2py"...
                        Constructing wrapper function "smatrixhel"...
                          ans = smatrixhel(p,hel)
                        Constructing wrapper function "smatrix"...
                          ans = smatrix(p)
                        Creating wrapper for Fortran function "matrix"("matrix")...
                        Constructing wrapper function "matrix"...
                          matrix = matrix(p,nhel,ic)
                        Constructing wrapper function "get_me"...
                          ans = get_me(p,alphas,nhel)
                        Constructing wrapper function "initialise"...
                          initialise(path)
                        Constructing COMMON block support for "heluserchoice"...
                          userhel
                        Constructing COMMON block support for "widths"...
                          mdl_wh1,mdl_wtau,mdl_ww,mdl_wt,mdl_wz,mdl_wh
                        Constructing COMMON block support for "rscale"...
                          mu_r
                        Constructing COMMON block support for "weak"...
      gal
                        Constructing COMMON block support for "couplings"...
                          gc_13,gc_3,gc_4,gc_6,gc_38,gc_39,gc_53,gc_55,gc_71,gc_72,gc_73,gc_79,gc_91,gc_93,gc_94,gc_109,gc_110,gc_112,gc_113,gc_114,gc_115,gc_130,gc_145
                        Constructing COMMON block support for "strong"...
                          g
                        Constructing COMMON block support for "masses"...
                          mdl_mp,mdl_mt,mdl_mw,mdl_mz,mdl_mta,mdl_mb,mdl_mh
                Wrote C/API module "matrix2py" to file "/tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2pymodule.c"
                Fortran 77 wrappers are saved to "/tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f"
              adding '/tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c' to sources.
              adding '/tmp/tmpolRaLm/src.linux-x86_64-2.7' to include_dirs.
            copying /usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpolRaLm/src.linux-x86_64-2.7
            copying /usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpolRaLm/src.linux-x86_64-2.7
              adding '/tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f' to sources.
            build_src: building npy-pkg config files
            running build_ext
            customize UnixCCompiler
            customize UnixCCompiler using build_ext
            customize Gnu95FCompiler
            Found executable /usr/bin/gfortran
            customize Gnu95FCompiler using build_ext
            building 'matrix2py' extension
            compiling C sources
            C compiler: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC

            creating /tmp/tmpolRaLm/tmp
            creating /tmp/tmpolRaLm/tmp/tmpolRaLm
            creating /tmp/tmpolRaLm/tmp/tmpolRaLm/src.linux-x86_64-2.7
            compile options: '-I/tmp/tmpolRaLm/src.linux-x86_64-2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
            x86_64-linux-gnu-gcc: /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c
            In file included from /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c:2:0:
            /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.h:7:20: fatal error: Python.h: No such file or directory
             #include "Python.h"
                                ^
            compilation terminated.
            In file included from /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c:2:0:
            /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.h:7:20: fatal error: Python.h: No such file or directory
             #include "Python.h"
                                ^
            compilation terminated.
            error: Command "x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/tmpolRaLm/src.linux-x86_64-2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c -o /tmp/tmpolRaLm/tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.o" failed with exit status 1
                                          make: *** [matrix2py.so] Error 1

        Please try to fix this compilations issue and retry.
        Help might be found at https://answers.launchpad.net/madgraph5.
        If you think that this is a bug, you can report this at https://bugs.launchpad.net/madgraph5
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in '/home/kevin/MG5_aMC_v2_3_3/bin/FULL_SIM/run_01_test_run_debug.log'.
Please attach this file to your report.

Any help would be appreciated.
Thanks

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
Best Olivier Mattelaer (olivier-mattelaer) said :
#1

Dear Kevin,

Thanks for reporting this. This is very useful.
Using f2py in this module is serving as test on how easy it is to install and if we should move forward to include it in more project in the future.
So feedback on that is extremely useful.

So I see three type of message:
> Line #90 in matrix.f:" DATA (NHEL(I, 4),I=1,6) / 1,-1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 4),i=1,6)" is not supported. Skipping.

Looks like those can be ignored since those are not linked in the python wrapper.

> Line #311 in matrix.f:" CALL SETPARA(PATH) !first call to setup the paramaters "
> analyze line: No name/args pattern found for line.

This sounds more a warning than anything else. I did not found more info so far on this.
I will continue to look for it, but for the moment I will assume that this is just a warning

> /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.h:7:20: fatal error: Python.h: No such file or directory
> #include "Python.h" ^

So this is the real error. Looks like on some system, the python installed do not contain the required library to be properly linked.
Could you try to install python-dev via:
sudo apt-get install python-dev

and then retry?

Thanks a lot,

Olivier

> On Feb 9, 2016, at 17:27, kevin siehl <email address hidden> wrote:
>
> New question #284871 on MadGraph5_aMC@NLO:
> https://answers.launchpad.net/mg5amcnlo/+question/284871
>
> Dear Experts,
>
> I recently downloaded Madgraph_aMC@NLO v2.3.3 on my laptop, which has Ubuntu 14.04. In order to use reweighting, I had to get numpy, which I did using
> 'sudo apt-get install python-numpy'
> However, after trying to run a simulation with reweighting, I got the following compilation error:
>
> Command "generate_events " interrupted with error:
> MadGraph5Error : A compilation Error occurs when trying to compile /home/kevin/MG5_aMC_v2_3_3/bin/FULL_SIM/rw_me/SubProcesses/P1_uux_wpwm_wp_csx_wm_mumvmx.
> The compilation fails with the following output message:
> touch __init__.py
> f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py --fcompiler=gfortran
> Unknown vendor: "gfortran"
> running build
> running config_cc
> unifing config_cc, config, build_clib, build_ext, build commands --compiler options
> running config_fc
> unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
> running build_src
> build_src
> building extension "matrix2py" sources
> f2py options: []
> f2py:> /tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2pymodule.c
> creating /tmp/tmpolRaLm/src.linux-x86_64-2.7
> Reading fortran codes...
> Reading file 'matrix.f' (format:fix,strict)
> Line #87 in matrix.f:" DATA (NHEL(I, 1),I=1,6) / 1,-1,-1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 1),i=1,6)" is not supported. Skipping.
> Line #88 in matrix.f:" DATA (NHEL(I, 2),I=1,6) / 1,-1,-1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 2),i=1,6)" is not supported. Skipping.
> Line #89 in matrix.f:" DATA (NHEL(I, 3),I=1,6) / 1,-1,-1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 3),i=1,6)" is not supported. Skipping.
> Line #90 in matrix.f:" DATA (NHEL(I, 4),I=1,6) / 1,-1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 4),i=1,6)" is not supported. Skipping.
> Line #91 in matrix.f:" DATA (NHEL(I, 5),I=1,6) / 1,-1,-1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 5),i=1,6)" is not supported. Skipping.
> Line #92 in matrix.f:" DATA (NHEL(I, 6),I=1,6) / 1,-1,-1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 6),i=1,6)" is not supported. Skipping.
> Line #93 in matrix.f:" DATA (NHEL(I, 7),I=1,6) / 1,-1,-1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 7),i=1,6)" is not supported. Skipping.
> Line #94 in matrix.f:" DATA (NHEL(I, 8),I=1,6) / 1,-1,-1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 8),i=1,6)" is not supported. Skipping.
> Line #95 in matrix.f:" DATA (NHEL(I, 9),I=1,6) / 1,-1, 1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 9),i=1,6)" is not supported. Skipping.
> Line #96 in matrix.f:" DATA (NHEL(I, 10),I=1,6) / 1,-1, 1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 10),i=1,6)" is not supported. Skipping.
> Line #97 in matrix.f:" DATA (NHEL(I, 11),I=1,6) / 1,-1, 1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 11),i=1,6)" is not supported. Skipping.
> Line #98 in matrix.f:" DATA (NHEL(I, 12),I=1,6) / 1,-1, 1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 12),i=1,6)" is not supported. Skipping.
> Line #99 in matrix.f:" DATA (NHEL(I, 13),I=1,6) / 1,-1, 1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 13),i=1,6)" is not supported. Skipping.
> Line #100 in matrix.f:" DATA (NHEL(I, 14),I=1,6) / 1,-1, 1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 14),i=1,6)" is not supported. Skipping.
> Line #101 in matrix.f:" DATA (NHEL(I, 15),I=1,6) / 1,-1, 1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 15),i=1,6)" is not supported. Skipping.
> Line #102 in matrix.f:" DATA (NHEL(I, 16),I=1,6) / 1,-1, 1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 16),i=1,6)" is not supported. Skipping.
> Line #103 in matrix.f:" DATA (NHEL(I, 17),I=1,6) / 1, 1,-1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 17),i=1,6)" is not supported. Skipping.
> Line #104 in matrix.f:" DATA (NHEL(I, 18),I=1,6) / 1, 1,-1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 18),i=1,6)" is not supported. Skipping.
> Line #105 in matrix.f:" DATA (NHEL(I, 19),I=1,6) / 1, 1,-1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 19),i=1,6)" is not supported. Skipping.
> Line #106 in matrix.f:" DATA (NHEL(I, 20),I=1,6) / 1, 1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 20),i=1,6)" is not supported. Skipping.
> Line #107 in matrix.f:" DATA (NHEL(I, 21),I=1,6) / 1, 1,-1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 21),i=1,6)" is not supported. Skipping.
> Line #108 in matrix.f:" DATA (NHEL(I, 22),I=1,6) / 1, 1,-1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 22),i=1,6)" is not supported. Skipping.
> Line #109 in matrix.f:" DATA (NHEL(I, 23),I=1,6) / 1, 1,-1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 23),i=1,6)" is not supported. Skipping.
> Line #110 in matrix.f:" DATA (NHEL(I, 24),I=1,6) / 1, 1,-1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 24),i=1,6)" is not supported. Skipping.
> Line #111 in matrix.f:" DATA (NHEL(I, 25),I=1,6) / 1, 1, 1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 25),i=1,6)" is not supported. Skipping.
> Line #112 in matrix.f:" DATA (NHEL(I, 26),I=1,6) / 1, 1, 1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 26),i=1,6)" is not supported. Skipping.
> Line #113 in matrix.f:" DATA (NHEL(I, 27),I=1,6) / 1, 1, 1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 27),i=1,6)" is not supported. Skipping.
> Line #114 in matrix.f:" DATA (NHEL(I, 28),I=1,6) / 1, 1, 1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 28),i=1,6)" is not supported. Skipping.
> Line #115 in matrix.f:" DATA (NHEL(I, 29),I=1,6) / 1, 1, 1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 29),i=1,6)" is not supported. Skipping.
> Line #116 in matrix.f:" DATA (NHEL(I, 30),I=1,6) / 1, 1, 1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 30),i=1,6)" is not supported. Skipping.
> Line #117 in matrix.f:" DATA (NHEL(I, 31),I=1,6) / 1, 1, 1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 31),i=1,6)" is not supported. Skipping.
> Line #118 in matrix.f:" DATA (NHEL(I, 32),I=1,6) / 1, 1, 1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 32),i=1,6)" is not supported. Skipping.
> Line #119 in matrix.f:" DATA (NHEL(I, 33),I=1,6) /-1,-1,-1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 33),i=1,6)" is not supported. Skipping.
> Line #120 in matrix.f:" DATA (NHEL(I, 34),I=1,6) /-1,-1,-1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 34),i=1,6)" is not supported. Skipping.
> Line #121 in matrix.f:" DATA (NHEL(I, 35),I=1,6) /-1,-1,-1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 35),i=1,6)" is not supported. Skipping.
> Line #122 in matrix.f:" DATA (NHEL(I, 36),I=1,6) /-1,-1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 36),i=1,6)" is not supported. Skipping.
> Line #123 in matrix.f:" DATA (NHEL(I, 37),I=1,6) /-1,-1,-1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 37),i=1,6)" is not supported. Skipping.
> Line #124 in matrix.f:" DATA (NHEL(I, 38),I=1,6) /-1,-1,-1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 38),i=1,6)" is not supported. Skipping.
> Line #125 in matrix.f:" DATA (NHEL(I, 39),I=1,6) /-1,-1,-1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 39),i=1,6)" is not supported. Skipping.
> Line #126 in matrix.f:" DATA (NHEL(I, 40),I=1,6) /-1,-1,-1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 40),i=1,6)" is not supported. Skipping.
> Line #127 in matrix.f:" DATA (NHEL(I, 41),I=1,6) /-1,-1, 1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 41),i=1,6)" is not supported. Skipping.
> Line #128 in matrix.f:" DATA (NHEL(I, 42),I=1,6) /-1,-1, 1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 42),i=1,6)" is not supported. Skipping.
> Line #129 in matrix.f:" DATA (NHEL(I, 43),I=1,6) /-1,-1, 1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 43),i=1,6)" is not supported. Skipping.
> Line #130 in matrix.f:" DATA (NHEL(I, 44),I=1,6) /-1,-1, 1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 44),i=1,6)" is not supported. Skipping.
> Line #131 in matrix.f:" DATA (NHEL(I, 45),I=1,6) /-1,-1, 1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 45),i=1,6)" is not supported. Skipping.
> Line #132 in matrix.f:" DATA (NHEL(I, 46),I=1,6) /-1,-1, 1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 46),i=1,6)" is not supported. Skipping.
> Line #133 in matrix.f:" DATA (NHEL(I, 47),I=1,6) /-1,-1, 1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 47),i=1,6)" is not supported. Skipping.
> Line #134 in matrix.f:" DATA (NHEL(I, 48),I=1,6) /-1,-1, 1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 48),i=1,6)" is not supported. Skipping.
> Line #135 in matrix.f:" DATA (NHEL(I, 49),I=1,6) /-1, 1,-1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 49),i=1,6)" is not supported. Skipping.
> Line #136 in matrix.f:" DATA (NHEL(I, 50),I=1,6) /-1, 1,-1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 50),i=1,6)" is not supported. Skipping.
> Line #137 in matrix.f:" DATA (NHEL(I, 51),I=1,6) /-1, 1,-1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 51),i=1,6)" is not supported. Skipping.
> Line #138 in matrix.f:" DATA (NHEL(I, 52),I=1,6) /-1, 1,-1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 52),i=1,6)" is not supported. Skipping.
> Line #139 in matrix.f:" DATA (NHEL(I, 53),I=1,6) /-1, 1,-1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 53),i=1,6)" is not supported. Skipping.
> Line #140 in matrix.f:" DATA (NHEL(I, 54),I=1,6) /-1, 1,-1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 54),i=1,6)" is not supported. Skipping.
> Line #141 in matrix.f:" DATA (NHEL(I, 55),I=1,6) /-1, 1,-1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 55),i=1,6)" is not supported. Skipping.
> Line #142 in matrix.f:" DATA (NHEL(I, 56),I=1,6) /-1, 1,-1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 56),i=1,6)" is not supported. Skipping.
> Line #143 in matrix.f:" DATA (NHEL(I, 57),I=1,6) /-1, 1, 1, 1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 57),i=1,6)" is not supported. Skipping.
> Line #144 in matrix.f:" DATA (NHEL(I, 58),I=1,6) /-1, 1, 1, 1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 58),i=1,6)" is not supported. Skipping.
> Line #145 in matrix.f:" DATA (NHEL(I, 59),I=1,6) /-1, 1, 1, 1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 59),i=1,6)" is not supported. Skipping.
> Line #146 in matrix.f:" DATA (NHEL(I, 60),I=1,6) /-1, 1, 1, 1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 60),i=1,6)" is not supported. Skipping.
> Line #147 in matrix.f:" DATA (NHEL(I, 61),I=1,6) /-1, 1, 1,-1,-1, 1/"
> analyzeline: implied-DO list "(nhel(i, 61),i=1,6)" is not supported. Skipping.
> Line #148 in matrix.f:" DATA (NHEL(I, 62),I=1,6) /-1, 1, 1,-1,-1,-1/"
> analyzeline: implied-DO list "(nhel(i, 62),i=1,6)" is not supported. Skipping.
> Line #149 in matrix.f:" DATA (NHEL(I, 63),I=1,6) /-1, 1, 1,-1, 1, 1/"
> analyzeline: implied-DO list "(nhel(i, 63),i=1,6)" is not supported. Skipping.
> Line #150 in matrix.f:" DATA (NHEL(I, 64),I=1,6) /-1, 1, 1,-1, 1,-1/"
> analyzeline: implied-DO list "(nhel(i, 64),i=1,6)" is not supported. Skipping.
> Reading file 'coupl.inc' (format:fix)
> Line #236 in matrix.f:" DATA (CF(I, 1),I= 1, 1) / 9/"
> analyzeline: implied-DO list "(cf(i, 1),i= 1, 1)" is not supported. Skipping.
> Reading file 'coupl.inc' (format:fix)
> Line #311 in matrix.f:" CALL SETPARA(PATH) !first call to setup the paramaters "
> analyzeline: No name/args pattern found for line.
> Post-processing...
> Block: matrix2py
> Block: smatrixhel
> Block: smatrix
> Block: matrix
> Block: get_me
> Block: initialise
> Post-processing (stage 2)...
> Building modules...
> Building module "matrix2py"...
> Constructing wrapper function "smatrixhel"...
> ans = smatrixhel(p,hel)
> Constructing wrapper function "smatrix"...
> ans = smatrix(p)
> Creating wrapper for Fortran function "matrix"("matrix")...
> Constructing wrapper function "matrix"...
> matrix = matrix(p,nhel,ic)
> Constructing wrapper function "get_me"...
> ans = get_me(p,alphas,nhel)
> Constructing wrapper function "initialise"...
> initialise(path)
> Constructing COMMON block support for "heluserchoice"...
> userhel
> Constructing COMMON block support for "widths"...
> mdl_wh1,mdl_wtau,mdl_ww,mdl_wt,mdl_wz,mdl_wh
> Constructing COMMON block support for "rscale"...
> mu_r
> Constructing COMMON block support for "weak"...
> gal
> Constructing COMMON block support for "couplings"...
> gc_13,gc_3,gc_4,gc_6,gc_38,gc_39,gc_53,gc_55,gc_71,gc_72,gc_73,gc_79,gc_91,gc_93,gc_94,gc_109,gc_110,gc_112,gc_113,gc_114,gc_115,gc_130,gc_145
> Constructing COMMON block support for "strong"...
> g
> Constructing COMMON block support for "masses"...
> mdl_mp,mdl_mt,mdl_mw,mdl_mz,mdl_mta,mdl_mb,mdl_mh
> Wrote C/API module "matrix2py" to file "/tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2pymodule.c"
> Fortran 77 wrappers are saved to "/tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f"
> adding '/tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c' to sources.
> adding '/tmp/tmpolRaLm/src.linux-x86_64-2.7' to include_dirs.
> copying /usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.c -> /tmp/tmpolRaLm/src.linux-x86_64-2.7
> copying /usr/lib/python2.7/dist-packages/numpy/f2py/src/fortranobject.h -> /tmp/tmpolRaLm/src.linux-x86_64-2.7
> adding '/tmp/tmpolRaLm/src.linux-x86_64-2.7/matrix2py-f2pywrappers.f' to sources.
> build_src: building npy-pkg config files
> running build_ext
> customize UnixCCompiler
> customize UnixCCompiler using build_ext
> customize Gnu95FCompiler
> Found executable /usr/bin/gfortran
> customize Gnu95FCompiler using build_ext
> building 'matrix2py' extension
> compiling C sources
> C compiler: x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC
>
> creating /tmp/tmpolRaLm/tmp
> creating /tmp/tmpolRaLm/tmp/tmpolRaLm
> creating /tmp/tmpolRaLm/tmp/tmpolRaLm/src.linux-x86_64-2.7
> compile options: '-I/tmp/tmpolRaLm/src.linux-x86_64-2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c'
> x86_64-linux-gnu-gcc: /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c
> In file included from /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c:2:0:
> /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.h:7:20: fatal error: Python.h: No such file or directory
> #include "Python.h"
> ^
> compilation terminated.
> In file included from /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c:2:0:
> /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.h:7:20: fatal error: Python.h: No such file or directory
> #include "Python.h"
> ^
> compilation terminated.
> error: Command "x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/tmp/tmpolRaLm/src.linux-x86_64-2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c /tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.c -o /tmp/tmpolRaLm/tmp/tmpolRaLm/src.linux-x86_64-2.7/fortranobject.o" failed with exit status 1
> make: *** [matrix2py.so] Error 1
>
> Please try to fix this compilations issue and retry.
> Help might be found at https://answers.launchpad.net/madgraph5.
> If you think that this is a bug, you can report this at https://bugs.launchpad.net/madgraph5
> Please report this bug on https://bugs.launchpad.net/madgraph5
> More information is found in '/home/kevin/MG5_aMC_v2_3_3/bin/FULL_SIM/run_01_test_run_debug.log'.
> Please attach this file to your report.
>
>
> Any help would be appreciated.
> Thanks
>
> --
> You received this question notification because you are an answer
> contact for MadGraph5_aMC@NLO.

Revision history for this message
kevin siehl (kevin-siehl) said :
#2

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
kevin siehl (kevin-siehl) said :
#3

That solvled the problem. Everything now runs as it is supposed to.