Architecture issue

Asked by Ezequiel Alvarez

Hello,

I have Fedora Core 18 with 64 bit architecture. I have downloaded MGME, installed gfortran, gcc through yum for this architecture, then run 'yum groupinstall "Development Tools" ' to install all other building essentials.

I run MGME from the terminal, but not the in the new 'command-line' feature.

I can run ./bin/newprocess_mg5 without problems and the diagrams come out perfect. However, when I run ./bin/generate_events it comes the issue. The output error messagge is

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Generating 10000 events with run name run_01
survey run_01
compile directory
Error detected in sub-command generate_events
write debug file /home/sequi/mypapers/util/MadGraph5_v1_5_7/bbbar/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/sequi/mypapers/util/MadGraph5_v1_5_7/bbbar/Source.
 The compilation fails with the following output message:
     gfortran -O -w -ffixed-line-length-132 -o ../bin/internal/gen_ximprove gen_ximprove.o ranmar.o rw_routines.o open_file.o
     /usr/bin/ld: i386 architecture of input file `gen_ximprove.o' is incompatible with i386:x86-64 output
     /usr/bin/ld: i386 architecture of input file `ranmar.o' is incompatible with i386:x86-64 output
     /usr/bin/ld: i386 architecture of input file `rw_routines.o' is incompatible with i386:x86-64 output
     /usr/bin/ld: i386 architecture of input file `open_file.o' is incompatible with i386:x86-64 output
     gen_ximprove.o: In function `MAIN__':
     gen_ximprove.f:(.text+0x5a32): undefined reference to `__moddi3'
     gen_ximprove.f:(.text+0x5a6f): undefined reference to `__divdi3'
     ranmar.o: In function `ntuple_':
     ranmar.f:(.text+0x1035): undefined reference to `__moddi3'
     ranmar.f:(.text+0x1079): undefined reference to `__divdi3'
     ranmar.f:(.text+0x11a2): undefined reference to `__divdi3'
     collect2: error: ld returned 1 exit status
     make: *** [../bin/internal/gen_ximprove] 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

It looks like an architecture issue, but I feel ignorant that I don't know how to solve it. Thanks in advance for your help! All the best,

Ezequiel

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 Ezechiel,

According to:
http://stackoverflow.com/questions/7027018/c-make-error-link-problem-i386x86-64-architecture-of-input-file-incompatibl

it looks like that they are a mismatch between different compiler.
so could you do the following:
cd Source
make clean
make
and if it works retry
./bin/generate_events

Cheers,

Olivier

Revision history for this message
Ezequiel Alvarez (sequi76) said :
#2

Hi Olivier,

thanks so much, it worked out perfect. I'm so grateful for your work and dedication.

All the best,

Ezequiel.

Revision history for this message
Ezequiel Alvarez (sequi76) said :
#3

Thanks Olivier Mattelaer, that solved my question.

Revision history for this message
Hobert Denis (hobert8232) said (last edit ):
#4

Aimir CG is an architectural visualization company based in China, delivering consistent art quality 3D rendering services(https://www.aimircg.com/3d-rendering-services/) and animations worldwide. We are fast, efficient and always deliver on time. Our professionalism and communication skills make us easy to work with and the end product was nothing short of impressive!