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: Fri, 24 Feb 2006 00:40:28
Message-Id: 200602231832.13268.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 18:16, Bo Andresen <bo.andresen@×××××.com>
2 wrote about 'Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec
3 format error':
4 > On Friday 24 February 2006 01:12, Bo Andresen wrote:
5 > > On Friday 24 February 2006 00:52, Boyd Stephen Smith Jr. wrote:
6 > > > When you 'make ARCH=x86_64 menuconfig', can you find the IA32
7 > > > configuration options?
8 > >
9 > > Indeed I can. Thanks. :)
10 >
11 > Unfortunately, however, it doesn't compile.. :(
12 >
13 > # make ARCH=x86_64
14 > CHK include/linux/version.h
15 > SPLIT include/linux/autoconf.h -> include/config/*
16 > CC arch/x86_64/kernel/asm-offsets.s
17 > cc1: error: code model `kernel' not supported in the 32 bit mode
18 > make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
19 > make: *** [prepare0] Error 2
20 >
21 > Going to bed now. Will look at it tomorrow.
22
23 Oy, oy, oy. No wonder my friends would rather fsck with the amd64 live cd
24 (that panics on boot unless the BIOS settings are /really/ special) than
25 start off in 32-bit land.
26
27 Anyway, I think what you probably need to do is append -m64 to your CFLAGS.
28
29 Try:
30 make ARCH=x86_64 CFLAGS=-m64
31 I'll go fiddle a bit, too. I'm already running a 64-bit userland, but I
32 have an i686 "cross"-compiler installed, maybe I can iron out think kinks
33 in the process for ya.
34
35 --
36 Boyd Stephen Smith Jr.
37 bss03@××××××××××.com
38 ICQ: 514984 YM/AIM: DaTwinkDaddy
39 --
40 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error "Boyd Stephen Smith Jr." <bss03@××××××××××.com>