Compilation Error with Reweighting

Asked by Seth Koren

Hello,

I recently attempted to use reweighting on an implementation of MadGraph 2.5.4 I have on a remote cluster. It had been working fine a couple months ago, but now it errors out. The error looks different depending on whether I run /bin/generate_events on the home node or submit a job to do it on the cluster proper, but it's some kind of compilation error each time. I have no idea what to do, so any help would be useful.

To simplify things, I've just generated events as
generate p p > e+ e-
then using the default run card (except for False = use_syst) and just uncommenting the suggested test in the reweight_card of changing \alpha_EM = 1/130 (and commenting out change mode NLO).

When I run it myself on the home node I get a run_01_tag_1_debug.log file telling me:

generate_events
Traceback (most recent call last):
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1415, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/madevent_interface.py", line 2118, in do_generate_events
    self.exec_cmd('reweight -from_cards', postcmd=False)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1442, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/common_run_interface.py", line 1917, in do_reweight
    raise Exception, "Some of the run failed: Please read %s_%s_debug.log" % (f, self.run_tag)

Then it points me to the file run_01/unweighted_events.lhe.gz_0.lhe_tag_1_debug.log which reads:

reweight /home/koren/test/testppeeNew/Events/run_01/unweighted_events.lhe.gz_0.lhe -from_cards --multicore=create
Traceback (most recent call last):
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1415, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/common_run_interface.py", line 1953, in do_reweight
    reweight_cmd.import_command_file(path)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/interface/extended_cmd.py", line 1557, in import_command_file
    self.exec_cmd(line, precmd=True)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/interface/extended_cmd.py", line 1442, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/interface/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/various/misc.py", line 99, in f_with_no_logger
    out = f(self, *args, **opt)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/interface/reweight_interface.py", line 677, in do_launch
    weight = self.calculate_weight(event)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/interface/reweight_interface.py", line 896, in calculate_weight
    w_orig = self.calculate_matrix_element(event, 0, space)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/interface/reweight_interface.py", line 1101, in calculate_matrix_element
    misc.multiple_try(nb_retry,sleep)(misc.compile)(['matrix2py.so'], cwd=Pdir)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/various/misc.py", line 354, in deco_f_retry
    return f(*args, **opt)
  File "/home/koren/MG5_aMC_v2_5_2/madgraph/various/misc.py", line 479, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /home/koren/test/testppeeNew/rw_me/SubProcesses/P1_uux_epem.
