Date: Thu, 2 Dec 2004 12:01:41 -0800 From: "David O'Brien" <obrien@freebsd.org> To: Egor Dmitrenkov <mind@doctor.com>, nmeverde@np.k12.mn.us Cc: freebsd-amd64@freebsd.org Subject: Re: Kernel Build errors Message-ID: <20041202200141.GA2774@dragon.nuxi.com> In-Reply-To: <60106.206.146.85.21.1102012445.squirrel@206.146.85.21> References: <20041202170246.3CFE7790094@ws1-14.us4.outblaze.com> <60106.206.146.85.21.1102012445.squirrel@206.146.85.21>
next in thread | previous 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 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. 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 Specifying 'TARGET_ARCH' isn't part of the 'new school way'. Only specify 'TARGET_ARCH' when you are trying to do a cross build. -- -- David (obrien@FreeBSD.org)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041202200141.GA2774>