Gentoo Archives: gentoo-user

From: "Boyd Stephen Smith Jr." <bss03@××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error
Date: Thu, 23 Feb 2006 21:56:27
Message-Id: 200602231540.14964.bss03@volumehost.com
In Reply to: Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error by Bo Andresen
1 On Thursday 23 February 2006 15:31, Bo Andresen <bo.andresen@×××××.com>
2 wrote about 'Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec
3 format error':
4 > On Thursday 23 February 2006 00:42, Boyd Stephen Smith Jr. wrote:
5 > > > livecd gentoo # chroot /mnt/gentoo bin/bash
6 > > > chroot: cannot run command `bin/bash': Exec format error
7 > >
8 > > Your 32-but kernel can't run the 64-bit bash. You'll have to use a
9 > > 64-bit kernel (or as 32-bit stage3, and then gradually recompile)
10 >
11 > Will a 64 bit kernel be able to run a 32 bit bash?
12
13 A 64-bit kernel will run 32-bit binaries fine... Um, there may be a needed
14 kernel option though... CONFIG_IA32_EMUL? Anyone?
15
16 > In order to get a 64
17 > bit kernel a have to set CFLAGS=-march=k8
18
19 Your CFLAGS in make.conf don't affect your kernel, normally. I don't use
20 genkernel maybe it does some crazy magic like that.
21
22 > and set the processor type to
23 > K8 in the kernel configuration, right?
24
25 Just setting the proper processor type should build your kernel as 64-bit.
26
27 --
28 Boyd Stephen Smith Jr.
29 bss03@××××××××××.com
30 ICQ: 514984 YM/AIM: DaTwinkDaddy
31 --
32 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error Bo Andresen <bo.andresen@×××××.com>