The compilation fails with the following output message:
    touch __init__.py
    f2py -L../../lib/ -ldhelas -lmodel -c matrix.f -m matrix2py
    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/tmpJ3KIvw/src.linux-x86_64-2.7/matrix2pymodule.c
    creating /tmp/tmpJ3KIvw/src.linux-x86_64-2.7
    analyzeline: Failed to evaluate '(nexternal+1)*6'. Ignoring: cannot concatenate 'str' and 'int' objects
    Reading fortran codes...
     Reading file 'matrix.f' (format:fix,strict)
    Line #9 in matrix.f:" PARAMETER ( NCOMB=16)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #55 in matrix.f:" PARAMETER (NINITIAL=2)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #57 in matrix.f:" PARAMETER (NPOLENTRIES=(NEXTERNAL+1)*6)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #57 in matrix.f:" PARAMETER (NPOLENTRIES=(NEXTERNAL+1)*6)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #57 in matrix.f:" PARAMETER (NPOLENTRIES=(NEXTERNAL+1)*6)"
     determineexprtype: could not determine expressions ('(nexternal+1)*6') type.
    Line #59 in matrix.f:" PARAMETER ( NCOMB=16)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #59 in matrix.f:" PARAMETER ( NCOMB=16)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #64 in matrix.f:" PARAMETER (HELAVGFACTOR=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #64 in matrix.f:" PARAMETER (HELAVGFACTOR=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #64 in matrix.f:" PARAMETER (HELAVGFACTOR=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #77 in matrix.f:" DATA (BEAMS_HELAVGFACTOR(I),I=1,2)/2,2/"
     analyzeline: implied-DO list "(beams_helavgfactor(i),i=1,2)" is not supported. Skipping.
    Line #90 in matrix.f:" DATA (NHEL(I, 1),I=1,4) / 1,-1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 1),i=1,4)" is not supported. Skipping.
    Line #91 in matrix.f:" DATA (NHEL(I, 2),I=1,4) / 1,-1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 2),i=1,4)" is not supported. Skipping.
    Line #92 in matrix.f:" DATA (NHEL(I, 3),I=1,4) / 1,-1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 3),i=1,4)" is not supported. Skipping.
    Line #93 in matrix.f:" DATA (NHEL(I, 4),I=1,4) / 1,-1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 4),i=1,4)" is not supported. Skipping.
    Line #94 in matrix.f:" DATA (NHEL(I, 5),I=1,4) / 1, 1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 5),i=1,4)" is not supported. Skipping.
    Line #95 in matrix.f:" DATA (NHEL(I, 6),I=1,4) / 1, 1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 6),i=1,4)" is not supported. Skipping.
    Line #96 in matrix.f:" DATA (NHEL(I, 7),I=1,4) / 1, 1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 7),i=1,4)" is not supported. Skipping.
    Line #97 in matrix.f:" DATA (NHEL(I, 8),I=1,4) / 1, 1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 8),i=1,4)" is not supported. Skipping.
    Line #98 in matrix.f:" DATA (NHEL(I, 9),I=1,4) /-1,-1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 9),i=1,4)" is not supported. Skipping.
    Line #99 in matrix.f:" DATA (NHEL(I, 10),I=1,4) /-1,-1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 10),i=1,4)" is not supported. Skipping.
    Line #100 in matrix.f:" DATA (NHEL(I, 11),I=1,4) /-1,-1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 11),i=1,4)" is not supported. Skipping.
    Line #101 in matrix.f:" DATA (NHEL(I, 12),I=1,4) /-1,-1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 12),i=1,4)" is not supported. Skipping.
    Line #102 in matrix.f:" DATA (NHEL(I, 13),I=1,4) /-1, 1, 1,-1/"
     analyzeline: implied-DO list "(nhel(i, 13),i=1,4)" is not supported. Skipping.
    Line #103 in matrix.f:" DATA (NHEL(I, 14),I=1,4) /-1, 1, 1, 1/"
     analyzeline: implied-DO list "(nhel(i, 14),i=1,4)" is not supported. Skipping.
    Line #104 in matrix.f:" DATA (NHEL(I, 15),I=1,4) /-1, 1,-1,-1/"
     analyzeline: implied-DO list "(nhel(i, 15),i=1,4)" is not supported. Skipping.
    Line #105 in matrix.f:" DATA (NHEL(I, 16),I=1,4) /-1, 1,-1, 1/"
     analyzeline: implied-DO list "(nhel(i, 16),i=1,4)" is not supported. Skipping.
    Line #109 in matrix.f:" DATA ((POLARIZATIONS(I,J),I=0,NEXTERNAL),J=0,5)/NPOLENTRIES*-1/"
     analyzeline: implied-DO list "((polarizations(i,j),i=0,nexternal),j=0,5)" is not supported. Skipping.
    Line #192 in matrix.f:" PARAMETER (NEXTERNAL=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #194 in matrix.f:" PARAMETER (NWAVEFUNCS=5, NCOLOR=1)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #194 in matrix.f:" PARAMETER (NWAVEFUNCS=5, NCOLOR=1)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #194 in matrix.f:" PARAMETER (NWAVEFUNCS=5, NCOLOR=1)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #194 in matrix.f:" PARAMETER (NWAVEFUNCS=5, NCOLOR=1)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #194 in matrix.f:" PARAMETER (NWAVEFUNCS=5, NCOLOR=1)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #196 in matrix.f:" PARAMETER (ZERO=0D0)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #196 in matrix.f:" PARAMETER (ZERO=0D0)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #196 in matrix.f:" PARAMETER (ZERO=0D0)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #196 in matrix.f:" PARAMETER (ZERO=0D0)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #201 in matrix.f:" PARAMETER (IMAG1=(0D0,1D0))"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #201 in matrix.f:" PARAMETER (IMAG1=(0D0,1D0))"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #201 in matrix.f:" PARAMETER (IMAG1=(0D0,1D0))"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #201 in matrix.f:" PARAMETER (IMAG1=(0D0,1D0))"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #201 in matrix.f:" PARAMETER (IMAG1=(0D0,1D0))"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
     Reading file 'coupl.inc' (format:fix)
    Line #16 in coupl.inc:" PARAMETER(NF=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #16 in coupl.inc:" PARAMETER(NF=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #16 in coupl.inc:" PARAMETER(NF=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #16 in coupl.inc:" PARAMETER(NF=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Line #16 in coupl.inc:" PARAMETER(NF=4)"
     get_parameters: got "unexpected EOF while parsing (<string>, line 0)" on ''
    Traceback (most recent call last):
      File "/sw/csc/anaconda/bin/f2py", line 28, in <module>
        main()
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 648, in main
        run_compile()
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 633, in run_compile
        setup(ext_modules=[ext])
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/distutils/core.py", line 169, in setup
        return old_setup(**new_attr)
      File "/sw/csc/anaconda/lib/python2.7/distutils/core.py", line 151, in setup
        dist.run_commands()
      File "/sw/csc/anaconda/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/sw/csc/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/distutils/command/build.py", line 47, in run
        old_build.run(self)
      File "/sw/csc/anaconda/lib/python2.7/distutils/command/build.py", line 127, in run
        self.run_command(cmd_name)
      File "/sw/csc/anaconda/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/sw/csc/anaconda/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 148, in run
        self.build_sources()
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 165, in build_sources
        self.build_extension_sources(ext)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 327, in build_extension_sources
        sources = self.f2py_sources(sources, ext)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/distutils/command/build_src.py", line 564, in f2py_sources
        ['-m', ext_name]+f_sources)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 408, in run_main
        postlist = callcrackfortran(files, options)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/f2py2e.py", line 329, in callcrackfortran
        postlist = crackfortran.crackfortran(files)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/crackfortran.py", line 3245, in crackfortran
        readfortrancode(files, crackline)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/crackfortran.py", line 496, in readfortrancode
        readfortrancode(fn, dowithline=dowithline, istop=0)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/crackfortran.py", line 511, in readfortrancode
        dowithline(finalline)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/crackfortran.py", line 782, in crackline
        analyzeline(m, pat[1], line)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/crackfortran.py", line 1181, in analyzeline
        params = get_parameters(edecl)
      File "/sw/csc/anaconda/lib/python2.7/site-packages/numpy/f2py/crackfortran.py", line 2473, in get_parameters
        if v[0] == '(' and v[-1] == ')':
    IndexError: string index out of range
    make: *** [matrix2py.so] Error 1

