From owner-freebsd-questions Wed Jun 13 7:35:19 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-26-235-186.mmcable.com [65.26.235.186]) by hub.freebsd.org (Postfix) with SMTP id 713E337B40D for ; Wed, 13 Jun 2001 07:35:13 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 59618 invoked by uid 100); 13 Jun 2001 14:35:12 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15143.31264.795663.259182@guru.mired.org> Date: Wed, 13 Jun 2001 09:35:12 -0500 To: Michael Radzewitz Cc: questions@freebsd.org Subject: RE: mymail - problems with buidlkernel In-Reply-To: <69918849@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Michael Radzewitz types: > Why I can't update only the sys-src tree and then build > a new kernel. When I first installed FreeBSD I > did the same with the sources from CD. The kernel - indeed, all of the sources - depend on the compiler and other tools being up to date. That means those tools need to be built from the same source tree as the sources you're trying to build. When you used the CD, the system you installed was built from the source on the CD. So the tools were up to date to build that kernel. If you want to build a kernel using updates sources, you have to use tools built from the rest of the sources in the source tree as well. That's what buildkernel does - builds usings tools built from those sources. For buildkernel to work properly, you need to do a "make buildworld" first to build the tools that buildkernel needs. If you don't, the kernel build is prone to strange failures. Finally, and for completeness, running a kernel built from sources different from the ones used for the rest of the world is unsupported. After you build and install the kernel, you need to install the world you built before you built the kernel. You do that with "make installworld". It's all documented in the handbook, and in /usr/src/UPDATING. > Now I'am downloading all the sources which I don't > really need (/src/games ...) You don't really need games. I haven't tried sorting out what is and isn't required. I just track src-all, and then set knobs for what should and shouldn't be built in /etc/make.conf. http://www.mired.org/home/mwm/ Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message