LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-10-2013, 06:40 AM   #1
mahmoodn
Member
 
Registered: May 2010
Posts: 427

Rep: Reputation: 16
x86_64 library file incompatible with i386


When I want to install gcc 4.1.2 on ubuntu 12.04 (x86_64), I get this error:

Code:
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.so when searching for -lc
/usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libc.a when searching for -lc
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/x86_64-linux-gnu/crti.o' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `/usr/lib/x86_64-linux-gnu/crtn.o' is incompatible with i386 output
collect2: ld returned 1 exit status
make[3]: *** [32/libgcc_s.so] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/opt/gcc-4.1.2/host-x86_64-unknown-linux-gnu/gcc'
The solutions are here http://gcc.gnu.org/ml/gcc-help/2009-05/msg00238.html
The second method works for me but why the first solution doesn't work. Why? It is stated that the 32bit libraries should be installed.

Code:
# dpkg -l | grep ia32
ii  ia32-libs                              20090808ubuntu36                        ia32 shared libraries - transitional package
ii  ia32-libs-multiarch:i386               20090808ubuntu36                        Multi-arch versions of former ia32-libraries
How can I fix that without disabling multiarch?
 
Old 02-17-2013, 03:50 AM   #2
äxl
Member
 
Registered: Feb 2013
Location: Germany, EU
Distribution: Debian (stable release)
Posts: 67

Rep: Reputation: 10
x86_64 library file incompatible with i386

Quote:
Originally Posted by Michael Meissner
The error occurs in building 32-bit libgcc, which is produced in the normal x86_64 builds. Gcc has the concept of multi-lib, where it wants to support people who use incompatible options, such as -m32 or -m64. It builds both libraries, and then selects the appropriate library at link time, depending on the options.

You need to either:
1) Install the 32-bit development libraries in the appropriate places; (or)

2) Configure your compiler with --disable-multilib to prevent the 32-bit libgcc from being built.
He says development libraries. In Debian here is also a ia32-libs-dev and configure doesn't try to deliver 32-bit.
Ubuntu has ia32-libs-dev but I rather think you need every -dev package of the things you want to build.

Last edited by äxl; 02-17-2013 at 03:51 AM. Reason: title, subscription
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
assembly error: i386 architecture incompatible with i386:x86-64 output rohedin Programming 11 08-11-2015 08:13 AM
[SOLVED] .libs/noncopyable.o' is incompatible with i386:x86-64 output Aquarius_Girl Linux - General 11 05-05-2010 09:15 AM
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
MySQL and PHP: incompatible libmysqlclient library dciric Linux - Software 1 05-31-2004 12:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

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