fortran compilation error when using LHAPDF

Asked by Thibaud Vantalon on 2014-06-05

Hi,

I tried to change the pdf using lhapdf-5.9.1, gave madgraph the location of lhapdf-config, changed
the run card to:

 'lhapdf' = pdlabel
   10042 = lhaid #10042 cteq6l1 same set as madgraph

Madgraph download the set, but when it is compiling the directories, it returns the
following compilation error:

INFO: Using LHAPDF v5.9.1 interface for PDFs
Error detected in "generate_events run_01"
write debug file /home/thibaud/PhD/MG5_aMC_v2_1_1/bin/mrs02nl_02/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/thibaud/PhD/MG5_aMC_v2_1_1/bin/mrs02nl_02/Source.
        The compilation fails with the following output message:
            gfortran -O -w -fbounds-check -ffixed-line-length-132 -c -o combine_events.o combine_events.f
            gfortran -O -w -fbounds-check -ffixed-line-length-132 -c -o alfas_functions.o alfas_functions.f
            gfortran -O -w -fbounds-check -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(wrapNNPDFgrid.o): In function `master.0.nnpdfintevolve_':
            wrapNNPDFgrid.f:(.text+0x904): relocation truncated to fit: R_X86_64_PC32 against symbol `nnpdf10cnrep_' defined in COMMON section in ../lib//libLHAPDF.a(wrapNNPDFgrid.o)
            ../lib//libLHAPDF.a(wrapcteq6.o): In function `lhct6set_':
            wrapcteq6.f:(.text+0x3): relocation truncated to fit: R_X86_64_PC32 against symbol `ctq6co_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            ../lib//libLHAPDF.a(wrapcteq6.o): In function `ctlhpartonx6_':
            wrapcteq6.f:(.text+0x87): relocation truncated to fit: R_X86_64_PC32 against symbol `ctq6co_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0xac): relocation truncated to fit: R_X86_64_PC32 against symbol `ctqpar1nhess_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x1a8): relocation truncated to fit: R_X86_64_PC32 against symbol `ctq6co_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x1da): relocation truncated to fit: R_X86_64_PC32 against symbol `ctq6co_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x2c9): relocation truncated to fit: R_X86_64_PC32 against symbol `ctqpar1nhess_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x3ae): relocation truncated to fit: R_X86_64_PC32 against symbol `ctqpar1nhess_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x5eb): relocation truncated to fit: R_X86_64_PC32 against symbol `ctq6co_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x62d): relocation truncated to fit: R_X86_64_PC32 against symbol `ctqpar1nhess_' defined in COMMON section in ../lib//libLHAPDF.a(wrapcteq6.o)
            wrapcteq6.f:(.text+0x6ac): additional relocation overflows omitted from the output
            collect2: error: ld returned 1 exit status
            makefile:56: recipe for target '../bin/internal/combine_events' failed
            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

What am I doing wrong?

I tried to had the compilation flag -mcmodel=large to make_opts without success.
I also saw this commit. When will support for LHAPDF 6 added?
https://code.launchpad.net/~maddevelopers/mg5amcnlo/2.1.2-lhapdf6/+merge/217497

Thank you for your help.

Cheers.

Question information

Language:
English Edit question
Status:
Open
For:
MadGraph5_aMC@NLO Edit question
Assignee:
marco zaro Edit question
Last query:
2014-06-05
Last reply:
2014-06-05
marco zaro (marco-zaro) said : #1

Dear Thibauld,
did you compile lhapdf with the same compiler you are using for MG5_aMC?
Can you try to recompile lhapdf?

Let me know,

Marco

PS: lhapdf 6 will be hopefully supported from the next mg5_amc version

Dear Marco,

It seems yes. Here is a line of the make output.
gfortran -ffree-form -I. -I. -O2 -ffree-form -c wrapabkm09.f -fPIC -o .libs/wrapabkm09.o

thanks
Thibaud

the make of LHAPDF. Sorry I forgotte to precise. Do you have any other idea?

Here is my output of gfortran -v:

Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc/src/gcc-4.9-20140521/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-cloog-backend=isl --disable-cloog-version-check --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --disable-multilib --disable-werror --enable-checking=release
Thread model: posix
gcc version 4.9.0 20140521 (prerelease) (GCC)

Can you help with this problem?

Provide an answer of your own, or ask Thibaud Vantalon for more information if necessary.

To post a message you must log in.