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 1FCM3s-0000ac-RT for garchives@archives.gentoo.org; Thu, 23 Feb 2006 19:23:37 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1NJMDOL010609; Thu, 23 Feb 2006 19:22:13 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1NJHiJJ002865 for ; Thu, 23 Feb 2006 19:17:45 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 07346CEBC for ; Thu, 23 Feb 2006 19:17:44 +0000 (UTC) Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 11624-09 for ; Thu, 23 Feb 2006 19:17:38 +0000 (UTC) Received: from monster (ip70-178-175-2.ks.ks.cox.net [70.178.175.2]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 537A6CE2F for ; Thu, 23 Feb 2006 19:17:38 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] amd64/x86 Date: Thu, 23 Feb 2006 13:17:33 -0600 User-Agent: KMail/1.9.1 References: <403.1140687764@www045.gmx.net> <97c95c3d0602230454l1c8712a7r@mail.gmail.com> <200602231224.02877.danstemporaryaccount@yahoo.ca> In-Reply-To: <200602231224.02877.danstemporaryaccount@yahoo.ca> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602231317.33767.bss03@volumehost.com> X-Virus-Scanned: amavisd-new at volumehost.net X-Archives-Salt: f7dc4c09-2a8a-4ae6-b103-026c54db9166 X-Archives-Hash: 11d919252da6cb9d88bffcca3b932b84 On Thursday 23 February 2006 11:24, daniel wrote about 'Re: [gentoo-user] amd64/x86': > On Thursday 23 February 2006 07:54, Boris Fersing wrote: > > 2006/2/23, jarry@gmx.net : > > > I'm going to install Gentoo on Athlon64-based workstation, > > > but I'm a little confused about hardware profiles and their > > > compatibility: > > > > just use the amd64 default profile (the mutilib one), then you'll be > > able to run 32bits softwares too ! E.g. Doom3, a 32-bit binary, works fine on my ~amd64 system. > Not entirely true. When I first got my amd64 box, I did just that and > was horribly disappointed. While most things worked, there were a > number of "show stoppers" so to speak: Konqueror couldn't play flash > movies because while Konqueror compiled just fine as 64-bit, flash is > only available in 32bit. If I wanted to see Flash, I had to use a > binary version of Firefox. Worse though was the fact that none of the > win32codecs were available so I couldn't watch any wmv, wma or other > binary-only formats. Of course, none of these cases is (simply) running a 32-bit binary. All these cases cover having a 64-bit binary load a 32-bit library. While I believe this is technically possible with very disciplined developers and some kernel help, it's not supported (or even allowed) currently. Loading a 32-bit library (using dlopen etc.) will fail if you are currently running in 64-bit mode. The solution at the user end is to run 32-bit versions of the software that needs to load 32-bit libraries, unfortunately gentoo doesn't make this as easy as I'd like [1], but does provide a few methods. There's firefox-bin, which is the offically branded 32-bit version of firefox, capable of loading your 32-bit flash player, as well as some flash players with source available (and at differing levels of usability). Mplayer also has a relatively new bindist USE flag, which I believe installs the 32-bit binary for use with w32codecs. Beyond this, you can also setup a chroot (there's a guide in the gentoo wiki), and I believe the gentoo forums has a nsplugin32 ebuild which is supposed to allow 64-bit konq to load 32-bit plugins. You could, of course run an entirely 32-bit userland, and gcc will still optimize your processor in 32-bit mode (but, some processor features just are not available in 32-bit mode). The solution at the developer end is, when running on a system that supports both multiple modes of execution, have separate processes running (one in each mode) that communicate via IPC (pipes, shared memory, etc.) and are each responsible for loading libraries with a matching mode. This hasn't been traditionally done because the number of installations that support multiple execution modes running side-by-side is low. > Sadly, if you want to be able to use stuff typically used for the > Windows world, you have to conform to that world's handicapps, which > means making do with 32bits for now. I am reminded of an RMS quote: "Every nonfree program has a lord, a master--and if you use the program, he is your master." -- Richard Stallman, in an interview for Federico Binacuzzi http://www.linuxdevcenter.com/pub/a/linux/2004/12/22/rms_interview.html For me, I just don't use flash that isn't supported by my 64-bit flash player. I just don't watch wmv movies (h264 data in the maktroska wrapper is better anyway). I just don't use the scanning feature of my multi-function printer (supported in sane using a proprietary 32-bit library). It's a cost that I'm willing to bear. It's also getting me closer to living in the free world. ;) -- Boyd Stephen Smith Jr. bss03@volumehost.com ICQ: 514984 YM/AIM: DaTwinkDaddy [1] I'd like be be able to 'ARCH="x86" emerge firefox' (or similar) and get a 32-bit version (compiled with my CFLAGS etc.) installed in parallel with my 64-bit version, without undue hardship. -- gentoo-user@gentoo.org mailing list