From owner-freebsd-amd64@FreeBSD.ORG Thu Dec 2 20:38:39 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 ED31B16A4CF for ; Thu, 2 Dec 2004 20:38:38 +0000 (GMT) Received: from webmail-outgoing.us4.outblaze.com (webmail-outgoing.us4.outblaze.com [205.158.62.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 439F543D3F for ; Thu, 2 Dec 2004 20:38:38 +0000 (GMT) (envelope-from mind@doctor.com) Received: from wfilter.us4.outblaze.com (wfilter.us4.outblaze.com [205.158.62.180])3473A18002A3 for ; Thu, 2 Dec 2004 20:38:38 +0000 (GMT) X-OB-Received: from unknown (205.158.62.178) by wfilter.us4.outblaze.com; 2 Dec 2004 20:38:35 -0000 Received: by ws1-14.us4.outblaze.com (Postfix, from userid 1001) id 6BF3B790094; Thu, 2 Dec 2004 20:38:35 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Received: from [213.59.125.30] by ws1-14.us4.outblaze.com with http for mind@doctor.com; Thu, 02 Dec 2004 15:38:35 -0500 From: "Egor Dmitrenkov" To: obrien@freebsd.org Date: Thu, 02 Dec 2004 15:38:35 -0500 X-Originating-Ip: 213.59.125.30 X-Originating-Server: ws1-14.us4.outblaze.com Message-Id: <20041202203835.6BF3B790094@ws1-14.us4.outblaze.com> cc: freebsd-amd64@freebsd.org Subject: Re: Kernel Build errors X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 20:38:39 -0000 > On Thu, Dec 02, 2004 at 12:02:46PM -0500, Egor Dmitrenkov wrote: > > > Well, I tried to compile GENERIC kernel for my Athlon64 and result wa= s: > > > What should I do? Help plz... > > > -------------------- > > > # cd /usr/src/sys/amd64/conf/ > > > # config GENERIC > > > Kernel build directory is ../compile/GENERIC > > > Don't forget to do a ``make depend'' > > > # cd ../compile/GENERIC > > > # make depend > .. > > > -mpreferred-stack-boundary=3D2 -ffreestanding ../../../i386/i386/gena= ssym.c > > > ../../../i386/i386/genassym.c:38:22: opt_apic.h: No such file or dire= ctory > > > In file included from ../../../sys/types.h:44, > > > from ../../../sys/param.h:61, > > > from ../../../i386/i386/genassym.c:42: > > > ./machine/endian.h: In function `__bswap64': > > > ./machine/endian.h:126: warning: right shift count >=3D width of type >=20 > Something is very weird -- you're trying to compile a 'i386' platform > file and not the proper 'amd64' platform file. >=20 > 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. >=20 Yes, I'm trying to build a 64-bit kernel. >=20 > On Thu, Dec 02, 2004 at 12:34:05PM -0600, nmeverde@np.k12.mn.us wrote: > > > Stop in /usr/src/sys/amd64/compile/GENERIC. > > > # > > > -- >=20 > Geez, could you *please* trim some of the uneeded _1030_ lines in the > original post when you follow up?!? >=20 > > is there a reason your building the kernel the old school way? > > read /usr/src/Makefile > > > > try this: > > cd /usr/src/ > > make TARGET_ARCH=3Damd64 buildkernel >=20 Sorry for flooding, I thought that this info can be useful... Result(last command and errmsg): cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -Wall -Wredundant-d= ecls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -= Winli ne -Wcast-qual -fformat-extensions -std=3Dc99 -nostdinc -I- -I. -I/usr/src/= sys -I/ usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/c= ontri b/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/= src/s ys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -D_KERNEL -include = opt_g lobal.h -finline-limit=3D8000 --param inline-unit-growth=3D100 --param larg= e-functio n-growth=3D1000 -mcmodel=3Dkernel -mno-red-zone -mfpmath=3D387 -mno-sse -mn= o-sse2 -mno -mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding= /usr /src/sys/amd64/amd64/genassym.c /usr/src/sys/amd64/amd64/genassym.c:1: error: code model `kernel' not suppo= rted in the 32 bit mode *** Error code 1=20 > Specifying 'TARGET_ARCH' isn't part of the 'new school way'. > Only specify 'TARGET_ARCH' when you are trying to do a cross build. >=20 Please, tell me what should I exactly do...=20 And please don't forget to "cc" me, I'm not yet subscribed to this list. Thanks in advance.=20 > -- > -- David (obrien@FreeBSD.org) --=20 ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm