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 1FCP9p-0004Zn-Ke for garchives@archives.gentoo.org; Thu, 23 Feb 2006 22:41:58 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1NMe9fD011331; Thu, 23 Feb 2006 22:40:09 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 k1NMX3hk024745 for ; Thu, 23 Feb 2006 22:33:03 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id D7A80D23E for ; Thu, 23 Feb 2006 22:33:02 +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 13113-02 for ; Thu, 23 Feb 2006 22:33:01 +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 342C8D24A for ; Thu, 23 Feb 2006 22:33:01 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error Date: Thu, 23 Feb 2006 16:33:00 -0600 User-Agent: KMail/1.9.1 References: <200602230003.33868.bo.andresen@gmail.com> <200602231540.14964.bss03@volumehost.com> <200602232256.02982.bo.andresen@gmail.com> In-Reply-To: <200602232256.02982.bo.andresen@gmail.com> 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="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602231633.00470.bss03@volumehost.com> X-Virus-Scanned: amavisd-new at volumehost.net X-Archives-Salt: 541b1408-2d77-4841-af58-11bf2da8044d X-Archives-Hash: 894bd2b996be59bfffa6c93c733a2291 On Thursday 23 February 2006 15:56, Bo Andresen wrote about 'Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error': > > > Will a 64 bit kernel be able to run a 32 bit bash? > > > > A 64-bit kernel will run 32-bit binaries fine... Um, there may be a > > needed kernel option though... CONFIG_IA32_EMUL? Anyone? > > I cannot seem to find any such kernel config option. I think these are relevant: $ zgrep -i ia32 /proc/config.gz CONFIG_IA32_EMULATION=y CONFIG_IA32_AOUT=y > > > In order to get a 64 > > > bit kernel a have to set CFLAGS=-march=k8 > > > > Your CFLAGS in make.conf don't affect your kernel, normally. > > Didn't really think so either. It's just that I still get the Exec > format error when I try to chroot. Is there a way to very that I really > am running a 64 kernel? I believe this tells you: $ uname -m x86_64 > > > and set the processor type to > > > K8 in the kernel configuration, right? > > > > Just setting the proper processor type should build your kernel as > > 64-bit. > > Did do that. The only thing I can't think of at this point is something from the gentoo cross compile howto from vapier that may or may not apply: "If you want to cross compile a kernel, do this: make ARCH=hppa CROSS_COMPILE=hppa2.0-unknown-linux-gnu-" So, you may want to configure, make, and install your kernel like: make ARCH=x86_64 menuconfig make ARCH=x86_64 make ARCH=x86_64 install (You don't need a CROSS_COMPILE prefix since gcc should work fine.) -- Boyd Stephen Smith Jr. bss03@volumehost.com ICQ: 514984 YM/AIM: DaTwinkDaddy -- gentoo-user@gentoo.org mailing list