On Thursday 23 February 2006 18:16, Bo Andresen <[EMAIL PROTECTED]> 
wrote about 'Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec 
format error':
> On Friday 24 February 2006 01:12, Bo Andresen wrote:
> > On Friday 24 February 2006 00:52, Boyd Stephen Smith Jr. wrote:
> > > When you 'make ARCH=x86_64 menuconfig', can you find the IA32
> > > configuration options?
> >
> > Indeed I can. Thanks. :)
>
> Unfortunately, however, it doesn't compile.. :(
>
> # make ARCH=x86_64
>   CHK     include/linux/version.h
>   SPLIT   include/linux/autoconf.h -> include/config/*
>   CC      arch/x86_64/kernel/asm-offsets.s
> cc1: error: code model `kernel' not supported in the 32 bit mode
> make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1
> make: *** [prepare0] Error 2
>
> Going to bed now. Will look at it tomorrow.

Oy, oy, oy.  No wonder my friends would rather fsck with the amd64 live cd 
(that panics on boot unless the BIOS settings are /really/ special) than 
start off in 32-bit land.

Anyway, I think what you probably need to do is append -m64 to your CFLAGS.

Try:
make ARCH=x86_64 CFLAGS=-m64
I'll go fiddle a bit, too.  I'm already running a 64-bit userland, but I 
have an i686 "cross"-compiler installed, maybe I can iron out think kinks 
in the process for ya.

-- 
Boyd Stephen Smith Jr.
[EMAIL PROTECTED]
ICQ: 514984 YM/AIM: DaTwinkDaddy
-- 
[email protected] mailing list

Reply via email to