From m.seaman@inpharmatica.co.uk Tue Jul 27 03:39:53 1999
Return-Path: <m.seaman@inpharmatica.co.uk>
Received: from gallions-reach.inpharmatica.co.uk (gallions-reach.inpharmatica.co.uk [193.115.214.5])
	by hub.freebsd.org (Postfix) with ESMTP id A16E014D77
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jul 1999 03:39:49 -0700 (PDT)
	(envelope-from m.seaman@inpharmatica.co.uk)
Received: from kings-cross.inpharmatica.co.uk (euston.inpharmatica.co.uk [193.115.214.6])
	by gallions-reach.inpharmatica.co.uk (8.8.8/8.8.8) with ESMTP id LAA04120
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jul 1999 11:38:12 +0100 (BST)
	(envelope-from m.seaman@inpharmatica.co.uk)
Received: from b0.farm.inpharmatica.co.uk (b0.farm.inpharmatica.co.uk [192.168.121.110])
	by kings-cross.inpharmatica.co.uk (8.9.3/8.9.3) with ESMTP id LAA22476
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 27 Jul 1999 11:38:12 +0100
Received: (from matthew@localhost)
	by b0.farm.inpharmatica.co.uk (8.9.3/8.9.3) id LAA03567;
	Tue, 27 Jul 1999 11:38:11 +0100 (BST)
	(envelope-from matthew@mailhost.inpharmatica.co.uk)
Message-Id: <199907271038.LAA03567@b0.farm.inpharmatica.co.uk>
Date: Tue, 27 Jul 1999 11:38:11 +0100 (BST)
From: m.seaman@inpharmatica.co.uk
To: FreeBSD-gnats-submit@freebsd.org
Subject: config -g creates broken Makefile in 3.2-STABLE/alpha 
X-Send-Pr-Version: 3.2

>Number:         12832
>Category:       alpha
>Synopsis:       config -g creates broken Makefile in 3.2-STABLE/alpha
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 27 03:40:01 PDT 1999
>Closed-Date:    Wed Nov 29 12:10:13 PST 2000
>Last-Modified:  Wed Nov 29 12:10:30 PST 2000
>Originator:     Matthew Seaman
>Release:        FreeBSD 3.2-STABLE alpha
>Organization:
Inpharmatica Ltd
>Environment:

% uname -a 
FreeBSD b0.farm.inpharmatica.co.uk 3.2-STABLE FreeBSD 3.2-STABLE #0: Thu Jul  8 09:04:16 BST 1999     matthew@b0.farm.inpharmatica.co.uk:/usr/src/sys/compile/FARM  alpha

>Description:

Under 3.2-STABLE/alpha attempting to build a kernel with debugging
symbols via `config -g FARM' generates a broken Makefile in
../../compile/FARM

b0:/sys/compile/FARM:# make -f Makefile.orig 
echo "gcc2_compiled." >symbols.exclude
echo "___gnu_compiled_c" >>symbols.exclude
grep -v '^#' ../../alpha/alpha/symbols.raw  | sed 's/^  //' | sort -u > symbols.sort
cc -c -nostdinc -I- -I. -I../.. -I../../../include  -DKERNEL -include opt_global.h  -UKERNEL ../../alpha/alpha/genassym.c

[deletia...]

cc -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused  -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include  -DKERNEL -include opt_global.h -mno-fp-regs -Wa,-mev56 -c __remlu.S
building __reml.S from ../../alpha/alpha/divrem.m4
cc -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused  -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include  -DKERNEL -include opt_global.h -mno-fp-regs -Wa,-mev56 -c __reml.S
sh ../../conf/newvers.sh FARM 
cc -O -pipe -Wreturn-type -Wcomment -Wredundant-decls -Wimplicit  -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes  -Wpointer-arith -Winline -Wuninitialized -Wformat -Wunused  -fformat-extensions -ansi -g -nostdinc -I- -I. -I../.. -I../../../include  -DKERNEL -include opt_global.h -mno-fp-regs -Wa,-mev56 -c vers.c
make: don't know how to make kernel.debug. Stop


By code inspection it seems that recent changes to
src/sys/alpha/conf/Makefile.alpha 1.16.2.5 (RELENG_3 branch) have got
it out of synch with src/usr.sbin/config/mkmakefile.c 1.34 (RELENG_3
branch).

>How-To-Repeat:

cd /usr/src/sys/alpha/conf
config -g -r FARM
cd ../../compile/FARM
make depend
make

>Fix:
	
The following change to the generated Makefile will patch things up as
a work-around:

b0:/sys/compile/FARM:# diff -u Makefile.orig Makefile 
--- Makefile.orig       Tue Jul 27 10:51:18 1999
+++ Makefile    Tue Jul 27 10:54:41 1999
@@ -266,7 +266,7 @@
        $S/libkern/alpha/ntohl.S $S/libkern/alpha/ntohs.S 
 
 MFILES=
-kernel: ${SYSTEM_DEP} swapkernel.o vers.o
+${FULLKERNEL}: ${SYSTEM_DEP} swapkernel.o vers.o
        ${SYSTEM_LD_HEAD}
        ${SYSTEM_LD} swapkernel.o
        ${SYSTEM_LD_TAIL}
@@ -274,7 +274,7 @@
 swapkernel.o: swapkernel.c
        ${NORMAL_C}
 
-all: kernel
+all: ${KERNEL}
 
 CLEAN=device_if.c device_if.h bus_if.c bus_if.h clock_if.c clock_if.h \
        mcclock_if.c mcclock_if.h 

however, the real fix is to get /usr/src/sys/alpha/conf/Makefile.alpha
and /usr/src/usr.sbin/config/* back into step.



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-alpha 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Mon Jan 10 05:35:36 PST 2000 
Responsible-Changed-Why:  
Alpha related problem 

From: Matthew Seaman <m.seaman@inpharmatica.co.uk>
To: freebsd-gnats-submit@FreeBSD.org, m.seaman@inpharmatica.co.uk
Cc:  
Subject: Re: alpha/12832: config -g creates broken Makefile in 3.2-STABLE/alpha
Date: Mon, 27 Nov 2000 09:59:32 +0000

 Could someone please close this PR?  It's well past it's sell-by date and the
 problem it describes was fixed long ago.
 
 	Cheers,
 
 	Matthew
 
 -- 
            Certe, Toto, sentio nos in Kansate non iam adesse.
 
    Dr. Matthew Seaman, Inpharmatica Ltd, 60 Charlotte St, London, W1T 2NU
             Tel: +44 20 7631 4644 x229  Fax: +44 20 7631 4844
 
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Wed Nov 29 12:10:13 PST 2000 
State-Changed-Why:  
submitted asked for it to be closed 

http://www.freebsd.org/cgi/query-pr.cgi?pr=12832 
>Unformatted:
