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 ) id 1MEGTp-00082R-7e for garchives@archives.gentoo.org; Wed, 10 Jun 2009 05:36:09 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 80E36E0369; Wed, 10 Jun 2009 05:36:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 4A771E0369 for ; Wed, 10 Jun 2009 05:36:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id D5577658AC for ; Wed, 10 Jun 2009 05:36:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Score: -3.528 X-Spam-Level: X-Spam-Status: No, score=-3.528 required=5.5 tests=[AWL=0.071, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1] Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LSW9tWOjJGep for ; Wed, 10 Jun 2009 05:36:00 +0000 (UTC) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id 5E96865502 for ; Wed, 10 Jun 2009 05:35:59 +0000 (UTC) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MEGTb-0001Nd-Hh for gentoo-user@gentoo.org; Wed, 10 Jun 2009 05:35:55 +0000 Received: from pool-173-71-218-206.clppva.fios.verizon.net ([173.71.218.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Jun 2009 05:35:55 +0000 Received: from en.ABCD by pool-173-71-218-206.clppva.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 10 Jun 2009 05:35:55 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: gentoo-user@lists.gentoo.org From: ABCD Subject: [gentoo-user] Re: 64-bit kernel on a 32-bit installation Date: Wed, 10 Jun 2009 01:35:51 -0400 Message-ID: References: <5bdc1c8b0906091644t5c6601ddn81f7944cacc049be@mail.gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-71-218-206.clppva.fios.verizon.net User-Agent: Thunderbird 2.0.0.21 (X11/20090328) In-Reply-To: <5bdc1c8b0906091644t5c6601ddn81f7944cacc049be@mail.gmail.com> X-Enigmail-Version: 0.95.7 Sender: news X-Archives-Salt: c36c4c2d-fd23-4bb7-a26d-eef74d6f665c X-Archives-Hash: d98afd1d7e357d21df8182b2e61e0dd2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mark Knecht wrote: > Hi, > I lurk on the LKML, say hi once in awhile, ask a question once in > awhile, and try to read at least the interesting to a non-programmer > posts. I was curious about this one that came up today. Seems like > this is a natural for Gentoo. > > I have a Gentoo 64-bit setup but have had lots of troubles over the > years (far less now though) with web media and other things that need > to be more Windows compatible. (I do audio work with my Gentoo boxes - > interface to studios and a few bands, etc) I've found that my 32-bit > Gentoo installations have been more compatible than 64-bit. Outside > stuff like Java is better. In general when I have a problem I wonder > if it's because I'm running 64-bit. > > How would one go about building a 64-bit kernel on a 32-bit machine > with Gentoo? I presume that's mostly just how I configure the kernel, > along with maybe some cross-compile options? Are there any projects > going on in this area where I might become a test case? Wiki? Docs? > > Do others see value - getting 64-bit memory management, new CPU > flags, etc., but keeping the apps 32-bit for compatibility? > > Take care, > Mark Personally, I am using a 64-bit kernel with a 32-bit userland. My setup is a bit more complicated than the usual, because I have a x86_64-pc-linux-gnu-gcc that will build 32-bit as well as 64-bit binaries. The simpler version of what I use is: # emerge crossdev # crossdev -t x86_64-pc-linux-gnu Then, you can use something like the following to actually build a 64-bit kernel (personally, I always use out-of-tree builds, and create a GNUmakefile that calls the Makefile in the current directory with all the options I want): (in the kernel build directory) # make -C /path/to/sources O=`pwd` ARCH=x86 \ CROSS_COMPILE=x86_64-pc-linux-gnu- \ menuconfig I have found that just about everything works perfectly in my 64-bit kernel with 32-bit userland, *except* VirtualBox, which I have to run the 64-bit version of from a chroot. I also personally handle all external kernel modules, and add them to package.provided when necessary, so portage doesn't have to think about them. PS: I was going to outline all the patches, etc. that I needed for a multilib gcc/glibc, but then realized that you probably didn't need that much detail. - -- ABCD -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkovRjcACgkQOypDUo0oQOrMdgCfXRiLDyg1IH8d9fA+WodUjWO8 PRMAnihXrPy3VZBYhRF7LzWVivKl2eIb =dD3A -----END PGP SIGNATURE-----