The only information is that the error appears right after
INFO: Collect and combine the various output file.
and the Events/run_01 folder now contains, in addition to unweighted_events.lhe.gz (with no reweighting in it), the following files:
unweighted_events.lhe.gz_0.lhe
unweighted_events.lhe.gz_0.lhe_reweight_1_banner.txt
unweighted_events.lhe.gz_0.lherw
unweighted_events.lhe.gz_0.lhe_tag_1_debug.log
unweighted_events.lhe.gz_1.lhe
unweighted_events.lhe.gz_1.lhe_reweight_1_banner.txt
unweighted_events.lhe.gz_1.lherw
unweighted_events.lhe.gz_1.lhe_tag_1_debug.log
But I don't know if the error is fundamentally related to that task, or if it's just incidental.

On the other hand, if I run it by submitting a job to the pbs cluster, I get a run_02_tag_1_debug.log file with the following frightening series of errors:

generate_events
Traceback (most recent call last):
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1415, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/madevent_interface.py", line 2065, in do_generate_events
    postcmd=False)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1442, in exec_cmd
    stop = Cmd.onecmd_orig(current_interface, line, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1369, in onecmd_orig
    return func(arg, **opt)
  File "/home/koren/test/testppeeNew/bin/internal/madevent_interface.py", line 2851, in do_survey
    self.configure_directory()
  File "/home/koren/test/testppeeNew/bin/internal/madevent_interface.py", line 5213, in configure_directory
    self.compile(arg=[name], cwd=os.path.join(self.me_dir, 'Source'))
  File "/home/koren/test/testppeeNew/bin/internal/extended_cmd.py", line 1506, in compile
    return misc.compile(nb_core=self.options['nb_core'], *args, **opts)
  File "/home/koren/test/testppeeNew/bin/internal/misc.py", line 479, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /home/koren/test/testppeeNew/Source.
The compilation fails with the following output message:
    gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o combine_events.o combine_events.f
    cd MODEL; make
    make[1]: Entering directory `/home/koren/test/testppeeNew/Source/MODEL'
    make[1]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/koren/test/testppeeNew/Source/MODEL'
    gfortran -lstdc++ -o ../bin/internal/combine_events combine_events.o rw_events.o ranmar.o kin_functions.o open_file.o rw_routines.o alfas_functions.o setrun.o -L../lib/ -lmodel -lpdf -lstdc++ -lbias
    rw_events.o: In function `read_event_':
    rw_events.f:(.text+0x1f4): undefined reference to `_gfortran_transfer_character_write'
    rw_events.o: In function `write_event_to_stream_':
    rw_events.f:(.text+0x106d): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x124e): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x125e): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x126e): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x1283): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x1298): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x12ad): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x1566): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x157c): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x15ca): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x1636): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x165d): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x166f): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x1683): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x16a5): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x19b7): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x1c86): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x1f11): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x218b): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x219f): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x21b3): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x242d): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x274f): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x2aab): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x2d45): undefined reference to `_gfortran_transfer_character_write'
    rw_events.o:rw_events.f:(.text+0x30cc): more undefined references to `_gfortran_transfer_character_write' follow
    rw_events.o: In function `write_event_':
    rw_events.f:(.text+0x3139): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x3149): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x3159): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x316e): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3183): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3198): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3256): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x326c): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x32ba): undefined reference to `_gfortran_transfer_integer_write'
    rw_events.f:(.text+0x3322): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3344): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3356): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x336a): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3391): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3486): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x3553): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x35dd): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x364b): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x365f): undefined reference to `_gfortran_transfer_real_write'
    rw_events.f:(.text+0x3673): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x36da): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x37ce): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x38f0): undefined reference to `_gfortran_transfer_character_write'
    rw_events.f:(.text+0x3975): undefined reference to `_gfortran_transfer_character_write'
    rw_events.o:rw_events.f:(.text+0x3b7e): more undefined references to `_gfortran_transfer_character_write' follow
    ranmar.o: In function `rmarin_':
    ranmar.f:(.text+0x1ee): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x1fe): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x3f5): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x405): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x45a): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x46a): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x4d7): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x4e7): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x53c): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x54c): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.o: In function `get_moffset_':
    ranmar.f:(.text+0x87f): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x88f): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.o: In function `ntuple_':
    ranmar.f:(.text+0x116d): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x117d): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x1191): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x11a3): undefined reference to `_gfortran_transfer_integer_write'
    ranmar.f:(.text+0x11f8): undefined reference to `_gfortran_transfer_character_write'
    ranmar.f:(.text+0x123d): undefined reference to `_gfortran_transfer_integer_write'
    kin_functions.o: In function `rap_':
    kin_functions.f:(.text+0x324): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.o: In function `dj_':
    kin_functions.f:(.text+0x6fa): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x7c9): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x8b1): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.o: In function `dj1_':
    kin_functions.f:(.text+0xdbb): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0xe89): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0xf72): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.o: In function `pyjb_':
    kin_functions.f:(.text+0x1397): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x13a7): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x13bb): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x13cd): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x13e1): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x13f3): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x1407): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x1419): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.o: In function `zclus_':
    kin_functions.f:(.text+0x15ac): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x15be): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x15d2): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x15e4): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x15f8): undefined reference to `_gfortran_transfer_character_write'
    kin_functions.f:(.text+0x160a): undefined reference to `_gfortran_transfer_real_write'
    kin_functions.f:(.text+0x1680): undefined reference to `_gfortran_transfer_character_write'
    open_file.o: In function `open_file_':
    open_file.f:(.text+0x481): undefined reference to `_gfortran_transfer_character_write'
    open_file.f:(.text+0x490): undefined reference to `_gfortran_transfer_character_write'
    open_file.f:(.text+0x4a4): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.o: In function `load_para_':
    rw_routines.f:(.text+0xe29): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.o:rw_routines.f:(.text+0x25e4): more undefined references to `_gfortran_transfer_character_write' follow
    rw_routines.o: In function `get_real_':
    rw_routines.f:(.text+0x2674): undefined reference to `_gfortran_transfer_real_write'
    rw_routines.o: In function `get_integer_':
    rw_routines.f:(.text+0x2835): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2847): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x285b): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x28b0): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x28c5): undefined reference to `_gfortran_transfer_integer_write'
    rw_routines.o: In function `get_int8_':
    rw_routines.f:(.text+0x2a82): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2a94): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2aa8): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2afd): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2b12): undefined reference to `_gfortran_transfer_integer_write'
    rw_routines.o: In function `get_string_':
    rw_routines.f:(.text+0x2d36): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2d48): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2d5c): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2db1): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.f:(.text+0x2dc5): undefined reference to `_gfortran_transfer_character_write'
    rw_routines.o:rw_routines.f:(.text+0x2f87): more undefined references to `_gfortran_transfer_character_write' follow
    rw_routines.o: In function `get_logical_':
    rw_routines.f:(.text+0x3017): undefined reference to `_gfortran_transfer_logical_write'
    alfas_functions.o: In function `alphas_':
    alfas_functions.f:(.text+0x44d): undefined reference to `_gfortran_transfer_character_write'
    alfas_functions.f:(.text+0x4a2): undefined reference to `_gfortran_transfer_character_write'
    alfas_functions.f:(.text+0x4b2): undefined reference to `_gfortran_transfer_real_write'
    alfas_functions.f:(.text+0x532): undefined reference to `_gfortran_transfer_character_write'
    alfas_functions.f:(.text+0x546): undefined reference to `_gfortran_transfer_real_write'
    alfas_functions.f:(.text+0x5c6): undefined reference to `_gfortran_transfer_character_write'
    alfas_functions.f:(.text+0x5da): undefined reference to `_gfortran_transfer_real_write'
    alfas_functions.f:(.text+0x65f): undefined reference to `_gfortran_transfer_character_write'
    alfas_functions.f:(.text+0x677): undefined reference to `_gfortran_transfer_real_write'
    alfas_functions.f:(.text+0x6cc): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libmodel.a(printout.o): In function `printout_':
    printout.f:(.text+0x4a): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x9f): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xf4): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x149): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libmodel.a(printout.o):printout.f:(.text+0x19e): more undefined references to `_gfortran_transfer_character_write' follow
    ../lib//libmodel.a(printout.o): In function `printout_':
    printout.f:(.text+0x553): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x5a8): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x5bc): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x611): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x625): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x67a): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x68e): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x6e3): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x6f7): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x74c): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x760): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x7b5): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x7ce): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x823): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x833): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x888): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x89a): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x8ef): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x901): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x956): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x968): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x9bd): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x9d4): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xa29): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xa3a): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xa8f): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xaa0): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xaf5): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xb06): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xb5b): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xbb0): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xc05): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xc5a): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xc6b): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xcc0): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xcd1): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xd26): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xd37): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xd8c): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xda0): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0xdf5): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xe06): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xe5b): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xe6c): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xec1): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xed2): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xf27): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xf38): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xf8d): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0xf9e): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0xff3): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1005): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x105a): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x106b): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x10c0): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x10d1): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1126): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1137): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x118c): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x119d): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x11f2): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1203): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1258): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1269): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x12be): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x12d2): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1327): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1342): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x13a3): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x13b7): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x140c): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1420): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1475): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1489): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x14de): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x14f2): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1547): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x155b): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x15b0): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x15c4): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1619): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x162d): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1682): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1696): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x16eb): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1703): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1758): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1769): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x17be): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x17cf): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1824): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1835): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x188a): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x189e): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x18f3): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1907): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x195c): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1970): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x19c5): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1a1a): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1a6f): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1ac4): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1ad4): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1b29): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1b3a): undefined reference to `_gfortran_transfer_real_write'
    printout.f:(.text+0x1b96): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1beb): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1c40): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1caf): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1cc6): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1d2e): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1d3f): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1da7): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1db8): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1e20): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1e31): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1e99): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1eaa): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1f12): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1f23): undefined reference to `_gfortran_transfer_complex_write'
    printout.f:(.text+0x1f8b): undefined reference to `_gfortran_transfer_character_write'
    printout.f:(.text+0x1f9c): undefined reference to `_gfortran_transfer_complex_write'
    ../lib//libpdf.a(pdfwrap.o): In function `pdfwrap_':
    pdfwrap.f:(.text+0x609): undefined reference to `_gfortran_transfer_character_write'
    pdfwrap.f:(.text+0x65e): undefined reference to `_gfortran_transfer_character_write'
    pdfwrap.f:(.text+0x1072): undefined reference to `_gfortran_transfer_character_write'
    pdfwrap.f:(.text+0x108a): undefined reference to `_gfortran_transfer_character_write'
    pdfwrap.f:(.text+0x10df): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libpdf.a(pdfwrap.o):pdfwrap.f:(.text+0x10f3): more undefined references to `_gfortran_transfer_character_write' follow
    ../lib//libpdf.a(pdfwrap.o): In function `pdfwrap_':
    pdfwrap.f:(.text+0x158d): undefined reference to `_gfortran_stop_numeric_f08'
    ../lib//libpdf.a(NNPDFDriver.o): In function `lh_polint_':
    NNPDFDriver.f:(.text+0x291): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libpdf.a(NNPDFDriver.o): In function `nnpdfdriver_':
    NNPDFDriver.f:(.text+0x1060): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x10b5): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x110a): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x115f): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libpdf.a(NNPDFDriver.o):NNPDFDriver.f:(.text+0x116d): more undefined references to `_gfortran_transfer_character_write' follow
    ../lib//libpdf.a(NNPDFDriver.o): In function `nninitpdf_':
    NNPDFDriver.f:(.text+0x125e): undefined reference to `_gfortran_transfer_integer_write'
    NNPDFDriver.f:(.text+0x1272): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libpdf.a(NNPDFDriver.o): In function `nnevolvepdf_':
    NNPDFDriver.f:(.text+0x16d2): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x1727): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x173c): undefined reference to `_gfortran_transfer_integer_write'
    NNPDFDriver.f:(.text+0x1751): undefined reference to `_gfortran_transfer_integer_write'
    NNPDFDriver.f:(.text+0x195e): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x19b3): undefined reference to `_gfortran_transfer_character_write'
    NNPDFDriver.f:(.text+0x19c8): undefined reference to `_gfortran_transfer_integer_write'
    NNPDFDriver.f:(.text+0x19dd): undefined reference to `_gfortran_transfer_integer_write'
    ../lib//libpdf.a(Ctq5Pdf.o): In function `ctq5pdf_':
    Ctq5Pdf.f:(.text+0xd2d): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0xd3d): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0xdbc): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0xdcc): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0xe71): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0xe81): undefined reference to `_gfortran_transfer_integer_write'
    ../lib//libpdf.a(Ctq5Pdf.o): In function `partonx_orig_':
    Ctq5Pdf.f:(.text+0x1017): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x1027): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0x103f): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0x1181): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x1191): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0x11a5): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0x124d): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x125d): undefined reference to `_gfortran_transfer_real_write'
    Ctq5Pdf.f:(.text+0x1275): undefined reference to `_gfortran_transfer_real_write'
    ../lib//libpdf.a(Ctq5Pdf.o): In function `setctq5_':
    Ctq5Pdf.f:(.text+0x14f8): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x150c): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x1601): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x1615): undefined reference to `_gfortran_transfer_character_write'
    Ctq5Pdf.f:(.text+0x1662): undefined reference to `_gfortran_transfer_character_write'
    ../lib//libpdf.a(Ctq5Pdf.o):Ctq5Pdf.f:(.text+0x1732): more undefined references to `_gfortran_transfer_character_write' follow
    ../lib//libpdf.a(Ctq5Pdf.o): In function `setctq5_':
    Ctq5Pdf.f:(.text+0x1742): undefined reference to `_gfortran_transfer_integer_write'
    ../lib//libpdf.a(Partonx5.o): In function `partonx_':
    Partonx5.f:(.text+0x14d): undefined reference to `_gfortran_transfer_character_write'
    Partonx5.f:(.text+0x15d): undefined reference to `_gfortran_transfer_real_write'
    Partonx5.f:(.text+0x175): undefined reference to `_gfortran_transfer_real_write'
    Partonx5.f:(.text+0x2b7): undefined reference to `_gfortran_transfer_character_write'
    Partonx5.f:(.text+0x2c7): undefined reference to `_gfortran_transfer_real_write'
    Partonx5.f:(.text+0x2db): undefined reference to `_gfortran_transfer_real_write'
    Partonx5.f:(.text+0x383): undefined reference to `_gfortran_transfer_character_write'
    Partonx5.f:(.text+0x393): undefined reference to `_gfortran_transfer_real_write'
    Partonx5.f:(.text+0x3ab): undefined reference to `_gfortran_transfer_real_write'
    ../lib//libpdf.a(Ctq6Pdf.o): In function `partonx6_':
    Ctq6Pdf.f:(.text+0xf00): undefined reference to `_gfortran_transfer_character_write'
    Ctq6Pdf.f:(.text+0xf15): undefined reference to `_gfortran_transfer_real_write'
    Ctq6Pdf.f:(.text+0xfd4): undefined reference to `_gfortran_transfer_character_write'
    Ctq6Pdf.f:(.text+0xfe9): undefined reference to `_gfortran_transfer_real_write'
    ../lib//libpdf.a(Ctq6Pdf.o): In function `ctq6pdf_':
    Ctq6Pdf.f:(.text+0x1dd8): undefined reference to `_gfortran_transfer_character_write'
    Ctq6Pdf.f:(.text+0x1de8): undefined reference to `_gfortran_transfer_real_write'
    Ctq6Pdf.f:(.text+0x1e67): undefined reference to `_gfortran_transfer_character_write'
    Ctq6Pdf.f:(.text+0x1e77): undefined reference to `_gfortran_transfer_real_write'
    Ctq6Pdf.f:(.text+0x1f1c): undefined reference to `_gfortran_transfer_character_write'
    Ctq6Pdf.f:(.text+0x1f2c): undefined reference to `_gfortran_transfer_integer_write'
    ../lib//libpdf.a(Ctq6Pdf.o): In function `setctq6_':
    Ctq6Pdf.f:(.text+0x216a): undefined reference to `_gfortran_transfer_integer_write'
    Ctq6Pdf.f:(.text+0x2272): undefined reference to `_gfortran_transfer_character_write'
    Ctq6Pdf.f:(.text+0x2282): undefined reference to `_gfortran_transfer_integer_write'
    ../lib//libpdf.a(opendata.o): In function `opendata_':
    opendata.f:(.text+0x7e9): undefined reference to `_gfortran_transfer_character_write'
    opendata.f:(.text+0x7f6): undefined reference to `_gfortran_transfer_character_write'
    opendata.f:(.text+0x80a): undefined reference to `_gfortran_transfer_character_write'
    collect2: ld returned 1 exit status
    make: *** [../bin/internal/combine_events] Error 1

I'd be more than happy to provide any further information that would be useful.

Thanks very much,

Seth

Question information

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

Dear Seth Karen,

Looks like a inconsistent setup of your gcc library that are linked to your code.
I would suggest that you check your $LD_LIBRARY_PATH

This sounds similar to this question:
https://answers.launchpad.net/mg5amcnlo/+question/232112
But unfortunately where the user specified that they fixed the problem after setting correctly the gcc library.

Cheers,

Olivier

On 27 Apr 2017, at 06:37, Seth Koren <<email address hidden><mailto:<email address hidden>>> wrote:

undefined reference to `_gfortran_transfer_character_write'

Revision history for this message
Seth Koren (korens) said :
#2

Dear Olivier,

Thanks for your response, and sorry for the late update . You were exactly on the right track.

The problem appears to have been that the version of python seen by MadGraph had been compiled with an older version of gcc than the version of gcc seen by MadGraph. Setting up a new installation of python compiled with gcc-4.8 has fixed this problem.

Thanks again for this, and for all your work!

Seth