LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2010, 05:04 PM   #1
xellsys
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Rep: Reputation: 0
"wrong ELF machine number"


I think I destroyed my gcc/binutils or something like that when trying to install some cross compilers.
Now, whenever I try to compile anything with gcc (either cross or local) it pops up this error message instead: "wrong ELF machine number".
Sadly I don't find any related problems via google/forum search. Please help me on how to fix my gcc.
I tried removing everything related to gcc/binutils and so on and reinstalling, but I'm quite sure I did not do that right. Else I'd expect it to work now.
Thanks in advance!

Last edited by xellsys; 11-29-2010 at 05:20 PM.
 
Old 11-29-2010, 06:17 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
It would help a great deal if you told us a few things, such as:
1) which distro are you using?
2) did you install packages using your distros package management software and repository?
3) did you install your distro as 32 bit or 64 bit?
4) did you mix 32 bit packages into a 64 bit installation?
 
Old 11-30-2010, 12:05 AM   #3
xellsys
LQ Newbie
 
Registered: Nov 2010
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the quick reply.
1) It's Ubuntu 10.04.1 LTS, kernel 2.6.32-26
2) Yes, I used aptitude to reinstall gcc/-4.4/binutils.
3) 32bit
4) I'm quite sure I have not mixed any 64bit packages into my distribution.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I want to build "ELF 64-bit LSB shared object", not "ELF 64-bit LSB executable" matschr Red Hat 2 11-15-2010 11:55 AM
DDD and "/sysdeps/i386/elf/start.S no such file..." problem vegetta Programming 3 03-25-2010 08:48 AM
Gmail notifier gives error: "wrong ELF class: ELFCLASS32" aero_b Linux - Newbie 13 03-01-2007 07:47 PM
Areca 1220 drivers + FC6 = "Verify ELF error" generic_user Linux - Kernel 1 10-31-2006 05:14 PM
/usr/libexec/ld-elf.so.1: Shared object "libgd.so.4" not found lxxy *BSD 1 12-04-2003 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration