Subject: port-i386/8837: Borken i386 installboot Makefile breaks the build of an install floppy
To: None <gnats-bugs@gnats.netbsd.org>
From: Bernd Ernesti <bernd@arresum.inka.de>
List: netbsd-bugs
Date: 11/21/1999 07:04:50
>Number: 8837
>Category: port-i386
>Synopsis: Borken i386 installboot Makefile breaks the build of an install floppy
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: port-i386-maintainer (NetBSD/i386 Portmaster)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Nov 21 07:03:01 1999
>Last-Modified:
>Originator: Bernd Ernesti
>Organization:
>Release: NetBSD-current source 21-11-1999
>Environment:
System: NetBSD arresum.inka.de 1.4M NetBSD 1.4M (ARRESUM) #399: Sun Oct 31 17:03:23 MET 1999 bernd@arresum.inka.de:/home/work/obj_i386/src.i386/sys/arch/i386/compile/ARRESUM i386
>Description:
It isn't possible to build an i386 install floppy from an fresh tree
without making 'make depend' in sys/arch/i386/stand/installboot
>How-To-Repeat:
Try to build an install floppy from a fresh tree and notice the errors:
[..]
(cd /src/distrib/i386/floppies/ramdisk/../../../../sys/arch/i386/stand/installboot; make installboot.o bootblks.o getmount.o loadfile.o)
cc -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror -I/src/sys/arch/i386/stand/installboot/../lib/crt/bootsect -I/src/sys/arch/i386/stand/installboot/../../../../lib/libsa -I. -c /src/sys/arch/i386/stand/installboot/installboot.c
In file included from /src/sys/arch/i386/stand/installboot/installboot.c:59:
/src/sys/arch/i386/stand/installboot/../../../../lib/libsa/loadfile.h:70: machine/loadfile_machdep.h: No such file or directory
*** Error code 1 (continuing)
[..]
cc -g -Wall -Wmissing-prototypes -Wstrict-prototypes -Werror -I/src/sys/arch/i386/stand/installboot/../lib/crt/bootsect -I/src/sys/arch/i386/stand/installboot/../../../../lib/libsa -I. -c /src/sys/arch/i386/stand/installboot/../../../../lib/libsa/loadfile.c
In file included from /src/sys/arch/i386/stand/installboot/../../../../lib/libsa/loadfile.c:94:
/src/sys/arch/i386/stand/installboot/../../../../lib/libsa/loadfile.h:70: machine/loadfile_machdep.h: No such file or directory
*** Error code 1 (continuing)
>Fix:
Fix the Makefile in sys/arch/i386/stand/installboot.
What about this patch?
*** Makefile Sat Oct 30 18:01:21 1999
--- Makefile Sun Nov 21 15:19:15 1999
***************
*** 20,26 ****
LDSTATIC?=-static
.BEGIN: ${.OBJDIR}/machine
! depend all: ${.OBJDIR}/machine
CLEANFILES+= ${.OBJDIR}/machine
${.OBJDIR}/machine::
--- 20,26 ----
LDSTATIC?=-static
.BEGIN: ${.OBJDIR}/machine
! depend: ${.OBJDIR}/machine
CLEANFILES+= ${.OBJDIR}/machine
${.OBJDIR}/machine::
***************
*** 28,30 ****
--- 28,32 ----
ln -s ${.CURDIR}/../../include $@
.include <bsd.prog.mk>
+
+ ${OBJS}: ${.OBJDIR}/machine
>Audit-Trail:
>Unformatted: