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>
index | next in thread | raw e-mail
> 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 was: > > > 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=2 -ffreestanding ../../../i386/i386/genassym.c > > > ../../../i386/i386/genassym.c:38:22: opt_apic.h: No such file or directory > > > 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 >= width of type > > 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. > > On Thu, Dec 02, 2004 at 12:34:05PM -0600, nmeverde@np.k12.mn.us wrote: > > > Stop in /usr/src/sys/amd64/compile/GENERIC. > > > # > > > -- > > Geez, could you *please* trim some of the uneeded _1030_ lines in the > original post when you follow up?!? > > > is there a reason your building the kernel the old school way? > > read /usr/src/Makefile > > > > try this: > > cd /usr/src/ > > make TARGET_ARCH=amd64 buildkernel > 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-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winli ne -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I/usr/src/sys -I/ usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contri 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=8000 --param inline-unit-growth=100 --param large-functio n-growth=1000 -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-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 supported in the 32 bit mode *** Error code 1 > Specifying 'TARGET_ARCH' isn't part of the 'new school way'. > Only specify 'TARGET_ARCH' when you are trying to do a cross build. > Please, tell me what should I exactly do... And please don't forget to "cc" me, I'm not yet subscribed to this list. Thanks in advance. > -- > -- David (obrien@FreeBSD.org) -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htmhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041202203835.6BF3B790094>
