Subject: port-sparc64/26137: existing /distrib/sparc64/xminiroot/sysinst directory causes builds to fail
To: None <gnats-bugs@gnats.NetBSD.org>
From: Eric Schnoebelen <eric@cirr.com>
List: netbsd-bugs
Date: 07/01/2004 16:19:21
>Number:         26137
>Category:       port-sparc64
>Synopsis:       existing <objdir>/distrib/sparc64/xminiroot/sysinst directory causes builds to fail
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-sparc64-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 01 21:20:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Eric Schnoebelen
>Release:        NetBSD 2.0_BETA
>Organization:
Central Iowa (Model) Railroad
>Environment:
System: NetBSD egsner.cirr.com 2.0_BETA NetBSD 2.0_BETA (GENERIC.MPDEBUG) #0: Thu May 20 00:32:30 CDT 2004 eric@egsner.cirr.com:/work/eric/NetBSD-2.0/obj/i386/sys/arch/i386/compile/GENERIC.MPDEBUG i386
Architecture: i386
Machine: i386
>Description:
	Attempting to do a build of NetBSD 2.0_BETA for
sparc64 (in an existing build tree) fails in the distrib/sparc64/xminirot
directory, because it tries to remove sysinst as a file, and it is
a directory.

	It would appear that the following pullup attempted to resolve
the issue, but it has failed.

