NetBSD2 | NetBSD | 1.6 | amd | autoconf | apache | bind | booting | boot/install/disk | boot-cd | build.sh | (daily) | Canna | CF+sendmail | cvs | dhcpd | dvi2ps | emacs-20 | ftpmirror | fvwm2 | gcc | gettext | ghostscript | inn | IPv6 | jitterbug | Install(OHP) | kernel | (old) | majordomo | make build | MHonArc | MRTG | namazu | ndtpd | PHP + PostgreSQL | netatalk | netboot | NFS | NIS | ntp | opie | Open Firmware | perl | procmail | sendmail | sharutils | smtpfeed | tcsh | TeX | time make | ucspi-tcp | w3 | wget | Wnn | wu-ftpd | X11 | Site Map |
全文検索

NetBSD/macppc 1.6

Installing 1.6_BETA1
  • Boot from floppy or CDROM
  • sysinst By 'disklabel wd0'
    #        size    offset     fstype  [fsize bsize cpg/sgs]
     a:     66528         0     4.2BSD   1024  8192    90   # (Cyl.    0 - 65)
     b:    460656     66528       swap                      # (Cyl.   66 - 522)
     c:   5009760         0     unused      0     0         # (Cyl.    0 - 4969)
     g:   4482576    527184     4.2BSD   1024  8192    86   # (Cyl.  523 - 4969)
    
  • setup after sysinst (1.6)
  • pkg_add ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6/powerpc/All/tcsh-6.11.00.tgz
  • adjust /root/.tcshrc, /root/.cshrc
    ttyp0:root@harry  7:33:09/020528(/home/makoto)# 
    
  • /etc/rc.conf looks like
    hostname=harry
    defaultroute="192.168.1.1"
    rpcbind=YES
    ypbind=YES
    amd=YES
    ntp=YES
    ip6mode=autohost
    rtsol=YES
    
  • copy /tmp onto /usr/tmp
    ttyp0:root@harry  7:57:53/020528(/)# mv /tmp /tmp-root
    ttyp0:root@harry  7:58:01/020528(/)# mkdir /usr/tmp
    ttyp0:root@harry  7:58:03/020528(/)# ln -s /usr/tmp /tmp
    ttyp0:root@harry  7:58:15/020528(/)# chmod 1777 /usr/tmp
    
  • copy /var onto /usr/var
    ttyp0:root@harry  8:01:41/020528(/)# cp -pR /var /usr/var
    cp: /var/run/log: Operation not supported
    cp: /var/run/rpcbind.sock: Operation not supported
    ttyp0:root@harry  8:02:11/020528(/)# mv /var /var-root
    ttyp0:root@harry  8:02:21/020528(/)# ln -s /usr/var /var
    
  • set PKG_PATH
    cd/drive0/packages;/cd/drive0/packages-1.5Y;/a/j/packages;ftp://ftp.netbsd.org/pub/NetBSD/packages/1.6/powerpc/All/
    
  • package add bison, autoconf-devel, gmake Up to this point, the package added are:
    + tcsh-6.11.00        Extended C-shell with many useful features
      gettext-lib-0.10.35nb1 tools for providing messages in different languages, libintl only
    + bison-1.28          GNU yacc(1) replacement
      m4-1.4              GNU version of Unix m4 macro-processor
      perl-5.6.1nb7       Practical Extraction and Report Language
    + autoconf-devel-2.53 Generates automatic source code configuration scripts
    + gmake-3.79.1        GNU version of 'make' utility
    
    The item with leading + is addedd manually.
  • Have one symlink for gmake has a problem.
    Shared object "libutil.so.5" not found
    ..
    ttyp1:root@harry  8:23:56/020528(/usr/lib)# ln -s libutil.so.6.0 libutil.so.5
    
  • making gcc-3.0.4 with:
    ./configure; time gmake bootstrap
    
    panic...
    panic: pool_get(pmap_mpvopl): free list modified: magic=73657420; page 0x2bc3000
    ; item addr 0x3bc3260                                                           
    
    Stopped in pid 7167 (cc1) at    cpu_Debugger+0x10:      lwz     r0, r1, 0x14
    db> trace
    0xe99c7c50: at panic+174
    0xe99c7d10: at pool_get+298
    0xe99c7d30: at pmap_pvo_enter+144
    0xe99c7d70: at pmap_enter+22c
    0xe99c7db0: at uvm_fault+12f8
    0xe99c7ee0: at trap+364
    0xe99c7f50: user DSI write trap @ 0x1de3004 by 0x19c4090: srr1=0xf032
                r1=0x7fffd000 cr=0x44002028 xer=0 ctr=0x41ad5ef4 dsisr=0x42000000
    
  • Starting over again (./configure; gmake bootstrap )
    stage1/xgcc -Bstage1/ -B/usr/local/powerpc-apple-netbsd1.6./bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -DGENERATOR_FILE -I. -I. -I. -I./. -I./config -I./../include rtl.c -o rtl.o
    rtl.c: In function `fatal_with_file_and_line':
    rtl.c:712: incompatible types in assignment
    gmake[2]: *** [rtl.o] Error 1
    gmake[2]: Leaving directory `/usr/local/src/gcc-3.0.4/gcc'
    gmake[1]: *** [stage2_build] Error 2
    gmake[1]: Leaving directory `/usr/local/src/gcc-3.0.4/gcc'
    gmake: *** [bootstrap]
    1039.015u 241.774s 23:49.74 89.5% 0+0k 109+9838io 1338pf+6w
    -I. -I. -I. -I./. -I./config -I./../include
    .. is the part to be fixed... ( But I donno how it looks like, and where to put in the source tree). Where ... -> work/gcc-3.0.4/gcc/Makefile.in
     700 INCLUDES = -I. -I$(@D) -I$(srcdir) -I$(srcdir)/$(@D) \
     701            -I$(srcdir)/config -I$(srcdir)/../include
    
  • The above problem due to objdir is not created, start over again with:
    ttyp0:makoto@harry 10:16:21/020528(...src/gcc-3.0.4)> cd objdir/
    ttyp0:makoto@harry 10:16:24/020528(...gcc-3.0.4/objdir)> ../configure;time gmake bootstrap
  • panic: extent_free: region not found again
    extent `swap0x0000' (0x0 - 0xe0ed), flags = 0x0
    0x0 - 0x0
    0x2 - 0x7
    0xa - 0xb
    extent_free: start 0x76bb, end 0x76bb
    panic: extent_free: region not found
    Stopped in pid 4 (reaper) at cpu_Debugger+0x10: lwz r0, r1, 0x14
    db> trace
    0xe9872d60: at panic+174
    0xe9872e20: at extent_free+218
    0xe9872e40: at uvm_swap_free+d0
    0xe9872e60: at uvm_anon_dropswap+24
    0xe9872e70: at uvm_anfree+19c
    0xe9872e90: at amap_wipeout+80
    0xe9872eb0: at amap_unref+38
    0xe9872ed0: at uvm_unmap_detach+9c
    0xe9872ef0: at uvmspace_free+114
    0xe9872f20: at uvm_exit+28
    0xe9872f40: at reaper+6c
    0xe9872f50: at fork_trampoline+10
    db>
  • /usr/local/src/gcc-3.0.4/objdir/gcc/xgcc -B/usr/local/src/gcc-3.0.4/objdir/gcc/ -B/usr/local/powerpc-apple-netbsd1.6./bin/ -B/usr/local/powerpc-apple-netbsd1.6./lib/ -isystem /usr/local/powerpc-apple-netbsd1.6./include -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -isystem ./include -g1 -DIN_LIBGCC2 -D__GCC
    FLOAT_NOT_NEEDED -I. -I. -I../../gcc -I../../gcc/. -I../../gcc/config -I../../gcc/../include -DFINE_GRAINED_LIBRARIES -fPIC -mstrict-align -DL_pack_sf -c fp-bit.c -o libgcc/./_pack_sf.o
    xgcc: fp-bit.c: No such file or directory
    3223.498u 283.007s 1:01:00.86 95.7% 0+0k 165+11715io 1506pf+18w
    ttyp0:makoto@harry 11:36:40/020528(...gcc-3.0.4/objdir)> find .. -name fp-bit\*
    ../gcc/config/fp-bit.c
    ../gcc/config/fp-bit.h
    ../gcc/fp-bit.c
    Finding directories and links to directories
    Searching /usr/include/.

    panic: vgonel: not clean, vp 0x2b03198
    Stopped in pid 22599 (find) at cpu_Debugger+0x10: lwz r0, r1, 0x14
    db> trace
    0xe99c3b70: at panic+174
    0xe99c3c30: at vgonel+240
    0xe99c3c50: at getnewvnode+2b4
    0xe99c3c80: at ffs_vget+80
    0xe99c3cc0: at ufs_lookup+9c8
    0xe99c3d40: at VOP_LOOKUP+3c
    0xe99c3d60: at lookup+318
    0xe99c3da0: at namei+318
    0xe99c3e00: at sys___lstat13+50
    0xe99c3ee0: at trap+610
    0xe99c3f50: user SC trap by 0x418b982c: srr1=0xf032
    r1=0x7fffd988 cr=0x24028045 xer=0 ctr=0
    db>

    Last Update

    19:52:52 03/12/08
    Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])
    Apache/2.4.62 (Unix) OpenSSL/3.0.12
    Count.cgi
    (since 2002/03/20)