From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FCkKk-0004vB-RY for garchives@archives.gentoo.org; Fri, 24 Feb 2006 21:18:39 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id k1OLFxjL028936; Fri, 24 Feb 2006 21:15:59 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id k1OL7wgf029902 for ; Fri, 24 Feb 2006 21:07:58 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 3C171D3FE for ; Fri, 24 Feb 2006 21:07:58 +0000 (UTC) Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 21067-11-2 for ; Fri, 24 Feb 2006 21:07:56 +0000 (UTC) Received: from monster (ip70-178-175-2.ks.ks.cox.net [70.178.175.2]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 9CBB7D3F5 for ; Fri, 24 Feb 2006 21:07:56 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error [SOLVED] Date: Fri, 24 Feb 2006 15:07:56 -0600 User-Agent: KMail/1.9.1 References: <200602230003.33868.bo.andresen@gmail.com> <200602232318.56793.bss03@volumehost.com> <200602241356.14586.bo.andresen@gmail.com> In-Reply-To: <200602241356.14586.bo.andresen@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200602241507.56050.bss03@volumehost.com> X-Virus-Scanned: amavisd-new at volumehost.net X-Archives-Salt: d48bec43-95fb-468a-afd1-bed4cd1e2546 X-Archives-Hash: 86dfe7cee2d5ba016358399f61973ce1 On Friday 24 February 2006 06:56, Bo Andresen wrote about 'Re: [gentoo-user] chroot: cannot run command `bin/bash': Exec format error [SOLVED]': > Actually I guess I could just download the the amd64 livecd, mount it, > copy its kernel to the harddrive (already did emerge coldplug) and boot > on it. I did, however, find this very interesting so I do wish to > compile a 64-bit kernel and see what it takes. Well, when you are already running a 64-bit kernel and have a native gcc, you won't have to use the ARCH and CROSS_COMPILE magic. It just works. The whole process was also enlightening to me. I've never cross-compiled a kernel, but now I know how to have my dual-Opteron box compile the kernel for my Linksys router or my friend's hppa box. > > make ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu- > > (menuconfig, all, modules_install, etc.) > > At first when typing make ARCH=x86_64 CROSS_COMPILE=x86_64-pc-linux-gnu- > it told me it could not find these files: > > arch/x86_64/kernel/asm-offsets.c:12:21: asm/pda.h: No such file or > directory arch/x86_64/kernel/asm-offsets.c:16:22: asm/ia32.h: No such > file or directory [...] > make[1]: *** [arch/x86_64/kernel/asm-offsets.s] Error 1 > make: *** [prepare0] Error 2 > > # ls -ld include/asm > lrwxrwxrwx 1 root root 10 Feb 24 14:27 include/asm -> asm-386 > > I solved this by: > # ln -sfn include/asm-x86_64 include/asm I think this could also be solved with a 'make mrproper'. > make install didn't work either Weird. > This all did solve the problems. The resulting kernel does indeed boot > and it does make it possible to chroot into a 64 bit environment. :D > Thanks a lot. This has been very educating. Very good! I'm glad we solved your problem. -- Boyd Stephen Smith Jr. bss03@volumehost.com ICQ: 514984 YM/AIM: DaTwinkDaddy -- gentoo-user@gentoo.org mailing list