LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-19-2010, 06:10 AM   #1
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
.libs/noncopyable.o' is incompatible with i386:x86-64 output


OpenSuse 11.2 (64 bit)

I installed libxml-2.18.2, Doing make gives me the following error:
Code:
collect2: ld terminated with signal 11 [Segmentation fault]
/usr/lib64/gcc/x86_64-suse-linux/4.4/../../../../x86_64-suse-linux/bin/ld: i386 architecture of input file `.libs/noncopyable.o' is incompatible with i386:x86-64 output
Any idea why i am getting this ? and what does this mean ?

Last edited by Aquarius_Girl; 04-20-2010 at 12:27 AM.
 
Old 04-19-2010, 08:45 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
Welcome to the world of 32/64 bit woes

try file /path/to/noncopyable.o

It seems to be expecting a 64 bit file. If you have a 32 bit one, that may or may not be good enough. The crash indicates it isn't good enough.
It could also be a lib for arm, sparc, macos, etc.
 
1 members found this post helpful.
Old 04-19-2010, 02:21 PM   #3
rob.rice
Senior Member
 
Registered: Apr 2004
Distribution: slack what ever
Posts: 1,076

Rep: Reputation: 205Reputation: 205Reputation: 205
the best bet would be to build the library from source
I'm running 64bit slackware and have to install just about every thing from source
at this point in time (64bit distros are just now becoming common) the 64bit
speed boost is not yet free you need to put extra effort in to the system
like installing shared libraries from source

Last edited by rob.rice; 04-19-2010 at 02:26 PM.
 
Old 04-26-2010, 01:38 AM   #4
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
business_kid and rob.rice

Thanks to both of you for the valuable insights !

I shall try to re-install the package again after a few days, then i shall reply back to thread again !
 
Old 04-30-2010, 06:47 AM   #5
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by business_kid
try file /path/to/noncopyable.o
Code:
anisha@linux-uitj:~/tarBalls/libxml++-2.18.2> locate noncopyable
/home/anisha/tarBalls/libxml++-2.18.2/docs/reference/2.18/html/noncopyable_8h.html
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/.deps/noncopyable.Plo        
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/.libs/noncopyable.o
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.cc              
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.h
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.lo              
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.o
/usr/include/boost/asio/detail/noncopyable.hpp
/usr/include/boost/noncopyable.hpp
What should i understand from this ?

Quote:
Originally Posted by business_kid
It seems to be expecting a 64 bit file. If you have a 32 bit one, that may or may not be good enough.
How should i know whether the library is for 32 bit OS or a 64 bit OS ?

Last edited by Aquarius_Girl; 04-30-2010 at 07:03 AM.
 
Old 04-30-2010, 06:49 AM   #6
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by rob.rice
the best bet would be to build the library from source
I downloaded the tar ball of that library then did:
./configure
make


Isn't this called installing from source, or I am getting it wrong ?
 
Old 04-30-2010, 07:13 AM   #7
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
This error has been solved [though i failed to understand how]

I ran :
Code:
make clean
./configure
make
make install
Now there are no errors !
 
Old 05-02-2010, 03:49 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
You never posted the results of the file command.

/Guessing
You _had_ a 32 bit lib; You built it from source and got a 64bit one. Either that, or there was a version conflict between some old version of that lib you downloaded and something else.
/End guessing

Stop worrying. Rule no 1 is
"If it ain't broke, don't fix it!
 
1 members found this post helpful.
Old 05-02-2010, 11:48 PM   #9
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by business_kid
You never posted the results of the file command.
Actually i didn't know that file was a command:

Code:
anisha@linux-uitj:~>locate noncopyable.o
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/.libs/noncopyable.o
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.o
anisha@linux-uitj:~>file /home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.o
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/noncopyable.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
anisha@linux-uitj:~>file /home/anisha/tarBalls/libxml++-2.18.2/libxml++/.libs/noncopyable.o
/home/anisha/tarBalls/libxml++-2.18.2/libxml++/.libs/noncopyable.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
Now can you explain me what happened in detail and how to resolve such problems in future ?

Last edited by Aquarius_Girl; 05-03-2010 at 12:19 AM.
 
Old 05-04-2010, 03:21 AM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I did.

See my previous post under /Guessing

To paraphrase: You somehow installed a 32 bit lib on your 64 biot system and whatever needed it barfed. You installed from source, and the configure script has a look(runs uname [options] actually) and decides whether you are 32 or 64 bit and builds accordingly. You then installed this and it overwrote your 32 bit lib with a 64 bit one. Now you should close the thread, (Edit the first post/Advanced & edit subject & mark it solved) thank me and go away :-).
 
1 members found this post helpful.
Old 05-04-2010, 03:29 AM   #11
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731

Original Poster
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
Quote:
Originally Posted by business_kid
thank me and go away
Thanks for the explanation.

Next time if you feel bored while explaining things to me, feel free to ignore my posts.

Last edited by Aquarius_Girl; 05-04-2010 at 07:06 AM. Reason: mis-information
 
Old 05-05-2010, 09:15 AM   #12
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,260

Rep: Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321Reputation: 2321
I didn't mean to come across that way. Sorry if I seemed rude.

I've been there, knowing the answer is staring me in the face, or that something weird has happened, and made it a bit further up the learning curve, that's all. I was being cheeky, and should have put a bigger smiley!
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
akmod on x86_64, but I also need to build libs for i386 JohnLocke Linux - General 2 08-14-2008 10:47 PM
i386 :/x86-64 architecture of input file '*.o' is incompatible with i386 output Fiona Linux - Newbie 1 05-07-2008 07:23 AM
warning: unknown architecture of input file *** incompatible with i386 output johnpaulodonnell Linux - Newbie 5 02-14-2007 04:44 PM
Where do i download gnome-libs-1.4.1.7-i386-1.tgz Michaelx Slackware 2 06-18-2006 11:49 AM
krb5-libs-1.2.7-10.i386.rpm?? There but not?? Syst3m_Snip3r Linux - Software 1 11-18-2003 05:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:25 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