Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Nov 2001 17:24:25 +0000 (UTC)
From:      naddy@mips.inka.de (Christian Weisgerber)
To:        freebsd-alpha@freebsd.org
Subject:   Re: make buildkernel fails on -CURRENT/alpha
Message-ID:  <9sef49$dkq$1@kemoauc.mips.inka.de>
References:  <9seblh$33d$1@kemoauc.mips.inka.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Christian Weisgerber <naddy@mips.inka.de> wrote:

> make buildkernel fails on -CURRENT because the various assembler
> (and consequently object) files that should be generated from
> sys/alpha/alpha/divrem.m4 aren't.  When the kernel is linked, ld
> can't find __divqu.o etc.

Revision 1.119 of sys/conf/Makefile.alpha is the culprit.

How about moving the "all" target to kern.pre.mk?

Index: Makefile.alpha
===================================================================
RCS file: /cvs/src/sys/conf/Makefile.alpha,v
retrieving revision 1.119
diff -u -r1.119 Makefile.alpha
--- Makefile.alpha	4 Nov 2001 20:49:24 -0000	1.119
+++ Makefile.alpha	8 Nov 2001 17:19:00 -0000
@@ -45,8 +45,6 @@
 
 %CLEAN
 
-.include "$S/conf/kern.post.mk"
-
 SYSTEM_OBJS+=	__divqu.o __divq.o __divlu.o __divl.o
 SYSTEM_OBJS+=	__remqu.o __remq.o __remlu.o __reml.o
 CLEAN+=	__divqu.S __divq.S __divlu.S __divl.S
@@ -91,5 +89,7 @@
 	@echo 'building ${.TARGET} from ${.ALLSRC}'
 	@(echo "define(NAME,\`__reml')define(OP,\`rem')define(S,\`true')"; \
 	 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
+
+.include "$S/conf/kern.post.mk"
 
 %RULES
Index: kern.post.mk
===================================================================
RCS file: /cvs/src/sys/conf/kern.post.mk,v
retrieving revision 1.3
diff -u -r1.3 kern.post.mk
--- kern.post.mk	4 Nov 2001 23:10:39 -0000	1.3
+++ kern.post.mk	8 Nov 2001 17:13:28 -0000
@@ -9,8 +9,6 @@
 
 .PHONY:	all modules
 
-all: ${KERNEL_KO}
-
 depend: kernel-depend
 clean:  kernel-clean
 cleandepend:  kernel-cleandepend
Index: kern.pre.mk
===================================================================
RCS file: /cvs/src/sys/conf/kern.pre.mk,v
retrieving revision 1.1
diff -u -r1.1 kern.pre.mk
--- kern.pre.mk	2 Nov 2001 21:34:20 -0000	1.1
+++ kern.pre.mk	8 Nov 2001 17:13:21 -0000
@@ -82,3 +82,5 @@
 	${SIZE} ${FMT} ${.TARGET} ; chmod 755 ${.TARGET}
 SYSTEM_DEP+= $S/conf/ldscript.$M
 
+all: ${KERNEL_KO}
+
-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de


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?9sef49$dkq$1>