From owner-freebsd-bugs Tue Jul 27 3:40:29 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 7A90E14F52 for ; Tue, 27 Jul 1999 03:40:27 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id DAA85496; Tue, 27 Jul 1999 03:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) 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 ; 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 ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: conf/12832: config -g creates broken Makefile in 3.2-STABLE/alpha Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 12832 >Category: conf >Synopsis: config -g creates broken Makefile in 3.2-STABLE/alpha >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Jul 27 03:40:01 PDT 1999 >Closed-Date: >Last-Modified: >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: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message