public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-amd64] How to install multilib'ed version of any library (for real multilib  for x86 and x86_64 for every libraries)?
@ 2009-11-14 11:45 Cheng Renquan
  2009-11-14 15:16 ` [gentoo-amd64] " Nikos Chantziaras
  2009-11-17 14:54 ` [gentoo-amd64] " raxas
  0 siblings, 2 replies; 13+ messages in thread
From: Cheng Renquan @ 2009-11-14 11:45 UTC (permalink / raw
  To: gentoo-amd64

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 binaries;
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 executable

So when I want to compile a separate software source, I just setenv
CC="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 need
other more 32bit of libraries,

Comparing other linux distros like fedora-x86_64 and debian-amd64, I knew there
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,

-- 
Cheng Renquan (程任全), from Singapore



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2009-11-30  0:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-14 11:45 [gentoo-amd64] How to install multilib'ed version of any library (for real multilib for x86 and x86_64 for every libraries)? Cheng Renquan
2009-11-14 15:16 ` [gentoo-amd64] " Nikos Chantziaras
2009-11-15 10:21   ` Cheng Renquan
2009-11-15 10:35     ` Justin
2009-11-15 13:25   ` Duncan
2009-11-15 14:48     ` Nikos Chantziaras
2009-11-15 16:13       ` Volker Armin Hemmann
2009-11-15 17:06         ` Nikos Chantziaras
2009-11-17 14:54 ` [gentoo-amd64] " raxas
2009-11-29 18:14   ` Cheng Renquan
2009-11-29 20:20     ` Homer Parker
2009-11-29 20:52     ` Barry Schwartz
2009-11-29 23:51     ` [gentoo-amd64] " Nikos Chantziaras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox