From owner-freebsd-alpha Tue Dec 14 2: 2:18 1999 Delivered-To: freebsd-alpha@freebsd.org Received: from herring.nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (Postfix) with ESMTP id 1493614A09; Tue, 14 Dec 1999 02:02:10 -0800 (PST) (envelope-from dfr@nlsystems.com) Received: from salmon.nlsystems.com (salmon.nlsystems.com [10.0.0.3]) by herring.nlsystems.com (8.9.3/8.8.8) with ESMTP id KAA35935; Tue, 14 Dec 1999 10:11:31 GMT (envelope-from dfr@nlsystems.com) Date: Tue, 14 Dec 1999 10:11:31 +0000 (GMT) From: Doug Rabson To: John Polstra Cc: alpha@freebsd.org, dfr@freebsd.org Subject: Re: Alpha Makefile is broken for config -g in -stable In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 13 Dec 1999, John Polstra wrote: > On -stable Alpha systems, if you do a "config -g" and then try to > build a kernel, the build stops with "make: don't know how to make > kernel.debug. Stop". I am pretty sure the breakage was introduced in > revision 1.16.2.3 of Makefile.alpha. It looks like some -currentisms > were introduced without the corresponding changes in "config". N.B., > -stable i386 systems don't even try to do the kernel.debug thing -- > that's -current only. > > If any of you have time to try to fix this before the release, it > would be a Very Good Thing. I don't think I'm going to have time to > work on it between now and then. I don't have a stable machine to test with right now but this patch might fix it (on the other hand, it might make things worse): Index: Makefile.alpha =================================================================== RCS file: /home/ncvs/src/sys/alpha/conf/Makefile.alpha,v retrieving revision 1.16.2.6 diff -u -r1.16.2.6 Makefile.alpha --- Makefile.alpha 1999/08/29 15:56:41 1.16.2.6 +++ Makefile.alpha 1999/12/14 10:07:53 @@ -98,12 +98,26 @@ %MFILES -%LOAD - %CLEAN +all: ${KERNEL} + +.if !defined(DEBUG) +FULLKERNEL= ${KERNEL} +.else +FULLKERNEL= ${KERNEL}.debug +${KERNEL}: ${FULLKERNEL} + objcopy --strip-debug ${FULLKERNEL} ${KERNEL} +.endif + +${FULLKERNEL}: ${BEFORE_DEPEND} ${SYSTEM_DEP} vers.o + @rm -f ${.TARGET} + @echo linking ${.TARGET} + ${SYSTEM_LD} + ${SYSTEM_LD_TAIL} + .if !exists(.depend) -${SYSTEM_OBJS}: ${BEFORE_DEPEND:M*.h} +${SYSTEM_OBJS}: vnode_if.h ${BEFORE_DEPEND:M*.h} .endif clean: -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 442 9037 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message