From nick.hibma@jrc.it Sun Apr 18 12:24:56 1999
Return-Path: <nick.hibma@jrc.it>
Received: from ns.skylink.it (ns.skylink.it [194.177.113.1])
	by hub.freebsd.org (Postfix) with ESMTP id 74962154FC
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Apr 1999 12:24:54 -0700 (PDT)
	(envelope-from nick.hibma@jrc.it)
Received: from heidi.plazza.it ([194.185.55.84])
	by ns.skylink.it (8.9.1/8.8.8) with ESMTP id VAA20650
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Apr 1999 21:23:51 +0200
Received: from hare.plazza.it (hare.plazza.it [10.1.0.3])
	by heidi.plazza.it (8.8.8/8.8.5) with ESMTP id VAA03448
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 18 Apr 1999 21:19:35 +0200 (CEST)
Received: (from n_hibma@localhost)
	by hare.plazza.it (8.9.3/8.8.7) id VAA00423;
	Sun, 18 Apr 1999 21:19:52 +0200 (CEST)
	(envelope-from n_hibma)
Message-Id: <199904181919.VAA00423@hare.plazza.it>
Date: Sun, 18 Apr 1999 21:19:52 +0200 (CEST)
From: n_hibma@freebsd.org
Sender: nick.hibma@jrc.it
Reply-To: n_hibma@freebsd.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: config -g -> no kernel, only kernel.debug
X-Send-Pr-Version: 3.2

>Number:         11204
>Category:       i386
>Synopsis:       config -g -> no kernel, only kernel.debug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 18 12:30:01 PDT 1999
>Closed-Date:    Thu Jun 24 11:18:19 PDT 1999
>Last-Modified:  Thu Jun 24 11:19:30 PDT 1999
>Originator:     Nick Hibma (hare)
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
n.a
>Environment:
Current as of date specified:

 are:toor# uname -a
FreeBSD hare.plazza.it 3.0-CURRENT FreeBSD 3.0-CURRENT #4: Mon Jan 11 22:52:23 
CET 1999     toor@hare.plazza.it:/usr/src/sys/compile/HARE  i386
hare:toor# date
Sat Apr 17 23:38:49 CEST 1999

>Description:

When compiling a kernel with the -g flag to config, only the file
'kernel.debug' is created but not 'kernel'. This means you will have to
install the huge kernel.debug in the root dir.

>How-To-Repeat:

cd /sys/i386/conf
config -gr GENERIC
cd ../../compile/GENERIC
make
make install

>Fix:
        
cd /sys/i386/conf 
config -gr GENERIC
cd ../../compile/GENERIC
make
make kernel
make install

but better would be to either specify the rule

        .MAIN:  all

in /sys/i386/conf/Makefile.i386 right before the '%LOAD' line, or
otherwise have a good look at the
Makefile config produces. It might be that  the function do_load(f)
could be changed to implement this properly:

        /usr/src/usr.sbin/config/mkmakefile.c

No patch applied because the change would be trivial and is most probably
wrong. I don't know no nothing about config.


>Release-Note:
>Audit-Trail:

From: "Daniel C. Sobral" <dcs@newsguy.com>
To: n_hibma@FreeBSD.ORG
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: i386/11204: config -g -> no kernel, only kernel.debug
Date: Mon, 19 Apr 1999 05:14:31 +0900

 n_hibma@FreeBSD.ORG wrote:
 > 
 > cd /sys/i386/conf
 > config -gr GENERIC
 > cd ../../compile/GENERIC
 > make
 > make install
 
 I thought the target "all" was required in the procedure.
 
 --
 Daniel C. Sobral			(8-DCS)
 dcs@newsguy.com
 dcs@freebsd.org
 
 	"Well, Windows works, using a loose definition of 'works'..."
 
State-Changed-From-To: open->closed 
State-Changed-By: n_hibma 
State-Changed-When: Thu Jun 24 11:18:19 PDT 1999 
State-Changed-Why:  
Same as 8550: discussions on CURRENT/HACKERS ended up in a stripped 
kernel being installed in / and a non stripped kernel being available 
in the compilation directory. 
>Unformatted:
