compilation error with lhapdf

Asked by Goutam Das

Dear All,
              I am facing the following error when I try to run MG2.2.3 on my linux machine :

Generating 10000 events with run name run_01
survey run_01
INFO: compile directory
INFO: Using LHAPDF v5.9.1 interface for PDFs

(process:6983): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
Error detected in "generate_events "
write debug file /home/goutam/MADGRAPH/MG5_aMC_v2_2_3/ZZ_TEST2/run_01_tag_1_debug.log
If you need help with this issue please contact us on https://answers.launchpad.net/madgraph5
MadGraph5Error : A compilation Error occurs when trying to compile /home/goutam/MADGRAPH/MG5_aMC_v2_2_3/ZZ_TEST2/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
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
            gfortran -O -w -fbounds-check -fPIC -ffixed-line-length-132 -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 -lLHAPDF -lstdc++
            ../lib//libLHAPDF.a(inputPDF.o): In function `alpha_':
            inputPDF.F:(.text+0x3ae): relocation truncated to fit: R_X86_64_PC32 against symbol `ainput_' defined in COMMON section in ../lib//libLHAPDF.a(inputPDF.o)
            ../lib//libLHAPDF.a(inputPDF.o): In function `wate96_':
            inputPDF.F:(.text+0x93a): relocation truncated to fit: R_X86_64_PC32 against symbol `gaus96_' defined in COMMON section in ../lib//libLHAPDF.a(inputPDF.o)
            ../lib//libLHAPDF.a(inputPDF.o): In function `gconv_':
            inputPDF.F:(.text+0xe24): relocation truncated to fit: R_X86_64_PC32 against symbol `ainput_' defined in COMMON section in ../lib//libLHAPDF.a(inputPDF.o)
            inputPDF.F:(.text+0x12ea): relocation truncated to fit: R_X86_64_PC32 against symbol `gaus96_' defined in COMMON section in ../lib//libLHAPDF.a(inputPDF.o)
            ../lib//libLHAPDF.a(inputPDF.o): In function `master.1.parmpdf_':
            inputPDF.F:(.text+0x17a5): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10cnnarc_' defined in COMMON section in ../lib//libLHAPDF.a(inputPDF.o)
            ../lib//libLHAPDF.a(EVLNNPDF.o): In function `lh_alphamz_':
            EVLNNPDF.f:(.text+0x3a): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10beta_' defined in COMMON section in ../lib//libLHAPDF.a(EVLNNPDF.o)
            ../lib//libLHAPDF.a(EVLNNPDF.o): In function `lh_initevln2lha_':
            EVLNNPDF.f:(.text+0x15a): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10eevln2lha_' defined in COMMON section in ../lib//libLHAPDF.a(EVLNNPDF.o)
            ../lib//libLHAPDF.a(EVLNNPDF.o): In function `lh_initpar2evln_':
            EVLNNPDF.f:(.text+0x603): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10ppar2evln_' defined in COMMON section in ../lib//libLHAPDF.a(EVLNNPDF.o)
            ../lib//libLHAPDF.a(EVLNNPDF.o): In function `lh_pdfevolxint_ns24_':
            EVLNNPDF.f:(.text+0x761): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10xevk_' defined in COMMON section in ../lib//libLHAPDF.a(EVLNNPDF.o)
            EVLNNPDF.f:(.text+0x818): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10evolacc_' defined in COMMON section in ../lib//libLHAPDF.a(EVLNNPDF.o)
            EVLNNPDF.f:(.text+0x83b): additional relocation overflows omitted from the output
            collect2: error: ld returned 1 exit status
            make: *** [../bin/internal/combine_events] 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
quit
INFO:

INFO:

the default gcc version is 4.8.2
gffortran 4.8.2
Python 2.7.6

It runs correctly if I do not use lhapdf. (lhapdf and fastjet are installed correctly and globally)
Can you please help me with this issue?

Best Regards,
Goutam

Question information

Language:
English Edit question
Status:
Solved
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Solved by:
marco zaro
Solved:
Last query:
Last reply:
Revision history for this message
marco zaro (marco-zaro) said :
#1

dear Goutam,
has LHAPDf 5 been compiled with the same compiler that you are curretnly using?
If you are on lxplus/SL5-6, did you check this
http://amcatnlo.web.cern.ch/amcatnlo/list_detailed2.htm#dependencies

Let me know,

Cheers,

Marco

Revision history for this message
Goutam Das (gkdgoutam) said :
#2

Dear Marco,
                      Thank you for your quick response. Yes I have compiled both using same versions of gcc, gfortran, python.
I am currently running Linux Mint 17.1 (ubuntu). I have checked the linked that you have mentioned.

In my machine :
gcc4.8.2, gfortran4.8.2, python2.7.6, perl5.18.2, bash4.3.11, lhapdf5.9.1, fastjet3.1.2 .

Its still not running. One observation is that when I put
 'lhapdf' = pdlabel
 230000 = lhaid

it is trying to download the corresponding grid but fails :

