Compilation Error MG5_aMC@NLO 2.2.3

Asked by Mihailo Backovic

I'm trying to do a simple run in 2.2.3:

generate p p > t t~ [QCD]

When the code is being compiled I get an enormous number of Warnings/ error messages which I can not completely post here, so here is an example. I'm also attaching the relevant part of ME5_DEBUG. I'm assuming that the issue related to inability to locate fastjet, which is strange because I use the exact same path in other codes and it works well (I also tried with the default settings in the amcatnlo_configuration.txt and I get the same errors). Any clues as to what's causing the error?

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 5.2.2.3 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
calculate_xsect
Traceback (most recent call last):
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/extended_cmd.py", line 879, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/extended_cmd.py", line 872, in onecmd_orig
    return func(arg, **opt)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/amcatnlo_run_interface.py", line 1082, in do_calculate_xsect
    self.do_launch(line, options, argss)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/amcatnlo_run_interface.py", line 1191, in do_launch
    self.compile(mode, options)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/amcatnlo_run_interface.py", line 3810, in compile
    self.check_tests(test, this_dir)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/amcatnlo_run_interface.py", line 3820, in check_tests
    return self.parse_test_mx_log(pjoin(dir, '%s.log' % test))
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/bin/internal/amcatnlo_run_interface.py", line 3827, in parse_test_mx_log
    content = open(log).read()
IOError: [Errno 2] No such file or directory: '/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/SubProcesses/P0_gg_ttx/test_ME.log'
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : None
                  timeout : 60
            cluster_queue : madgraph
         madanalysis_path : None
                   lhapdf : lhapdf-config
                 mg5_path : /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3
           cluster_memory : None
    cluster_status_update : (600, 30)
             cluster_time : None
               hepmc_path : None
             pythia8_path : None
                hwpp_path : None
   automatic_html_opening : False
       cluster_retry_wait : 300
             stdout_level : None
          pythia-pgs_path : None
                  td_path : None
             delphes_path : None
              thepeg_path : None
             cluster_type : condor
         cluster_nb_retry : 1
         fortran_compiler : None
                  nb_core : 4
              auto_update : 7
      exrootanalysis_path : None
               eps_viewer : None
             syscalc_path : None
                  fastjet : /Users/backovic/Research/fastjet/fastjet-install/bin/fastjet-config
             cpp_compiler : None
                 run_mode : 2

ERROR:

WARNING: A compilation Error occurs when trying to compile /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_tt_test/SubProcesses/P0_uux_ttx.
The compilation fails with the following output message:
    gfortran -o test_ME symmetry_fks_test_ME.o parton_lum_1.o parton_lum_2.o parton_lum_3.o parton_lum_chooser.o matrix_1.o matrix_2.o matrix_3.o real_me_chooser.o fks_inc_chooser.o leshouche_inc_chooser.o genps_fks.o setcuts.o setscales.o born.o sborn_sf.o b_sf_001.o b_sf_002.o b_sf_003.o b_sf_004.o b_sf_005.o b_sf_006.o b_sf_007.o b_sf_008.o fks_Sij.o trapfpe.o fastjetfortran_madfks_full.o fastjet_wrapper.o fks_singular.o montecarlocounter.o reweight_xsec.o boostwdir2.o configs_and_props_inc_chooser.o initcluster.o cluster.o reweight.o get_color.o FKSParamReader.o iproc_map.o MC_integer.o reweight_xsec_events_pdf_dummy.o appl_interface_dummy.o BinothLHADummy.o cuts.o pythia_unlops.o recluster.o -L../../lib/ -ldhelas -lgeneric -lmodel -lpdf -lcernlib -Wl,-rpath,/Users/backovic/Research/fastjet/fastjet-3.1.0/../fastjet-install/lib -lm -L/Users/backovic/Research/fastjet/fastjet-3.1.0/../fastjet-install/lib -lfastjettools -lfastjet -lfastjetplugins -lsiscone_spherical -lsiscone -lstdc++
    Undefined symbols for architecture x86_64:
      "std::__1::__vector_base_common<true>::__throw_length_error() const", referenced from:
          __ZNSt3__16vectorIN7fastjet9PseudoJetENS_9allocatorIS2_EEE6assignIPS2_EENS_9enable_ifIXaasr21__is_forward_iteratorIT_EE5valuesr16is_constructibleIS2_NS_15iterator_traitsIS9_E9referenceEEE5valueEvE4typeES9_S9_ in fastjetfortran_madfks_full.o
          std::__1::vector<bool, std::__1::allocator<bool> >::push_back(bool const&) in fastjetfortran_madfks_full.o
          std::__1::vector<bool, std::__1::allocator<bool> >::reserve(unsigned long) in fastjetfortran_madfks_full.o
          std::__1::vector<int, std::__1::allocator<int> >::vector(std::__1::vector<int, std::__1::allocator<int> > const&) in fastjetfortran_madfks_full.o
          void std::__1::vector<fastjet::PseudoJet, std::__1::allocator<fastjet::PseudoJet> >::__push_back_slow_path<fastjet::PseudoJet const>(fastjet::PseudoJet const&) in fastjetfortran_madfks_full.o
          __ZNSt3__16vectorIiNS_9allocatorIiEEE6assignIPiEENS_9enable_ifIXaasr21__is_forward_iteratorIT_EE5valuesr16is_constructibleIiNS_15iterator_traitsIS7_E9referenceEEE5valueEvE4typeES7_S7_ in fastjetfortran_madfks_full.o
          void std::__1::vector<int, std::__1::allocator<int> >::__push_back_slow_path<int const>(int const&) in recluster.o
          ...
      "std::__1::__basic_string_common<true>::__throw_length_error() const", referenced from:
          std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> >::str() const in fastjetfortran_madfks_full.o
      "std::__1::locale::use_facet(std::__1::locale::id&) const", referenced from:
          std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in fastjetfortran_madfks_full.o
          State::list() const in recluster.o
          std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in recluster.o
      "std::__1::ios_base::getloc() const", referenced from:
          std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in fastjetfortran_madfks_full.o
          State::list() const in recluster.o
          std::__1::basic_ostream<char, std::__1::char_traits<char> >& std::__1::__put_character_sequence<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, char const*, unsigned long) in recluster.o
      "std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >::__init(char const*, unsigned long)", referenced from:
          _fastjetglobalrhoandsigma_ in fastjetfortran_madfks_full.o
          fastjet::Selector::nullify_non_selected(std::__1::vector<fastjet::PseudoJet const*, std::__1::allocator<fastjet::PseudoJet const*> >&) const in fastjetfortran_madfks_full.o

Question information

Language:
English Edit question
Status:
Answered
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Last query:
Last reply:

This question was reopened

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

Hi,

This happens often if your fastjet is not compiled with the same compiler than the rest of the code.
But since you do not need fastjet, the easiest is to set fastjet to None in MG5 (by modifying the configuration file)
In that case, we use fjcore (part of fastjet) and compile that part at the same time of the rest of the code

Cheers,

Olivier

Revision history for this message
Mihailo Backovic (mbackovic) said :
#2

Hi Olivier,

The problem persists. I changed fastjet=None in the amcatnlo_configuration.txt inside the project directory. I am using gcc 4.9, so the compiler version should not be the issue. I'm attaching an example of the error message (of which there are too many again) and the ME5_debug:

#************************************************************
#* MadGraph5_aMC@NLO *
#* *
#* * * *
#* * * * * *
#* * * * * 5 * * * * *
#* * * * * *
#* * * *
#* *
#* *
#* VERSION 5.2.2.3 *
#* *
#* The MadGraph5_aMC@NLO Development Team - Find us at *
#* https://server06.fynu.ucl.ac.be/projects/madgraph *
#* and *
#* http://amcatnlo.cern.ch *
#* *
#************************************************************
#* *
#* Command File for aMCatNLO *
#* *
#* run as ./bin/aMCatNLO.py filename *
#* *
#************************************************************
calculate_xsect
Traceback (most recent call last):
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/extended_cmd.py", line 879, in onecmd
    return self.onecmd_orig(line, **opt)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/extended_cmd.py", line 872, in onecmd_orig
    return func(arg, **opt)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/amcatnlo_run_interface.py", line 1082, in do_calculate_xsect
    self.do_launch(line, options, argss)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/amcatnlo_run_interface.py", line 1191, in do_launch
    self.compile(mode, options)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/amcatnlo_run_interface.py", line 3810, in compile
    self.check_tests(test, this_dir)
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/amcatnlo_run_interface.py", line 3820, in check_tests
    return self.parse_test_mx_log(pjoin(dir, '%s.log' % test))
  File "/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/bin/internal/amcatnlo_run_interface.py", line 3827, in parse_test_mx_log
    content = open(log).read()
