Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

/usr/bin/ld: Relocations in generic ELF (EM: 2)

Posted on 2012-03-29
8
Medium Priority
?
2,306 Views
Last Modified: 2012-06-22
Hi all,
i got this error while doing make (compiling all my files tgt).
Can anybody tell me why is this happening, and how should i solve this?
because my codes runs fine on the other machine but not this.
Thanks in advance:)

$ make
gcc -o m1 matmul_main.o matmul_setup.o matmul_compute.o matmul_output.o -lm -lpthread
/usr/bin/ld: matmul_main.o: Relocations in generic ELF (EM: 2)
matmul_main.o: could not read symbols: File in wrong format
collect2: ld returned 1 exit status
make: *** [m1] Error 1

if my make is up-to-date, it gives me another error:
$ make
make: `m1' is up to date.
$ m1 5 10 5 2
-bash: m1: command not found
0
Comment
Question by:crazy4s
  • 5
  • 3
8 Comments
 
LVL 78

Accepted Solution

by:
slightwv (䄆 Netminder) earned 2000 total points
ID: 37786963
I'm responding to a neglected question alert.  My 'make' expertise is pretty rusty.

Is this new code or have you compileed it before?

Have you tried a 'make clean' before the make?

http://lists.xymon.com/oldarchive/2006/09/msg00399.html
0
 

Author Comment

by:crazy4s
ID: 37787516
yes i tried it my university's csa machine, it runs fine. but when i change to this (8core machines), it just give me the errors even after i do make clean.
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37787529
Do you have the source to:
matmul_main.o
matmul_setup.o
matmul_compute.o
matmul_output.o

or are you just copying them over?
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:crazy4s
ID: 37787552
okay just because i used m1 instead of ./m1 it gives me the above error!
anyway thanks, problem solved.
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37787556
Would you like to accept your post as the solution or just have the question deleted?
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37787564
AS much as I like the points, I don't feel that I earned them.

I would like to unaccept this and let you accept your post as the solution.

Just let me know.
0
 

Author Comment

by:crazy4s
ID: 37787565
hmm is okay other might have the possibility to bump into this error, so i'll just leave it:)
0
 
LVL 78

Expert Comment

by:slightwv (䄆 Netminder)
ID: 37787574
>>other might have the possibility to bump into this error

But my post doesn't help resolve it.  Your post does.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses
Course of the Month10 days, 22 hours left to enroll

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question