Subject: Problems building netbsd-2.0 release
To: None <netbsd-users@netbsd.org>
From: None <sigsegv@rambler.ru>
List: netbsd-users
Date: 02/06/2005 17:56:13
Greetings, I've just checked out netbsd-2-0 source tree from a german 
mirror. Running build.sh fails, this seems to happen because src and 
xsrc are mounted read-only. Does anyone know why this happens and how to 
fix it? I prefer to have all source mounted read-only and it SHOULD be 
possible to build a release this way. Thanks.

This is the script I use to build a release:

#!/bin/sh
export MAKECONF=/etc/mk.i386_athlon-tbird.conf
cd /opt/src && ./build.sh -m i386 -x -X /opt/xsrc \
         -O /opt/obj.i386_athlon-tbird -T /opt/tools.i386_athlon-tbird \
         release 2>&1 | tee /log.i386_athlon-tbird


Below is a snip of build.sh output, showing where errors occur:

dependall ===> sys/arch/i386/stand/misc
#    create  misc/pfdisk.doc
rm -f pfdisk.doc
/opt/tools.i386_athlon-tbird/bin/nbuudecode 
/opt/src/sys/arch/i386/stand/misc/pfdisk.d
oc.uue
#    create  misc/pfdisk.exe
rm -f pfdisk.exe
/opt/tools.i386_athlon-tbird/bin/nbuudecode 
/opt/src/sys/arch/i386/stand/misc/pfdisk.e
xe.uue
#    create  misc//opt/src/sys/arch/i386/stand/misc/pfdisktc.zip
rm -f /opt/src/sys/arch/i386/stand/misc/pfdisktc.zip
rm: /opt/src/sys/arch/i386/stand/misc/pfdisktc.zip: Read-only file system

*** Failed target:  pfdisktc.zip
*** Failed command: rm -f /opt/src/sys/arch/i386/stand/misc/pfdisktc.zip
*** Error code 1

Stop.
nbmake: stopped in /opt/src/sys/arch/i386/stand/misc