From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FOXnn-0005Sx-9l for garchives@archives.gentoo.org; Wed, 29 Mar 2006 10:21:23 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k2TAK0W1014329; Wed, 29 Mar 2006 10:20:00 GMT Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.204]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k2TAJwc5004341 for ; Wed, 29 Mar 2006 10:19:59 GMT Received: by zproxy.gmail.com with SMTP id z6so144449nzd for ; Wed, 29 Mar 2006 02:19:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RRpAA0MOgu3k2tpIn1xKQpOCZHns24+xBdWszEv45/AtxGzDN9nSHvpHuXnJXbTCJrkRi7NXr4tZMFK9inh/4LgGZ4B3WMmYnJdiLYQtUI92w5AExsIHBpQ8mWRLXWc1BJQS8mjaB0ahmzES38VzwRhkwk3A7vJPRn/yx7CyZ88= Received: by 10.37.21.60 with SMTP id y60mr751007nzi; Wed, 29 Mar 2006 02:19:57 -0800 (PST) Received: by 10.36.224.64 with HTTP; Wed, 29 Mar 2006 02:19:57 -0800 (PST) Message-ID: <43872d370603290219u720f2a61s52c2fd023fda54f3@mail.gmail.com> Date: Wed, 29 Mar 2006 12:19:57 +0200 From: "Bertrand Jacquin" To: gentoo-amd64@lists.gentoo.org Subject: Re: [gentoo-amd64] 64-bit or 32-bit? In-Reply-To: <4429BD61.3030504@gmx.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-amd64@gentoo.org Reply-to: gentoo-amd64@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <20060326103301.7e4228b6@keelie.localdomain> <200603261950.46387.volker.armin.hemmann@tu-clausthal.de> <20060326182742.GA11979@icecream> <20060326212026.GA23407@crud.crud.mn.org> <20060326230814.GA10306@icecream> <20060327001008.GA13659@crud.crud.mn.org> <43872d370603280717w2b6ccbd9l9dae6e21a9a927d2@mail.gmail.com> <4429BD61.3030504@gmx.net> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id k2TAJwc5004341 X-Archives-Salt: da678925-5cbf-4cf9-b793-5fa992e3f0b3 X-Archives-Hash: d6e25d4046d7fe11610200dd489ae33a On 3/29/06, Marco Matthies wrote: > Bertrand Jacquin wrote: > > How could you compile mplayer or firefox in your 64 bits environnement > > to generate 32 bits binary ? I have multilib activated and I can't > > build mplayer with CFLAGS="-m32". > > > > It is needing something else ? > > > > I don't want too to have and maintain a 32 bit chroot. > > I'm assuming you're talking about compiling something by hand here. As > other people have mentioned here, support for portage to compile > arbitrary apps/libs 32-bit or 64-bit isn't there yet (at least in stable > portage which is what i'm using), every ebuild for amd64 at the moment > chooses either 32-bit or 64-bit (by setting ABI=x86 or ABI=amd64). No, maybe I misspell what I was wanting to say (my english sux too). The first exemple I wrote was in reality : CFLAGS="-m32" emerge -avt mozilla-firefox To be clear : I don't want a chroot, because it make be 2 gentoo to maintain and a lot of things unecessary ATM. I would like portage build for me a software in 32 bit mode. If it's a lib, I would like portage to install it in /emul/linux/x86 if I tell him to do that Like a (just an example) : emerge -avt libvorbis --abi 32 For example, I would to compile mplayer with portage and have to choice in USE flags, not as mplayer-bin. Maybe now it could be more clear for all. (I hope) > You need the 32-bit libs (which should go into /lib32 and /usr/lib32) > that your application depends on. At a bare minimum, this is going to be > libc for C programs, but usually some other libs as well. To make > precompiled dynamically linked 32-bit binaries such as mplayer-bin > possible, gentoo also supplies the libs needed for these binary ebuilds > in /emul/linux/x86 which are installed by the emul-linux-x86-* ebuilds. Yeah, I would like to avoid precompiled packages. > So, if the app you want to compile by hand uses only these, you can get > away with something along the lines of: > > ./configure \ > CFLAGS="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" \ > LDFLAGS="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" > > or > > ./configure \ > CFLAGS="-m32 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" \ > LDFLAGS="-m elf_i386 -L/emul/linux/x86/lib -L/emul/linux/x86/usr/lib" > > Which one of these two lines you need to use depends on if LDFLAGS gets > passed to gcc or ld by the makefile. > (see /usr/portage/profiles/default-linux/amd64/2006.0/make.defaults) > > If the app you want to compile needs additional libs, you'll have to > compile them yourself, install them under /usr/local and then compile > the app you're interested in -- this probably quickly becomes annoying > enough to make a 32-bit chroot so you can let portage+ebuilds do all the > work for you. I would like to avoid it too. Beber -- gentoo-amd64@gentoo.org mailing list