IOError: [Errno 2] No such file or directory: '/Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3/bin/pp_xxj/SubProcesses/P0_gu_dm1dm1xu/test_ME.log'
Value of current Options:
              text_editor : None
              web_browser : None
        cluster_temp_path : None
                  timeout : 60
            cluster_queue : madgraph
         madanalysis_path : None
                   lhapdf : lhapdf-config
                 mg5_path : /Users/backovic/Research/MadGraph/MG5_aMC_v2_2_3
           cluster_memory : None
    cluster_status_update : (600, 30)
             cluster_time : None
               hepmc_path : None
             pythia8_path : None
                hwpp_path : None
   automatic_html_opening : False
       cluster_retry_wait : 300
             stdout_level : None
          pythia-pgs_path : None
                  td_path : None
             delphes_path : None
              thepeg_path : None
             cluster_type : condor
         cluster_nb_retry : 1
         fortran_compiler : None
                  nb_core : 4
              auto_update : 7
      exrootanalysis_path : None
               eps_viewer : None
             syscalc_path : None
                  fastjet : None
             cpp_compiler : None
                 run_mode : 2

traits<char> > in fjcore.o
          typeinfo for std::__1::basic_ofstream<char, std::__1::char_traits<char> > in fjcore.o
          construction vtable for std::__1::basic_ostream<char, std::__1::char_traits<char> >-in-std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> > in fjcore.o
          typeinfo for std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> > in fjcore.o
      "typeinfo for std::__1::basic_streambuf<char, std::__1::char_traits<char> >", referenced from:
          typeinfo for std::__1::basic_filebuf<char, std::__1::char_traits<char> > in fjcore.o
          typeinfo for std::__1::basic_stringbuf<char, std::__1::char_traits<char>, std::__1::allocator<char> > in fjcore.o
      "virtual thunk to std::__1::basic_ostream<char, std::__1::char_traits<char> >::~basic_ostream()", referenced from:
          construction vtable for std::__1::basic_ostream<char, std::__1::char_traits<char> >-in-std::__1::basic_ofstream<char, std::__1::char_traits<char> > in fjcore.o
          construction vtable for std::__1::basic_ostream<char, std::__1::char_traits<char> >-in-std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> > in fjcore.o
      "virtual thunk to std::__1::basic_ostream<char, std::__1::char_traits<char> >::~basic_ostream()", referenced from:
          construction vtable for std::__1::basic_ostream<char, std::__1::char_traits<char> >-in-std::__1::basic_ofstream<char, std::__1::char_traits<char> > in fjcore.o
          construction vtable for std::__1::basic_ostream<char, std::__1::char_traits<char> >-in-std::__1::basic_ostringstream<char, std::__1::char_traits<char>, std::__1::allocator<char> > in fjcore.o
    ld: symbol(s) not found for architecture x86_64
    collect2: error: ld returned 1 exit status
    make: *** [test_ME] Error 1

Revision history for this message
marco zaro (marco-zaro) said :
#3

Ciao Mihailo,
are you running on a MAC?
if so, can you try the following:
./bin/mg5

set fastjet None
set cpp_compiler clang
generate p p > t t~ [QCD]
output
launch

Let me know if this works....
Cheers,

Marco

Revision history for this message
Mihailo Backovic (mbackovic) said :
#4

Hi Marco,

Thanks for the suggestion! Yes, I'm running on Mac OS X (Maverick). It seems to run now.
So what was the root of the problem, compiler incompatibility?

Best,

Mihailo

Revision history for this message
marco zaro (marco-zaro) said :
#5

yes,
in order to successfully link files compiled with clang and gfortran, you need to add some extra flags.
if mg5_amcatnlo understands that it is clang, it will add these flags for you...
Cheers,

