[an error occurred while processing this directive]

NetBSD/macppc 20020817

preparation
  1. cvs  -d :pserver:anoncvs@anoncvs.netbsd.org:/cvsroot update -D 20020817-UTC -dP  src > log
    
  2. cd src
    (backup or change namges of directory if you need, following will be overwritten:
        lib/libc/arch/powerpc
        lib/csu/powerpc
        sys/arch/powerpc
        sys/arc/macppc
        lib/libkvm/kvm_powerpc )
    tar zxf macppc-020817.tar.gz
    
  3. patch -s -p0 < 20020817-diff
  4. Machine with CUDA chip, like OF 1/2 machines, this needs for gettting Real Time Clock. See toolchain PR: PR/16678
    patch -s -p0 < adb_direct.c-rtc
  5. /etc/mk.conf (see man mk.conf), was empty at this time of build. (but at least -fno-strict-aliasing should be set)
    CWARNFLAGS+=   -fno-strict-aliasing
    
run following script with root privilege
cd ..
#!/bin/sh
DATE=`date +"%Y%m%d"`
EXPORT=`pwd`
echo Current Dir: $EXPORT

RELEASE=${EXPORT}/${DATE}r
DEST=${EXPORT}/${DATE}d
LOG=${EXPORT}/${DATE}.$$.log
### NOCLEANDIR=yes

if [ ! -d $RELEASE ]; then
mkdir $RELEASE
fi
if [ ! -d $DEST ]; then
mkdir $DEST
fi


cd src
echo ./build.sh -R $RELEASE -D $DEST > $LOG 2>&1
./build.sh -R $RELEASE -D $DEST > $LOG 2>&1
ls -l $LOG

tail -30 $LOG | head
checkflist
In case you have some inconsistency on checkflist step, like:
/checkflist 
1220d1219
< ./usr/include/macppc/pmc.h
1558d1556
< ./usr/include/powerpc/atomic.h
1588d1585
< ./usr/include/powerpc/pmc.h
5766.844u 2026.927s 2:37:20.22 82.5%    0+0k 23751+424711io 9534pf+0w
You may edit distrib/sets/lists/comp/md.macppc etc, and setup environment
DESTDIR, RELEASEDIR, NETBSDSRCDIR
and also set following
MACHINE=macppc MACHINE_ARCH=powerpc 
and resume the make with something like following command:
( cd 20020817/distrib/sets ; /export/current-ts/20020817/tools/obj/tools.NetBSD-1.6E-powerpc/bin/nbmake sets )
snapshot
ftp://ftp.ki.nu/pub/NetBSD/arch/macppc/snapshot/ 20020817ts/

problem

  1. I did not change adb_direct.c to resolve cuda/RTC problem.
  2. won't boot with StarMax 3000/240, stays after those lines output:
    boot device: sd0
    root on md0a dumps on md0b
    WARNING: clock lost 13881 days -- CHECK AND RESET THE DATE!
    root file system type: ffs
    ... ( stays here) ...
    
Wednesday, 12-Mar-2008 10:52:56 UTC
Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Apache/2.4.46 (Unix) PHP/7.4.15
Count.cgi
(since 2002/08/19)