INFO: Using LHAPDF v5.9.1 interface for PDFs
INFO: Trying to download NNPDF23_nlo_as_0119.LHgrid
Getting sets from http://www.hepforge.org/archive/lhapdf/pdfsets/current
Installing sets to /usr/local/share/lhapdf/PDFsets
Getting PDF set from 'http://www.hepforge.org/archive/lhapdf/pdfsets/current/NNPDF23_nlo_as_0119.LHgrid'
Problem while writing PDF set to '/usr/local/share/lhapdf/PDFsets/NNPDF23_nlo_as_0119.LHgrid'
Traceback (most recent call last):
  File "/usr/local/bin/lhapdf-getdata", line 153, in <module>
    getPDFSetFile(opts.URL, f, opts.DEST, download=opts.DOWNLOAD)
  File "/usr/local/bin/lhapdf-getdata", line 64, in getPDFSetFile
    out.close()
NameError: global name 'out' is not defined
WARNING: Could not download NNPDF23_nlo_as_0119.LHgrid into /usr/local/share/lhapdf/PDFsets. Trying to save it locally

But if I give any other lhapdf eg.

 'lhapdf' = pdlabel
 21100 = lhaid

it fails with the message that I have posted in my previous query.

Can't figure out so far what is happening.

Best Regards,
Goutam

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

Dear Goutam,

On 03 Jun 2015, at 16:26, Goutam Das <email address hidden> wrote:

> Question #267708 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/267708
>
> Status: Answered => Open
>
> Goutam Das is still having a problem:
> Dear Marco,
> Thank you for your quick response. Yes I have compiled both using same versions of gcc, gfortran, python.
> I am currently running Linux Mint 17.1 (ubuntu). I have checked the linked that you have mentioned.
>
> In my machine :
> gcc4.8.2, gfortran4.8.2, python2.7.6, perl5.18.2, bash4.3.11, lhapdf5.9.1, fastjet3.1.2 .
>
> Its still not running. One observation is that when I put
> 'lhapdf' = pdlabel
> 230000 = lhaid
>
> it is trying to download the corresponding grid but fails :
>
> INFO: Using LHAPDF v5.9.1 interface for PDFs
> INFO: Trying to download NNPDF23_nlo_as_0119.LHgrid
> Getting sets from http://www.hepforge.org/archive/lhapdf/pdfsets/current
> Installing sets to /usr/local/share/lhapdf/PDFsets
> Getting PDF set from 'http://www.hepforge.org/archive/lhapdf/pdfsets/current/NNPDF23_nlo_as_0119.LHgrid'
> Problem while writing PDF set to '/usr/local/share/lhapdf/PDFsets/NNPDF23_nlo_as_0119.LHgrid'
> Traceback (most recent call last):
> File "/usr/local/bin/lhapdf-getdata", line 153, in <module>
> getPDFSetFile(opts.URL, f, opts.DEST, download=opts.DOWNLOAD)
> File "/usr/local/bin/lhapdf-getdata", line 64, in getPDFSetFile
> out.close()
> NameError: global name 'out' is not defined
> WARNING: Could not download NNPDF23_nlo_as_0119.LHgrid into /usr/local/share/lhapdf/PDFsets. Trying to save it locally
>

this looks like an error in lhapdf-getdata
Can you please try to download NNPDF23_nlo_as_0119.LHgrid manually and put it into /usr/local/share/lhapdf/PDFsets?
Can you also try lhapdf 6?

Let me know,

Marco

>
> But if I give any other lhapdf eg.
>
> 'lhapdf' = pdlabel
> 21100 = lhaid
>
> it fails with the message that I have posted in my previous query.
>
> Can't figure out so far what is happening.
>
> Best Regards,
> Goutam
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

Revision history for this message
Goutam Das (gkdgoutam) said :
#4

Dear Marco,
                       I have tried with lhapdf6.1.4 and lhapdf5.8.8 and in both cases its working perfectly. I wonder why its not compatible with the lhapdf 5.9.1 version which is the last release of 5 series !! Any comment on this issue?
Thanks for your help .

Best Regards,
Goutam

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

Hi Goutam,
i have no Idea what is the problem with 5.9.1.
I am happy that you have something working with 6.1.4…
Let me know if you need further help…
Cheers,

Marco

On 03 Jun 2015, at 18:01, Goutam Das <email address hidden> wrote:

> Question #267708 on MadGraph5_aMC@NLO changed:
> https://answers.launchpad.net/mg5amcnlo/+question/267708
>
> Status: Answered => Solved
>
> Goutam Das confirmed that the question is solved:
> Dear Marco,
> I have tried with lhapdf6.1.4 and lhapdf5.8.8 and in both cases its working perfectly. I wonder why its not compatible with the lhapdf 5.9.1 version which is the last release of 5 series !! Any comment on this issue?
> Thanks for your help .
>
> Best Regards,
> Goutam
>
> --
> You received this question notification because you are a direct
> subscriber of the question.