From owner-freebsd-questions@FreeBSD.ORG Wed Nov 23 18:06:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49FE316A41F for ; Wed, 23 Nov 2005 18:06:49 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86D6B43DCC for ; Wed, 23 Nov 2005 18:06:24 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 6044 invoked from network); 23 Nov 2005 18:06:19 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 23 Nov 2005 18:06:18 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 3AD462841D; Wed, 23 Nov 2005 13:06:18 -0500 (EST) Sender: lowell@be-well.ilk.org To: Jose Borquez References: <20051123082717.77949.qmail@web54705.mail.yahoo.com> From: Lowell Gilbert Date: 23 Nov 2005 13:06:18 -0500 In-Reply-To: <20051123082717.77949.qmail@web54705.mail.yahoo.com> Message-ID: <44br0b5jdx.fsf@be-well.ilk.org> Lines: 42 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Peter , freebsd-questions@freebsd.org Subject: Re: Can't compile kernel X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 18:06:49 -0000 Don't top-post, please. Jose Borquez writes: > > Peter wrote: > --- Jose Borquez wrote: > > > I made a standard install of FreeBSD 5.4 with Kern-Developer Full > > binaries and doc, kernel source only. I attempted to compile a custom > > kernel running: > > make buildkernel KERNCONF=CUSTOM Then I get the following error: > > make: don't know how to make buildkernel. Stop > > I run it from the /usr/src/ directory. The /usr/src/ directory is > > empty. Does that mean the source files were not installed? > > Could someone please give me any clues as to what I am missing or have > > done incorrectly? > > The /usr/src/sys directory should contain the kernel source code. Your > claim that the /usr/src directory is empty is strange since you also say > you are compiling a custom kernel. Where is the custom kernel config file > if not under /usr/src/sys//conf? > The custom kernel config file is in /usr/src/sys/i386/conf I did more reading from the FreeBSD website handbook and it said if you installed only the kernel source code that you need to compile the traditional way using: > > /usr/src/sys/i386/conf/config CUSTOM then change to the build directory > > /usr/src/sys/i386/compile/CUSTOM > > then run make depend. > > All of this worked just fine, but now when I run make install I get the following error message: > You must build a kernel first. > *** Error code 1 > > Stop in /usr/src/sys/i386/compile/CUSTOM. > # /usr/src/sys/i386/compile/CUSTOM > > What is the problem here? In that directory, I believe you need to run "make" before "make install".