From owner-freebsd-amd64@FreeBSD.ORG Fri Dec 3 00:53:31 2004 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AF6C716A4CE for ; Fri, 3 Dec 2004 00:53:31 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4670543D1D for ; Fri, 3 Dec 2004 00:53:31 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id iB30rRv3006549; Thu, 2 Dec 2004 16:53:27 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id iB30rQhk006548; Thu, 2 Dec 2004 16:53:26 -0800 (PST) (envelope-from obrien) Date: Thu, 2 Dec 2004 16:53:26 -0800 From: "David O'Brien" To: Egor Dmitrenkov Message-ID: <20041203005326.GA6425@dragon.nuxi.com> References: <20041202203835.6BF3B790094@ws1-14.us4.outblaze.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041202203835.6BF3B790094@ws1-14.us4.outblaze.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.0-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-amd64@freebsd.org Subject: Re: Kernel Build errors X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Dec 2004 00:53:31 -0000 On Thu, Dec 02, 2004 at 03:38:35PM -0500, Egor Dmitrenkov wrote: > > Something is very weird -- you're trying to compile a 'i386' platform > > file and not the proper 'amd64' platform file. > > > > You show you're trying to build a 64-bit kernel (vs. 32-bit), but let me > > ask that this is true just to be perfectly clear. > > > Yes, I'm trying to build a 64-bit kernel. Ok, so now I'm going to assume you're trying to do this on a 32-bit FreeBSD/i386 5.3 system; since there aren't any other details otherwise. First question is why don't you just don't download and install FreeBSD/amd64 5.3 onto your Athlon64 system? However, if you want to build an amd64 kernel on an i386 system (ie, a cross build): # cd /usr/src # rm -rf /usr/obj/* # make cleandir ; make cleandir # make TARGET_ARCH=amd64 buildworld # make KERNCONF=GENERIC TARGET_ARCH=amd64 buildkernel note that the 2nd and 3rd steps aren't typically needed, but I have no idea the state of your /usr/src and /usr/obj dirs. > > On Thu, Dec 02, 2004 at 12:34:05PM -0600, nmeverde@np.k12.mn.us wrote: > > Geez, could you *please* trim some of the uneeded _1030_ lines in the > > original post when you follow up?!? .. > Sorry for flooding, I thought that this info can be useful... >From you it was useful. From nmeverde@np.k12.mn.us it wasn't. > Result(last command and errmsg): > cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -Wall .. > /src/sys/amd64/amd64/genassym.c > /usr/src/sys/amd64/amd64/genassym.c:1: error: code model `kernel' not supported > in the 32 bit mode > *** Error code 1 You're still using the i386 32-bit kernel to build an AMD64 kernel. The 32-bit i386 compiler doesn't understand the AMD64-specific compiler switches. -- -- David (obrien@FreeBSD.org)