compilation issue gfortran

Asked by Innigo

Hi everyone! I'm trying to launch a process with Madgraph with my Ubuntu Linux machine (with gcc and gfortran versions 5.3.1) but I always get the same error message

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 ../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
     /usr/bin/ld: BFD version 2.20.51.0.2-5.47.el6_9.1 20100205 internal error, aborting at reloc.c line 443 in bfd_get_reloc_size

     /usr/bin/ld: Please report this bug.

     collect2: 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/mg5amcnlo.
 If you think that this is a bug, you can report this at https://bugs.launchpad.net/mg5amcnlo

I've tried some downgrades as I've read in recent questions that are already solved but nothing seems to work. Any other ideas? Thanks!

Question information

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

I would suggest to follow the solution from this thread:
https://github.com/laurenz/oracle_fdw/issues/185

Cheers,

Olivier

On 26 Jun 2018, at 12:08, Innigo <<email address hidden><mailto:<email address hidden>>> wrote:

/usr/bin/ld: BFD version 2.20.51.0.2-5.47.el6_9.1 20100205 internal error, aborting at reloc.c line 443 in bfd_get_reloc_size

Revision history for this message
chopra (kevin-siehl-b) said :
#2

I am having a similar issue, after upgrading to Ubuntu 18.04.
My error message is:
Error detected in "generate_events "
write debug file /home/kevin/MG5_aMC_v2_2_3/bin/NO_TAU/run_44_test_crab1_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/kevin/MG5_aMC_v2_2_3/bin/NO_TAU/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 -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
     ../lib//libpdf.a(pdfwrap.o): In function `pdfwrap_':
     pdfwrap.f:(.text+0x142c): undefined reference to `_gfortran_stop_numeric_f08'
     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

I followed the link that Olivier gave: https://github.com/laurenz/oracle_fdw/issues/185
but I'm not sure how to follow shsong's instructions.

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

I do not think that this is the same issue.
(error message does not match)

According to google this is a missmatch of gfortran library.
I would first recommend to fully re-install madgraph (and all the library like lhapdf/... if you have installed those). And see if it is working after that.

If it is still not working, then you need to find on your system where the two gfortran libraries against you link are present.

Cheers,

Olivier

On 10 Jan 2019, at 20:22, chopra <<email address hidden><mailto:<email address hidden>>> wrote:

 undefined reference to `_gfortran_stop_numeric_f08'

Can you help with this problem?

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

To post a message you must log in.