Date: Thu, 02 Dec 2004 15:38:35 -0500 From: "Egor Dmitrenkov" <mind@doctor.com> To: obrien@freebsd.org Cc: freebsd-amd64@freebsd.org Subject: Re: Kernel Build errors Message-ID: <20041202203835.6BF3B790094@ws1-14.us4.outblaze.com>
next in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041202203835.6BF3B790094>