On Thursday 23 February 2006 15:56, Bo Andresen <[EMAIL PROTECTED]> 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. [EMAIL PROTECTED] ICQ: 514984 YM/AIM: DaTwinkDaddy -- gentoo-user@gentoo.org mailing list