From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-amd64+bounces-12123-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1N9HIl-0000hP-6x
	for garchives@archives.gentoo.org; Sat, 14 Nov 2009 12:00:23 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id B6280E08DB
	for <garchives@archives.gentoo.org>; Sat, 14 Nov 2009 12:00:22 +0000 (UTC)
Received: from mail-vw0-f184.google.com (mail-vw0-f184.google.com [209.85.212.184])
	by pigeon.gentoo.org (Postfix) with ESMTP id 04B1AE0855
	for <gentoo-amd64@lists.gentoo.org>; Sat, 14 Nov 2009 11:45:28 +0000 (UTC)
Received: by vws14 with SMTP id 14so1047312vws.32
        for <gentoo-amd64@lists.gentoo.org>; Sat, 14 Nov 2009 03:45:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=domainkey-signature:mime-version:received:date:message-id:subject
         :from:to:content-type:content-transfer-encoding;
        bh=fwdPIQ1KX4D5bhix88vHHM8SXS4sCgmJFIFk3Ew5wac=;
        b=qgxTnKo6EGInser3aj30nUhMOk1MOucTCkLjAPvyr4FqJEcQ40KO8egQIojD9lFxmX
         fIvSyPFGvUV4kqUGs1f71wUhxN+GC7BkfJegqOjv/jLhAz//UEzKGtQ0S637Rl8fQoNf
         PjnasvHsxuXPzXEx74hHEhv3Er/WH2RSUhZMw=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=gamma;
        h=mime-version:date:message-id:subject:from:to:content-type
         :content-transfer-encoding;
        b=DLl94VYWTlfRXoZbAtOhfRKCPRmZslSblQk0nk5HcQznyLHMtcSL1SyMfPhMtTT639
         d6dfLZeiYOjGjFJP9WOnvdZg2RCAl1jz93/QAO/Xc2BDWkZMtLgj3cLEmQzDS+38nYbZ
         yQwIgqy3J6fCEfWB+x1HXCroYqRHrtxYi0EOQ=
Precedence: bulk
List-Post: <mailto:gentoo-amd64@lists.gentoo.org>
List-Help: <mailto:gentoo-amd64+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-amd64+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-amd64+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-amd64.gentoo.org>
X-BeenThere: gentoo-amd64@lists.gentoo.org
Reply-to: gentoo-amd64@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.220.125.7 with SMTP id w7mr943894vcr.74.1258199128593; Sat, 14 
	Nov 2009 03:45:28 -0800 (PST)
Date: Sat, 14 Nov 2009 19:45:28 +0800
Message-ID: <91b13c310911140345w6fce2bd1r848b72685c7cd999@mail.gmail.com>
Subject: [gentoo-amd64] How to install multilib'ed version of any library (for real multilib 
	for x86 and x86_64 for every libraries)?
From: Cheng Renquan <crquan@gmail.com>
To: gentoo-amd64@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: 230ba86b-204b-45ba-9743-54e47d27f966
X-Archives-Hash: 7e0ef530e38830401f7fa65f059bc33b

Hello, gentoo amd64 developers,
  I found a big problem with gentoo amd64 recently:

I'm just switching from x86 to amd64 gentoo, several months ago, everything
goes well, but now I have a project that need to compile some 32bit binarie=
s;
since my gcc and glibc both have multilib support, originally I don't think=
 it's
a problem, just like this hellworld.c program:

$ gcc -o hello helloworld.c             # will generate a default
hello executable, 64bit;
$ gcc -m32 -o hello.x86 helloworld.c # specify to generate a 32bit executab=
le

So when I want to compile a separate software source, I just setenv
CC=3D"gcc -m32"
this seems reasonable, but finally it failed with an error,

http://pastebin.org/52915

Now I know it's because of this software need 32bit libbfd, while the
default 64bit
libbfd is provided by sys-devel/binutils, so I need a multilib'ed
binutils library,
but how do I install a 32bit of libbfd in gentoo way?

Furthermore, if compiling any other 32bit program on gentoo-amd64, it may n=
eed
other more 32bit of libraries,

Comparing other linux distros like fedora-x86_64 and debian-amd64, I knew t=
here
is simple way to archive this goal, just install both binutils.x86_64
and binutils.i686
packages, but on gentoo-amd64, how can we do this in a similarly simple way=
?

How about add USE multilib support of every package that contains libraries=
?

I have asked this problem on #gentoo-amd64 channel, but seemed no people
there knew it, so please someone on the mailing list know how to resolve it=
?

Thanks very much,

--=20
Cheng Renquan (=E7=A8=8B=E4=BB=BB=E5=85=A8), from Singapore