-----------------------------
revision 1.22.2.2
date: 2004/05/25 01:30:35;  author: jmc;  state: Exp;  lines: +2 -2
Pullup rev 1.24 (requested by hannken in ticket #383)

Do not fail if directory sysinst exists.
-----------------------------

	Note: the fix does work on -current.

Here is the head and tail of the build output:
% head -15 /boot.d/build-logs/netbsd-2-0.20040629.sparc64
===> build.sh command: /work/eric/NetBSD-2.0/src/build.sh -U -m sparc64 -V MKTOOLS=no -V SYSINST_FTP_DIR=pub/NetBSD/NetBSD-2.0_BETA-20040629 -V SYSINST_FTP_HOST=ftp.cirr.com -V MKX11=yes -V X11SRCDIR=/work/eric/NetBSD-2.0/xsrc -T /work/eric/NetBSD-2.0/tools.i386 -O /work/eric/NetBSD-2.0/obj/sparc64 -D /netboot/NetBSD-2.0_BETA/sparc64/ -R /home/ftp/pub/NetBSD/NetBSD-2.0_BETA-20040629 release
===> build.sh started: Tue Jun 29 20:47:17 CDT 2004
===> MACHINE:          sparc64
===> MACHINE_ARCH:     sparc64
===> TOOLDIR path:     /work/eric/NetBSD-2.0/tools.i386
===> DESTDIR path:     /netboot/NetBSD-2.0_BETA/sparc64/
===> RELEASEDIR path:  /home/ftp/pub/NetBSD/NetBSD-2.0_BETA-20040629
===> makewrapper:      /work/eric/NetBSD-2.0/tools.i386/bin/nbmake-sparc64
===> Updated /work/eric/NetBSD-2.0/tools.i386/bin/nbmake-sparc64
(cd /work/eric/NetBSD-2.0/src && /work/eric/NetBSD-2.0/tools.i386/bin/nbmake NOPOSTINSTALL=1 build)
Build started at: Tue Jun 29 20:47:22 CDT 2004
cleandir ===> tools
cleandir ===> tools/host-mkdep
rm -f a.out [Ee]rrs mklog core *.core     config.cache config.log config.status host-mkdep
cleandir ===> tools/compat
% tail -60 /boot.d/build-logs/netbsd-2-0.20040629.sparc64
cleandir ===> distrib
cleandir ===> distrib/notes
cleandir ===> distrib/notes/sparc64
rm -f [Ee]rrs mklog core *.core INSTALL.ps INSTALL.txt INSTALL.html INSTALL.more INSTALL.PostScript.toc INSTALL.ASCII.toc INSTALL.HTML.toc  INSTALL.more.toc  INSTALL.PostScript.toc.tmp INSTALL.ASCII.toc.tmp INSTALL.HTML.toc.tmp INSTALL.more.toc.tmp
cleandir ===> distrib/sparc64
cleandir ===> distrib/sparc64/instfs
if [ -f ramdiskbin.mk ]; then  /work/eric/NetBSD-2.0/tools.i386/bin/nbmake -f ramdiskbin.mk clean;  fi
rm -f ramdiskbin.mk
rm -rf work
rm -f ramdiskbin ramdiskbin.conf ramdiskbin.conf.tmp  ramdiskbin.cache *.o *.cro *.c devices.spec devices.spec.tmp work.built work.spec work.spec.tmp install.fs install.fs.gz install.fs.tmp instfs.tgz instfs.tgz.tmp netbsd-INSTALL netbsd-INSTALL.gz netbsd-INSTALL.symbols.gz
rm -f a.out [Ee]rrs mklog core *.core .gdbinit 
cleandir ===> distrib/sparc64/xminiroot
rm -rf work
rm -f ramdiskbin netbsd.gz sysinst devices.spec devices.spec.tmp work.built work.spec work.spec.tmp miniroot.fs miniroot.fs.gz miniroot.fs.tmp
rm: sysinst: is a directory

*** Failed target:  cleanextra
*** Failed command: rm -f ramdiskbin netbsd.gz sysinst devices.spec devices.spec.tmp work.built work.spec work.spec.tmp miniroot.fs miniroot.fs.gz miniroot.fs.tmp
*** Error code 1

Stop.
nbmake: stopped in /work/eric/NetBSD-2.0/src/distrib/sparc64/xminiroot

*** Failed target:  cleandir-xminiroot
*** Failed command: targ=cleandir;dir=xminiroot; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /work/eric/NetBSD-2.0/tools.i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> distrib/sparc64/$dir"; cd "/work/eric/NetBSD-2.0/src/distrib/sparc64/$dir"; /work/eric/NetBSD-2.0/tools.i386/bin/nbmake "_THISDIR_=distrib/sparc64/$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /work/eric/NetBSD-2.0/src/distrib/sparc64

*** Failed target:  cleandir-sparc64
*** Failed command: targ=cleandir;dir=sparc64; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /work/eric/NetBSD-2.0/tools.i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> distrib/$dir"; cd "/work/eric/NetBSD-2.0/src/distrib/$dir"; /work/eric/NetBSD-2.0/tools.i386/bin/nbmake "_THISDIR_=distrib/$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /work/eric/NetBSD-2.0/src/distrib

*** Failed target:  cleandir-distrib
*** Failed command: targ=cleandir;dir=distrib; case "$dir" in /*) echo "$targ ===> $dir"; cd "$dir"; /work/eric/NetBSD-2.0/tools.i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; *) echo "$targ ===> $dir"; cd "/work/eric/NetBSD-2.0/src/$dir"; /work/eric/NetBSD-2.0/tools.i386/bin/nbmake "_THISDIR_=$dir/" $targ; ;; esac
*** Error code 1

Stop.
nbmake: stopped in /work/eric/NetBSD-2.0/src

*** Failed target:  build
*** Failed command: (cd /work/eric/NetBSD-2.0/src && /work/eric/NetBSD-2.0/tools.i386/bin/nbmake cleandir)
*** Error code 1

Stop.
nbmake: stopped in /work/eric/NetBSD-2.0/src

*** Failed target:  release
*** Failed command: (cd /work/eric/NetBSD-2.0/src && /work/eric/NetBSD-2.0/tools.i386/bin/nbmake NOPOSTINSTALL=1 build)
*** Error code 1

Stop.
nbmake: stopped in /work/eric/NetBSD-2.0/src

ERROR: Failed to make release
*** BUILD ABORTED ***

>How-To-Repeat:
	build -m sparc64 with an existing sparc64 object tree.
>Fix:
	I haven't one.


>Release-Note:
>Audit-Trail:
>Unformatted: