On Thursday 23 February 2006 18:32, "Boyd Stephen Smith Jr." 
<[EMAIL PROTECTED]> wrote about 'Re: [gentoo-user] chroot: cannot run 
command `bin/bash': Exec format error':
> Try:
> make ARCH=x86_64 CFLAGS=-m64

Nah, don't.  It won't help, the kernel's Makefile doesn't pay attention to 
CFLAGS, it sets up it's own based on your .config.

While I didn't get the same error as you, I see definite "I'm trying to 
compile 64-bit assembly into 32-bit binaries"-style errors when compiling 
with:
make ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnu-
make ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnu- CFLAGS="-m32"
make ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnu- CFLAGS="-m64"
and
make ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnu- CC="gcc -m32"

However, I /was/ able to convince the kernel to build with
make ARCH=x86_64 CROSS_COMPILE=i686-pc-linux-gnu- CC="gcc -m64"
although I didn't see if that would boot.

So, why don't you give it a go with:
make ARCH=x86_64 CC="gcc -m64" menuconfig
make ARCH=x86_64 CC="gcc -m64"
make ARCH=x86_64 CC="gcc -m64" modules_install
make ARCH=x86_64 CC="gcc -m64" install

and let me know how it goes.

-- 
Boyd Stephen Smith Jr.
[EMAIL PROTECTED]
ICQ: 514984 YM/AIM: DaTwinkDaddy
-- 
gentoo-user@gentoo.org mailing list

Reply via email to