hns - 日記自動生成システム - Version 2.19.9

先月 2002年01月 来月
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2002年01月10日(木) 旧暦 [n年日記]

#1 [NetBSD] /pkgsrc が 100M を越えてしまった

cvs update -dP したら、106M で disk full まだ先がある。 以前は 80M くらいのはずだったのに、何が起きたのだろうか
どうも単に「増えている」だけのようだ。 実は結構ショック。
関係ないけれど /usr/pkgsrc/README-IPv6.html というのがあるのにきょう気が付いた

#2 [NetBSD] snapshot/20011220 で cdrecord が組立てられないのは本当か

と調べているが確かに
    ==> COMPILING "OBJ/powerpc-netbsd-cc/align_test.o"
gcc: invalid option -- O
gcc: usage 'gcc [ -VqfnkN ] [ -i <istring> ] [ filename ... ]'
と言われる
gmake[1]: 入ります ディレクトリ `/export/pkgsrc/sysutils/cdrecord/work/cdrtools-1.10/conf'
../RULES/rules.cnf:58: ../incs/powerpc-netbsd-cc/Inull: No such file or directory
../RULES/rules.cnf:59: ../incs/powerpc-netbsd-cc/rules.cnf: No such file or directory
        ==> MAKING DIRECTORY "../incs/powerpc-netbsd-cc/Inull"
        ==> CONFIGURING RULES "../incs/powerpc-netbsd-cc/rules.cnf"

#3 /etc/mk.conf

そうか、ここに書いておけばいいんだ
# For src... some of these make pkgsrc freak out, so:
.ifndef BSD_PKG_MK
DESTDIR=/build/i386
#DESTDIR=/build/macppc
#DESTDIR=/build/mac68k
RELEASEDIR=/release/20020105
#RELEASEDIR=/release/20011122-macppc
#RELEASEDIR=/release/20011122-mac68k
TOOLDIR=/usr/obj/tools
MKTOOLS=always
USETOOLS=yes
#USE_NEW_TOOLCHAIN=yes
MKOBJ=yes
MKOBJDIRS=yes
#MKHOSTOBJ=yes
# big honking obj link names; only necessary if we're cross-compiling
# from this tree to a given target on multiple (differently-arched)
# hosts
OBJMACHINE=yes
#NOCLEANDIR=1
#UPDATE=1
#CFLAGS+=-g
.endif

# For src/sys
#EXTRA_KERNELS=GRAPPA

# For pkgsrc
.ifdef BSD_PKG_MK
ACCEPTABLE_LICENSES+=fee-based-commercial-use opera-license no-commercial-use
ACCEPTABLE_LICENSES+=adobe-acrobat-license jdk-license shareware no-profit
.endif

#4 [NetBSD] cross/sparc-netbsdelf

ちょっと思い立って cross 環境を動かして見た。既に動いている機械 を標的にしたことも関係あるが、信じられないくらい簡単だった。
  • /usr/pkgsrc/cross/sparc-netbsdelf で make installする
  • その時に
    This pkg DOES NOT install headers or runtime link libraries. Only the compilers are installed.

    In order to have a complete development setup, you need to install includes and libraries in /usr/pkg/cross/sparc-netbsdelf/include and /usr/pkg/cross/sparc-netbsdelf/lib respectively, or symlink these paths to the appropriate places.

    と言われるが、実は良く分らなかった
  • 実行するには次のようにすればいい
    env CROSS_PKG=sparc-netbsdelf cross-env gcc -o hello hello.c
    しかし lib include が入っていない時だと、例えば、
    /usr/pkg/cross/sparc-netbsdelf/bin/ld: cannot open crt0.o: No such file or directory
    collect2: ld returned 1 exit status
    となってしまう。
  • つまり 「include, lib は release (や snapshot) を開けて、持って来てね」 pkgsrc の方ではそこまでは面倒見ないよ
    ということだった。
  • そこで
    動いている機械の方で /usr/lib, /usr/include を export しておく
    /usr/lib     -maproot=0 -network 210.145.40.112 -mask 255.255.255.240
    /usr/include -maproot=0 -network 210.145.40.112 -mask 255.255.255.240
    
  • そうして /usr/share/exapmles/amd/amd.conf, cd, net が /etc/amd に写して あるので、
    cd /usr/pkg/cross/sparc-netbsdelf/
    ln -s /net/hostname/usr/lib .
    ln -s /net/hostname/usr/include .
    
    しておけば、これでおしまい。
  • 後は、いつも
    env CROSS_PKG=sparc-netbsdelf cross-env
    
    のおまじないの後に make でも gcc でも必要な操作を入れれば良い

#5 [NetBSD] pdisk

  • MacOS の「ドライブ設定」は最少で 32 MB までしか作れない
  • pdisk というのがあるので、これを使えないか
  • しかも OS を入れる前だと面白い
  • そこで NetBSD 起動 CDROM に static に作った pdisk を入れておいて
  • boot cd:,ofwboot.xcf で起動して
    mount /dev/cd0c /mnt
    /mnt/pdisk 
    
    すると使える。d で消して C で作る。
しかし 800k 以上にしておかないと hfsutils でおこられた。
makoto@graphite 20:28:06/020110(/home/makoto)# hmount /dev/wd0d
hmount: /dev/wd0d: volume is smaller than 800K (Invalid argument)



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)