Marco

Revision history for this message
Mihailo Backovic (mbackovic) said :
#6

Hi Marco,

Sorry to re-open this but there is another strange issue appearing:

I am now trying to do a calculation in another model with an extra scalar (S), where I'm trying to produce pp > S j at NLO.
The code compiles fine, but after the line "INFO: Setting up grids " it craps out with a few messages of type":

" PDF not supported for Bjorken x 2.5269332592265026"

Is this again some Mac OS X related issue? The model file runs through ok on my collaborator's computer (running Ubuntu).

Best,

Mihailo

Revision history for this message
marco zaro (marco-zaro) said :
#7

Ciao Mihailo,
this is VERY strange..
are you sure that the mass of the scalar is below the center of mass energy?

I don’t have any other intelligent idea…
Let me know,

Cheers,

Marco

On 25 Feb 2015, at 14:51, Mihailo Backovic <email address hidden> wrote:

> Question #262709 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/262709
>
> Status: Solved => Open
>
> Mihailo Backovic is still having a problem:
> Hi Marco,
>
> Sorry to re-open this but there is another strange issue appearing:
>
> I am now trying to do a calculation in another model with an extra scalar (S), where I'm trying to produce pp > S j at NLO.
> The code compiles fine, but after the line "INFO: Setting up grids " it craps out with a few messages of type":
>
> " PDF not supported for Bjorken x 2.5269332592265026"
>
> Is this again some Mac OS X related issue? The model file runs through
> ok on my collaborator's computer (running Ubuntu).
>
> Best,
>
> Mihailo
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

Revision history for this message
Alessio (alessio-magitteri-v) said :
#8

Hi all,

I am generating the process: p p > W Z [QCD] but when I use lunch command it crash with the following error:

Command "launch " interrupted with error:
IOError : [Errno 2] No such file or directory: '/Users/Alessio/MG5_aMC_v2_3_3/W_lnu_NLO/SubProcesses/P0_udx_epve/test_ME.log'
Please report this bug on https://bugs.launchpad.net/madgraph5
More information is found in '/Users/Alessio/MG5_aMC_v2_3_3/W_lnu_NLO/run_01_tag_1_debug.log'.
Please attach this file to your report.

I am using a Mac (El Capitan) so I have done before the generation: set cpp_compiler clang
without any particular improvement..
I have also noticed that the error appears only when I try to generate a W; actually if I use DY at NLO all the steps run properly..

Do you have any kind of suggestion?

Many thanks!
Alessio

Revision history for this message
marco zaro (marco-zaro) said :
#9

Ciao Alessio,
if you go into P0_udx_epve
1) is there an exectutable called gensym?
what do you get with
./gensym
2
?
Let me know…
Cheers,

Marco

On 23 Feb 2016, at 10:28, Alessio <email address hidden> wrote:

> Question #262709 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/262709
>
> Alessio posted a new comment:
> Hi all,
>
> I am generating the process: p p > W Z [QCD] but when I use lunch
> command it crash with the following error:
>
> Command "launch " interrupted with error:
> IOError : [Errno 2] No such file or directory: '/Users/Alessio/MG5_aMC_v2_3_3/W_lnu_NLO/SubProcesses/P0_udx_epve/test_ME.log'
> Please report this bug on https://bugs.launchpad.net/madgraph5
> More information is found in '/Users/Alessio/MG5_aMC_v2_3_3/W_lnu_NLO/run_01_tag_1_debug.log'.
> Please attach this file to your report.
>
> I am using a Mac (El Capitan) so I have done before the generation: set cpp_compiler clang
> without any particular improvement..
> I have also noticed that the error appears only when I try to generate a W; actually if I use DY at NLO all the steps run properly..
>
> Do you have any kind of suggestion?
>
> Many thanks!
> Alessio
>
> --
> You received this question notification because you are subscribed to
> the question.

Revision history for this message
Alessio (alessio-magitteri-v) said :
#10

Hi Marco,

Thanks!
There is no gensym...

Cheers,
Alessio

Can you help with this problem?

Provide an answer of your own, or ask Mihailo Backovic for more information if necessary.

To post a message you must log in.