NetBSD Problem Report #9567
Received: (qmail 1670 invoked from network); 7 Mar 2000 21:13:05 -0000
Message-Id: <200003072113.WAA01850@nocturne.fast.no>
Date: Tue, 7 Mar 2000 22:13:17 +0100 (CET)
From: arnej@pvv.org
Reply-To: arnej@pvv.org
To: gnats-bugs@gnats.netbsd.org
Cc: arnej@pvv.org
Subject: .BEGIN targets use depencencies
X-Send-Pr-Version: 3.95
>Number: 9567
>Category: kern
>Synopsis: .BEGIN targets use depencencies
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Mar 07 18:15:00 +0000 2000
>Closed-Date: Sun May 01 00:34:43 +0000 2005
>Last-Modified: Thu May 05 14:26:01 +0000 2005
>Originator: Arne H. Juul
>Release: NetBSD-current as of Mar 7 2000
>Organization:
PVV.org
>Environment:
System: NetBSD nocturne.fast.no 1.4T NetBSD 1.4T (NOCTURNE) #4: Sat Feb 26 14:01:58 CET 2000 arnej@nocturne.fast.no:/usr/src/sys/arch/i386/compile/NOCTURNE i386
>Description:
The following Makefiles use dependencies for .BEGIN
(and in one case .INTERRUPT):
./distrib/mac68k/instkernel/ramdisk/Makefile:.INTERRUPT: unconfig
./sys/arch/i386/stand/installboot/Makefile:.BEGIN: machine
./sys/arch/i386/stand/Makefile.booters:.BEGIN: machine
./sys/arch/pmax/stand/Makefile.booters:.BEGIN: machine pmax mips
./sys/arch/news68k/stand/boot/Makefile:.BEGIN: machine m68k
./sys/arch/news68k/stand/bootxx/Makefile:.BEGIN: machine m68k
./sys/arch/news68k/stand/common/Makefile:.BEGIN: machine m68k
>How-To-Repeat:
Note that "make depend" fails in sys/arch/i386/stand/biosboot,
wonder why the "machine" symlinks isn't created early enough,
note that the "machine" target is used as a dependency for
.BEGIN, probably in an attempt to fix the problem.
This doesn't work as expected, see also PR bin/9566.
>Fix:
Apply following patch:
Index: ./distrib/mac68k/instkernel/ramdisk/Makefile
===================================================================
RCS file: /cvs/basesrc/distrib/mac68k/instkernel/ramdisk/Makefile,v
retrieving revision 1.3
diff -u -r1.3 Makefile
--- Makefile 1999/12/17 20:48:08 1.3
+++ Makefile 2000/03/07 21:09:27
@@ -55,7 +55,8 @@
/bin/rm -f *.core ${IMAGE} ${CBIN} ${CBIN}.mk ${CBIN}.cache \
*.o *.cro *.c INSTALL.more
-.INTERRUPT: unconfig
+.INTERRUPT:
+ $(MAKE) unconfig
.include <bsd.own.mk>
.include <bsd.obj.mk>
Index: ./sys/arch/i386/stand/installboot/Makefile
===================================================================
RCS file: /cvs/syssrc/sys/arch/i386/stand/installboot/Makefile,v
retrieving revision 1.16
diff -u -r1.16 Makefile
--- Makefile 2000/01/23 16:45:54 1.16
+++ Makefile 2000/03/07 21:09:31
@@ -19,9 +19,8 @@
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes
LDSTATIC?=-static
-.BEGIN: machine
.NOPATH: machine
-realdepend realall: machine
+depend realall: machine
CLEANFILES+= machine
machine::
Index: ./sys/arch/i386/stand/Makefile.booters
===================================================================
RCS file: /cvs/syssrc/sys/arch/i386/stand/Makefile.booters,v
retrieving revision 1.25
diff -u -r1.25 Makefile.booters
--- Makefile.booters 2000/01/23 16:44:18 1.25
+++ Makefile.booters 2000/03/07 21:09:35
@@ -19,9 +19,8 @@
CLEANFILES+= vers.c vers.o ${BASE}.list
-.BEGIN: machine
.NOPATH: machine
-realdepend realall: machine
+depend realall: machine
CLEANFILES+= machine
machine::
Index: ./sys/arch/pmax/stand/Makefile.booters
===================================================================
RCS file: /cvs/syssrc/sys/arch/pmax/stand/Makefile.booters,v
retrieving revision 1.28
diff -u -r1.28 Makefile.booters
--- Makefile.booters 2000/01/23 17:04:07 1.28
+++ Makefile.booters 2000/03/07 21:09:40
@@ -3,8 +3,7 @@
# $S must correspond to the top of the 'sys' tree
S= ${.CURDIR}/../../../..
-.BEGIN: machine pmax mips
-${PROG} realdepend realall: machine pmax mips
+${PROG} depend realall: machine pmax mips
CLEANFILES+= machine pmax mips
machine:
-rm -f ${.TARGET}
Index: ./sys/arch/news68k/stand/boot/Makefile
===================================================================
RCS file: /cvs/syssrc/sys/arch/news68k/stand/boot/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 2000/02/01 05:25:41 1.4
+++ Makefile 2000/03/07 21:09:44
@@ -31,9 +31,8 @@
L= ${COMMONOBJ}/lib
LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a ${L}/z/libz.a
-.BEGIN: machine m68k
.NOPATH: machine m68k
-realdepend realall: machine m68k
+depend realall: machine m68k
machine::
-rm -f $@
Index: ./sys/arch/news68k/stand/bootxx/Makefile
===================================================================
RCS file: /cvs/syssrc/sys/arch/news68k/stand/bootxx/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 2000/01/23 17:04:06 1.2
+++ Makefile 2000/03/07 21:09:48
@@ -30,9 +30,8 @@
L= ${COMMONOBJ}/lib
LIBS= ${L}/sa/libsa.a ${L}/kern/libkern.a
-.BEGIN: machine m68k
.NOPATH: machine m68k
-realdepend realall: machine m68k
+depend realall: machine m68k
machine::
-rm -f $@
Index: ./sys/arch/news68k/stand/common/Makefile
===================================================================
RCS file: /cvs/syssrc/sys/arch/news68k/stand/common/Makefile,v
retrieving revision 1.2
diff -u -r1.2 Makefile
--- Makefile 2000/01/23 17:04:06 1.2
+++ Makefile 2000/03/07 21:09:52
@@ -12,9 +12,8 @@
CLEANFILES+= machine m68k
-.BEGIN: machine m68k
.NOPATH: machine m68k
-realdepend realall: machine m68k
+depend realall: machine m68k
machine::
-rm -f $@
>Release-Note:
>Audit-Trail:
From: Frederick Bruckman <fb@enteract.com>
To: gnats-bugs@gnats.NetBSD.ORG
Cc:
Subject: Re: kern/9567
Date: Mon, 11 Sep 2000 19:38:11 -0500 (CDT)
The .INTERRUPT in distrib/mac68k works as expected. Please strike that
one from the list.
The .BEGIN target is the special one, in that makes no sense to
specify sources for it. (Do this first, but before that...?) See also
bin/9566, which asks to document that explicitly.
Frederick
State-Changed-From-To: open->closed
State-Changed-By: christos@netbsd.org
State-Changed-When: Sat, 30 Apr 2005 20:34:43 -0400
State-Changed-Why:
fixed, thanks
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/9567 CVS commit: src/sys/arch/news68k/stand/bootxx
Date: Sun, 1 May 2005 00:33:37 +0000 (UTC)
Module Name: src
Committed By: christos
Date: Sun May 1 00:33:37 UTC 2005
Modified Files:
src/sys/arch/news68k/stand/bootxx: Makefile
Log Message:
PR/9567: Arne H. Juul: .BEGIN targets should not use dependencies.
To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 src/sys/arch/news68k/stand/bootxx/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/9567 CVS commit: src/sys/arch/news68k/stand/boot
Date: Sun, 1 May 2005 00:32:53 +0000 (UTC)
Module Name: src
Committed By: christos
Date: Sun May 1 00:32:53 UTC 2005
Modified Files:
src/sys/arch/news68k/stand/boot: Makefile
Log Message:
PR/9567: Arne H. Juul: .BEGIN targets should not use dependencies.
To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/sys/arch/news68k/stand/boot/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Christos Zoulas <christos@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: PR/9567 CVS commit: src/sys/arch/i386/stand
Date: Sun, 1 May 2005 00:31:23 +0000 (UTC)
Module Name: src
Committed By: christos
Date: Sun May 1 00:31:23 UTC 2005
Modified Files:
src/sys/arch/i386/stand: Makefile.booters
Log Message:
PR/9567: Arne H. Juul: .BEGIN targets should not use dependencies.
To generate a diff of this commit:
cvs rdiff -r1.58 -r1.59 src/sys/arch/i386/stand/Makefile.booters
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: Matthias Scheler <tron@colwyn.zhadum.de>
To: gnats-bugs@netbsd.org
Cc:
Subject: build broken by fix for PR kern/9567
Date: Thu, 5 May 2005 15:25:30 +0100 (BST)
>Submitter-Id: net
>Originator:
>Organization:
Matthias Scheler http://scheler.de/~matthias/
>Confidential: no
>Synopsis: build broken by fix for PR kern/9567
>Severity: serious
>Priority: medium
>Category: port-i386
>Class: sw-bug
>Release: NetBSD 3.99.3 2005-05-05 sources
>Environment:
System: NetBSD lyssa.zhadum.de 3.99.3 NetBSD 3.99.3 (LYSSA) #0: Mon May 2 11:28:12 BST 2005 tron@lyssa.zhadum.de:/src/sys/compile/LYSSA i386
Architecture: i386
Machine: i386
>Description:
Since the fixes for PR kern/9567 have been integrated builds fail for me
in "src/sys/arch/i386/stand":
===> build.sh command: ./build.sh -j 2 -o -u -D /scratch/lyssa/dest -U distribution
===> build.sh started: Thu May 5 13:02:41 BST 2005
===> No nonexistent/bin/nbmake, needs building.
===> Bootstrapping nbmake
[...]
--- loadfile.d ---
# create sa/loadfile.d
CC=/src/tools/bin/i386--netbsdelf-gcc /src/tools/bin/nbmkdep -f loadfile.d -- -I/src/NetBSD-current/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libsa -DBOOTXX -I /src/NetBSD-current/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../lib -I /src/NetBSD-current/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1 -DBOOTXX_SECTORS=15 -DPRIMARY_LOAD_ADDRESS=0x600 -DSECONDARY_LOAD_ADDRESS=0x10000 -DXXfs_open=ffsv1_open -DXXfs_close=ffsv1_close -DXXfs_read=ffsv1_read -DXXfs_stat=ffsv1_stat -DFS=ffsv1 -DNO_LBA_CHECK -nostdinc -D_STANDALONE -I/src/NetBSD-current/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../../ -DLIBSA_SINGLE_FILESYSTEM=xxfs -DLIBSA_NO_TWIDDLE -DLIBSA_NO_FD_CHECKING -DLIBSA_NO_RAW_ACCESS -DLIBSA_NO_FS_WRITE -DLIBSA_NO_FS_SEEK -DLIBSA_USE_MEMCPY -DLIBSA_USE_MEMSET -DLIBSA_SINGLE_DEVICE=blkdev -DLIBKERN_OPTIMISE_SPACE -D"blkdevioctl(x,y,z)=EINVAL" -D"blkdevclose(f)=0" -D"devopen(f,n,fl)=(*(fl)=(void *)n,0)" -DLIBSA_NO_DISKLABEL_MSGS -nostdinc -!
isystem /scratch/lyssa/dest/usr/include -DCOMPAT_UFS -nostdinc -isystem /scratch/lyssa/dest/usr/include /src/NetBSD-current/src/sys/arch/i386/stand/bootxx/bootxx_ffsv1/../../../../..//lib/libsa/loadfile.c
In file included from /src/NetBSD-current/src/sys/lib/libsa/loadfile.c:90:
/src/NetBSD-current/src/sys/lib/libsa/loadfile.h:74:34: machine/loadfile_machdep.h: No such file or directory
nbmkdep: compile failed.
*** [loadfile.d] Error code 1
1 error
The problem is that the "machine" target which would create the links
necessary to find "machine/loadfile_machdep.h" is never executed. The
problem is probably by the fact that I use "-o" (which I do to check
that the "make cleandir" target works properly).
>How-To-Repeat:
cd /usr/src
./build.sh -j 2 -o -u -D /where/ever/dest -U distribution
>Fix:
None provided.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.