public inbox for gentoo-amd64@lists.gentoo.org
 help / color / mirror / Atom feed
From: Cheng Renquan <crquan@gmail.com>
To: gentoo-amd64@lists.gentoo.org
Subject: [gentoo-amd64] How to install multilib'ed version of any library (for real multilib  for x86 and x86_64 for every libraries)?
Date: Sat, 14 Nov 2009 19:45:28 +0800	[thread overview]
Message-ID: <91b13c310911140345w6fce2bd1r848b72685c7cd999@mail.gmail.com> (raw)

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



             reply	other threads:[~2009-11-14 12:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-14 11:45 Cheng Renquan [this message]
2009-11-14 15:16 ` [gentoo-amd64] Re: How to install multilib'ed version of any library (for real multilib for x86 and x86_64 for every libraries)? 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=91b13c310911140345w6fce2bd1r848b72685c7cd999@mail.gmail.com \
    --to=crquan@gmail.com \
    --cc=gentoo-amd64@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox