undefined reference to `_gfortran_transfer_character_write' running MadSpin

Asked by Jordi Nadal

Dear experts,

I am having some problems with fortran and MadSpin:

INFO: Compiling code
Command "launch" interrupted with error:
MadGraph5Error : A compilation Error occurs when trying to compile /home/jnadal/MadGraph_ttbar/production_me/SubProcesses/P3_gux_ttxuxbbx.
 The compilation fails with the following output message:
     gfortran -O -w -ffixed-line-length-132 -c -o check_sa.o check_sa.f
     gfortran -O -w -ffixed-line-length-132 -o check check_sa.o matrix_prod.o -L../../lib/ -ldhelas -lmodel
     ../../lib//libdhelas.a(aloha_functions.o): In function `txxxxx_':
     aloha_functions.f:(.text+0x29b9): undefined reference to `_gfortran_transfer_character_write'
     collect2: ld returned 1 exit status
     make: *** [check] 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 to developers

           More information is found in 'MS_debug'.

           Please attach this file to your report.
MadSpin>

Some more information:

[jnadal@rocks MadGraph_ttbar]$ echo $LD_LIBRARY_PATH
/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc436_x86_64_slc5/slc5/gcc43/lib64:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc436_x86_64_slc5/slc5/gcc43/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/python/2.6.5p1-x86_64-slc5-gcc43/sw/lcg/external/Python/2.6.5p1/x86_64-slc5-gcc43-opt/lib

[jnadal@rocks MadGraph_ttbar]$ uname -a
Linux rocks.local 2.6.18-348.6.1.el5 #1 SMP Tue May 21 15:29:55 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

[jnadal@rocks MadGraph_ttbar]$ cat /etc/redhat-release
Red Hat Enterprise Linux ES release 5.9 (Final)
[jnadal@rocks MadGraph_ttbar]$

This error seems related with :

https://answers.launchpad.net/madgraph5/+question/232112

but I do not know the fix.

Any hint would be welcome!

Thanks in advance,

Jordi Nadal

====

[jnadal@rocks MadGraph_ttbar]$ cat MS_debug
set seed 34
set load_me True
set load_weights True
set compile_me True
set store_me False
set store_weights False
set max_calculators 1
import unweighted_events.lhe.gz
define ww = w+ w-
define bb = b b~
decay t > ww bb , ww > all all
decay t~ > ww bb , ww > all all
launch
Traceback (most recent call last):
  File "/home/jnadal/MadGraph_ttbar/MS_grid/madgraph/interface/extended_cmd.py", line 832, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/home/jnadal/MadGraph_ttbar/MS_grid/madgraph/interface/extended_cmd.py", line 825, in onecmd_orig
    return func(arg, **opt)
  File "/home/jnadal/MadGraph_ttbar/MS_grid/MadSpin/interface_madspin.py", line 399, in do_launch
    self.options)
  File "/home/jnadal/MadGraph_ttbar/MS_grid/MadSpin/decay.py", line 1962, in __init__
    self.compile()
  File "/home/jnadal/MadGraph_ttbar/MS_grid/MadSpin/decay.py", line 2674, in compile
    self.compile_fortran(self.path_me, mode="production_me")
  File "/home/jnadal/MadGraph_ttbar/MS_grid/MadSpin/decay.py", line 2759, in compile_fortran
    misc.compile(cwd=new_path, mode='fortran')
  File "/home/jnadal/MadGraph_ttbar/MS_grid/madgraph/various/misc.py", line 235, in compile
    raise MadGraph5Error, error_text
MadGraph5Error: A compilation Error occurs when trying to compile /home/jnadal/MadGraph_ttbar/production_me/SubProcesses/P3_gux_ttxuxbbx.
The compilation fails with the following output message:
    gfortran -O -w -ffixed-line-length-132 -c -o check_sa.o check_sa.f
    gfortran -O -w -ffixed-line-length-132 -o check check_sa.o matrix_prod.o -L../../lib/ -ldhelas -lmodel
    ../../lib//libdhelas.a(aloha_functions.o): In function `txxxxx_':
    aloha_functions.f:(.text+0x29b9): undefined reference to `_gfortran_transfer_character_write'
    collect2: ld returned 1 exit status
    make: *** [check] 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
Value of current Options:
  zeromass_for_max_weight : 5
            store_weights : 0
             load_weights : 1
                     seed : 34
                BW_effect : 1
                 store_me : 0
                  load_me : 1
      max_weight_ps_point : 400
                 nb_sigma : 4.51217354724
               compile_me : 1
          max_calculators : 1
   Nevents_for_max_weigth : 75
                   BW_cut : 15.0
               max_weight : -1
                 curr_dir : /home/jnadal/MadGraph_ttbar

======

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

Hi Jordi,

This is related to a setup problem, usually some library which are not set correctly for your compiler.
Did you look at this page: http://amcatnlo.web.cern.ch/amcatnlo/list.htm ?
You have instructions for SLC5 and SLC6 at cern.

This might potentially help you.

Cheers,

Olivier

On Oct 4, 2013, at 9:21 AM, Jordi Nadal <email address hidden> wrote:

> New question #236807 on MadGraph5:
> https://answers.launchpad.net/madgraph5/+question/236807
>
> Dear experts,
>
> I am having some problems with fortran and MadSpin:
>
>
> INFO: Compiling code
> Command "launch" interrupted with error:
> MadGraph5Error : A compilation Error occurs when trying to compile /home/jnadal/MadGraph_ttbar/production_me/SubProcesses/P3_gux_ttxuxbbx.
> The compilation fails with the following output message:
> gfortran -O -w -ffixed-line-length-132 -c -o check_sa.o check_sa.f
> gfortran -O -w -ffixed-line-length-132 -o check check_sa.o matrix_prod.o -L../../lib/ -ldhelas -lmodel
> ../../lib//libdhelas.a(aloha_functions.o): In function `txxxxx_':
> aloha_functions.f:(.text+0x29b9): undefined reference to `_gfortran_transfer_character_write'
> collect2: ld returned 1 exit status
> make: *** [check] 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 to developers
>
> More information is found in 'MS_debug'.
>
> Please attach this file to your report.
> MadSpin>
>
> Some more information:
>
> [jnadal@rocks MadGraph_ttbar]$ echo $LD_LIBRARY_PATH
> /cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc436_x86_64_slc5/slc5/gcc43/lib64:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/Gcc/gcc436_x86_64_slc5/slc5/gcc43/lib:/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase/x86_64/python/2.6.5p1-x86_64-slc5-gcc43/sw/lcg/external/Python/2.6.5p1/x86_64-slc5-gcc43-opt/lib
>
> [jnadal@rocks MadGraph_ttbar]$ uname -a
> Linux rocks.local 2.6.18-348.6.1.el5 #1 SMP Tue May 21 15:29:55 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux
>
> [jnadal@rocks MadGraph_ttbar]$ cat /etc/redhat-release
> Red Hat Enterprise Linux ES release 5.9 (Final)
> [jnadal@rocks MadGraph_ttbar]$
>
> This error seems related with :
>
> https://answers.launchpad.net/madgraph5/+question/232112
>
> but I do not know the fix.
>
> Any hint would be welcome!
>
> Thanks in advance,
>
> Jordi Nadal
>
>
> --
> You received this question notification because you are a member of
> MadTeam, which is an answer contact for MadGraph5.

Revision history for this message
Jordi Nadal (jordi-nadal) said :
#2

Thanks Oliver! That was a really useful web!

Cheers,
Jordi

Revision history for this message
Jordi Nadal (jordi-nadal) said :
#3

Thanks Olivier Mattelaer, that solved my question.