Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Dec 1999 10:11:31 +0000 (GMT)
From:      Doug Rabson <dfr@nlsystems.com>
To:        John Polstra <jdp@polstra.com>
Cc:        alpha@freebsd.org, dfr@freebsd.org
Subject:   Re: Alpha Makefile is broken for config -g in -stable
Message-ID:  <Pine.BSF.4.10.9912141010470.51079-100000@salmon.nlsystems.com>
In-Reply-To: <XFMail.991213213837.jdp@polstra.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9912141010470.51079-100000>