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

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
Who is Participating?
slightwv (䄆 Netminder) Commented:
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?

crazy4sAuthor Commented:
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.
slightwv (䄆 Netminder) Commented:
Do you have the source to:

or are you just copying them over?
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

crazy4sAuthor Commented:
okay just because i used m1 instead of ./m1 it gives me the above error!
anyway thanks, problem solved.
slightwv (䄆 Netminder) Commented:
Would you like to accept your post as the solution or just have the question deleted?
slightwv (䄆 Netminder) Commented:
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.
crazy4sAuthor Commented:
hmm is okay other might have the possibility to bump into this error, so i'll just leave it:)
slightwv (䄆 Netminder) Commented:
>>other might have the possibility to bump into this error

But my post doesn't help resolve it.  Your post does.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.