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

  • 04/25(木) Interface
  • 04/27() 2100 - 2100 ALL JA
  • 04/28() tokuda net 誕生日
  • 04/28() 自動車保険期限 (OS/Browser 制限有)
  • 04/30(火) NTT 東 払込期日
  • 04/30(火) ○ 固定資産税振替・支払
  • 05/01(水) atactl check
  • 05/01(水) 不燃ごみ
  • 05/03(金) 0900-1500 東京コンテスト
  • 05/14(火) All JA ログ締切
  • 05/15(水) 不燃ごみ
  • 05/18() 木之本会議
  • 05/19() CQ Ham Radio
  • 05/19() 別冊 CQ
  • 403 JNUG 総会/BOF 2017/07/08 (土)
  • 402 用途別 Emacs ( C, LaTeX, 日本語 )
  • 380 cvsweb の移行
  • 370 tamago 辞書登録
  • 368 CROSS (cross/i386-mingw32, cross/powerpc-linux ) Framework --- binutils + gcc
  • 363 Wanderlust+HyperEstraier
  • 360 evbppc 用 patch / 玄箱
  • 335 /dev/battery is missing hack | libgcc_s_pic.a is missing | samba の -PIE 問題335 ntpd monitor
  • 325 tcode頁の更新
  • 322 software |hardware
  • 321 emacs-22 | IPv6
  • 320 bulk build (Mac OS X 10.4 and NetBSD/macppc)
  • 310 Wanderlust の Namazu の挙動
  • 290 WordPress 1.2 -> 1.5 migration
  • 220 Wanderlust で日本語題名の wl-summary-print-buffer
  • 215 NetBSD/ofppc
便利なツール
Emacs
らくらく 入門
rakuraku-emacs-cover

先月 2024年04月 来月
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
Namazu for hns による簡易全文検索
詳しくは 詳細指定/ヘルプを参照して下さい
検索式:

2013年11月06日(水) 旧暦 [n年日記] [更新:"2013/11/06 16:42:42"]

#1 [cross] gcc-4.1 for nios2

既に動く gcc-3.4.6 があるので、もしそれを使って crtstuff.c から アセンブリ語を出して見たらどうなるか、と調べて見た。 操作行 (command line) の入力は、gcc-4.1 を作る時のものから借用する
genova@makoto 14:55:09/131106(..build/gcc)%   \
/usr/pkg/cross/bin/nios2-elf-gcc -S  \
-B/usr/pkg/cross/nios2-elf/bin/  \
-B/usr/pkg/cross/nios2-elf/lib/ -isystem  \
/usr/pkg/cross/nios2-elf/include -isystem  \
/usr/pkg/cross/nios2-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC  \
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes  \
-Wmissing-prototypes -Wold-style-definition -isystem ./include  \
-I. -I. -I../../gcc-4.1/gcc  \
-I../../gcc-4.1/gcc/. -I../../gcc-4.1/gcc/../include  \
-I../../gcc-4.1/gcc/../libcpp/include -g0  \
-finhibit-size-directive -fno-inline-functions -fno-exceptions  \
-fno-zero-initialized-in-bss -fno-unit-at-a-time  \
-Dinhibit_libc \ -c ../../gcc-4.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.S

In file included from ../../gcc-4.1/gcc/crtstuff.c:71:
../../gcc-4.1/gcc/unwind-dw2-fde.h:36: warning: ignoring #pragma GCC visibility
../../gcc-4.1/gcc/unwind-dw2-fde.h:185: warning: ignoring #pragma GCC visibility
genova@makoto 14:55:23/131106(..build/gcc)% cat -n crtbegin.S | tail -15
 119          stw     ra, 0(sp)
 120  #APP
 121                  .section        .init
 122  #NO_APP
 123          call    frame_dummy
 124  #APP
 125                  .section        .text
 126  #NO_APP
 127          ldw     ra, 0(sp)
 128          addi    sp, sp, 4
 129          ret
 130          .weak   _Jv_RegisterClasses
 131          .weak   __deregister_frame_info
 132          .weak   __register_frame_info
 133          .ident  "GCC: (GNU) 3.4.6 (Altera Nios II 0 b0)"
genova@makoto 14:55:36/131106(..build/gcc)%

-da option for gcc:

gcc には -dletter という指定があります。次に letter = a の場合の例を示します。
/export/git-work/nios2/build/./gcc/xgcc -da \
-B/export/git-work/nios2/build/./gcc/ \
-B/usr/pkg/cross/nios2-elf/bin/ \
-B/usr/pkg/cross/nios2-elf/lib/ -isystem \
/usr/pkg/cross/nios2-elf/include -isystem \
/usr/pkg/cross/nios2-elf/sys-include -O2 -O2 -g -O2 -DIN_GCC \
-DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes \
-Wmissing-prototypes -Wold-style-definition -isystem ./include \
-I. -I. -I../../gcc-4.1/gcc \
-I../../gcc-4.1/gcc/. -I../../gcc-4.1/gcc/../include \
-I../../gcc-4.1/gcc/../libcpp/include -g0 \
-finhibit-size-directive -fno-inline-functions -fno-exceptions \
-fno-zero-initialized-in-bss -fno-unit-at-a-time \
-Dinhibit_libc \
  -c ../../gcc-4.1/gcc/crtstuff.c -DCRT_BEGIN \
  -o crtbegin.o
この結果、次のような中間のものが残されます。
genova@makoto 16:20:38/131106(..build/gcc)% ls -lt |grep crtstuff.c
-rw-r--r--  1 makoto  wheel       445 Nov  6 16:20 crtstuff.c.38.greg
-rw-r--r--  1 makoto  wheel     13763 Nov  6 16:20 crtstuff.c.37.lreg
-rw-r--r--  1 makoto  wheel      9337 Nov  6 16:20 crtstuff.c.36.sched1
-rw-r--r--  1 makoto  wheel      9200 Nov  6 16:20 crtstuff.c.34.life2
-rw-r--r--  1 makoto  wheel      6482 Nov  6 16:20 crtstuff.c.32.split1
-rw-r--r--  1 makoto  wheel      6617 Nov  6 16:20 crtstuff.c.31.regmove
-rw-r--r--  1 makoto  wheel      6640 Nov  6 16:20 crtstuff.c.29.ce2
-rw-r--r--  1 makoto  wheel      6824 Nov  6 16:20 crtstuff.c.28.combine
-rw-r--r--  1 makoto  wheel        60 Nov  6 16:20 crtstuff.c.27.ner
-rw-r--r--  1 makoto  wheel     10261 Nov  6 16:20 crtstuff.c.26.life1
-rw-r--r--  1 makoto  wheel      7951 Nov  6 16:20 crtstuff.c.25.cse2
-rw-r--r--  1 makoto  wheel      8383 Nov  6 16:20 crtstuff.c.23.loop2_done
-rw-r--r--  1 makoto  wheel      8335 Nov  6 16:20 crtstuff.c.18.loop2_init
-rw-r--r--  1 makoto  wheel      5670 Nov  6 16:20 crtstuff.c.17.loop2
-rw-r--r--  1 makoto  wheel      7851 Nov  6 16:20 crtstuff.c.15.ce1
-rw-r--r--  1 makoto  wheel      6617 Nov  6 16:20 crtstuff.c.14.bp
-rw-r--r--  1 makoto  wheel      7562 Nov  6 16:20 crtstuff.c.13.cfg
-rw-r--r--  1 makoto  wheel      8158 Nov  6 16:20 crtstuff.c.12.bypass
-rw-r--r--  1 makoto  wheel      5843 Nov  6 16:20 crtstuff.c.11.old-loop
-rw-r--r--  1 makoto  wheel     11618 Nov  6 16:20 crtstuff.c.10.gcse1
-rw-r--r--  1 makoto  wheel      8199 Nov  6 16:20 crtstuff.c.09.cse1
-rw-r--r--  1 makoto  wheel      8544 Nov  6 16:20 crtstuff.c.08.jump
-rw-r--r--  1 makoto  wheel      6131 Nov  6 16:20 crtstuff.c.07.vregs
-rw-r--r--  1 makoto  wheel      5827 Nov  6 16:20 crtstuff.c.06.unshare
-rw-r--r--  1 makoto  wheel      5827 Nov  6 16:20 crtstuff.c.05.initvals
-rw-r--r--  1 makoto  wheel      5827 Nov  6 16:20 crtstuff.c.03.locators
-rw-r--r--  1 makoto  wheel      5827 Nov  6 16:20 crtstuff.c.02.sibling
-rw-r--r--  1 makoto  wheel      6108 Nov  6 16:20 crtstuff.c.01.eunotes
-rw-r--r--  1 makoto  wheel      6485 Nov  6 16:20 crtstuff.c.00.expand
-rw-r--r--  1 makoto  wheel     13929 Nov  6 16:19 crtstuff.c.20.combine
-rw-r--r--  1 makoto  wheel     27116 Nov  6 16:19 crtstuff.c.33.sched2
-rw-r--r--  1 makoto  wheel     25413 Nov  6 16:19 crtstuff.c.31.bbro
-rw-r--r--  1 makoto  wheel     18849 Nov  6 16:19 crtstuff.c.30.rnreg
-rw-r--r--  1 makoto  wheel     18914 Nov  6 16:19 crtstuff.c.29.ce3
-rw-r--r--  1 makoto  wheel     22974 Nov  6 16:19 crtstuff.c.27.flow2
-rw-r--r--  1 makoto  wheel     14594 Nov  6 16:19 crtstuff.c.26.postreload
-rw-r--r--  1 makoto  wheel     16300 Nov  6 16:19 crtstuff.c.25.greg
-rw-r--r--  1 makoto  wheel     28164 Nov  6 16:19 crtstuff.c.24.lreg
-rw-r--r--  1 makoto  wheel     20560 Nov  6 16:19 crtstuff.c.23.sched
-rw-r--r--  1 makoto  wheel     14392 Nov  6 16:19 crtstuff.c.22.regmove
-rw-r--r--  1 makoto  wheel     14152 Nov  6 16:19 crtstuff.c.21.ce2
-rw-r--r--  1 makoto  wheel     21948 Nov  6 16:19 crtstuff.c.19.life
-rw-r--r--  1 makoto  wheel     18409 Nov  6 16:19 crtstuff.c.18.cse2
-rw-r--r--  1 makoto  wheel     18514 Nov  6 16:19 crtstuff.c.14.ce1
-rw-r--r--  1 makoto  wheel     14438 Nov  6 16:19 crtstuff.c.12.bp
-rw-r--r--  1 makoto  wheel     17897 Nov  6 16:19 crtstuff.c.11.cfg
-rw-r--r--  1 makoto  wheel     19066 Nov  6 16:19 crtstuff.c.10.bypass
-rw-r--r--  1 makoto  wheel     10795 Nov  6 16:19 crtstuff.c.09.loop
-rw-r--r--  1 makoto  wheel     36832 Nov  6 16:19 crtstuff.c.08.gcse
-rw-r--r--  1 makoto  wheel     10912 Nov  6 16:19 crtstuff.c.07.addressof
-rw-r--r--  1 makoto  wheel     19252 Nov  6 16:19 crtstuff.c.06.cse
-rw-r--r--  1 makoto  wheel     18068 Nov  6 16:19 crtstuff.c.05.null
-rw-r--r--  1 makoto  wheel     17570 Nov  6 16:19 crtstuff.c.04.jump
-rw-r--r--  1 makoto  wheel      9442 Nov  6 16:19 crtstuff.c.01.rtl


2009年11月06日(金) 旧暦 [n年日記] [更新:"2009/11/07 09:02:32"]

#1 [NetBSD][pkgsrc] making gcc-3.4.1 (lang/gcc34)

何故か gcc-3.4.1 がどうしても必要ということになり、 pkgsrc/lang/gcc34 で make している。Makefile の cvs log を見て 2004/08/10 頃を持出せば良いと思い、次のようにした。
cd pkgsrc/lang/gcc34
cvs log Makefile |less
cvs update -D "2004-08-10"
ptrdiff_t で問題が起きるので、回避策で
--- ./work.t-105/gcc-3.4.1/gcc/ginclude/stddef.h~	2003-12-17 01:09:18.000000000 +0900
+++ ./work.t-105/gcc-3.4.1/gcc/ginclude/stddef.h	2009-11-06 07:02:16.000000000 +0900
@@ -424,3 +424,6 @@
 
 #endif /* !_STDDEF_H && !_STDDEF_H_ && !_ANSI_STDDEF_H && !__STDDEF_H__
 	  || __need_XXX was not defined before */
+typedef int ptrdiff_t;
+#define _BSD_SIZE_T_    unsigned int
+typedef _BSD_SIZE_T_    size_t;

それから Error: alignment not a power of 2
と言われるので、次のように 変更したつもりだったが、時として、これは必要ないらしい。
--- work.t-105/gcc-3.4.1/gcc/config/i386/netbsd.h~	2009-11-06 07:08:37.000000000 +0900
+++ work.t-105/gcc-3.4.1/gcc/config/i386/netbsd.h	2009-11-06 07:11:01.000000000 +0900
@@ -41,7 +41,7 @@
    segment.  */
 #undef ASM_OUTPUT_ALIGN
 #define ASM_OUTPUT_ALIGN(FILE,LOG) \
-  if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", (LOG))
+  if ((LOG)!=0) fprintf ((FILE), "\t.align %d,0x90\n", 1<<(LOG))
 
 /* Profiling routines, partially copied from i386/osfrose.h.  */
 

これは 以前にも 同じようなことがあったと思う。
bootstrap is not found
install is not found
等と言われることもある。これは ${GMAKE} bootstrap 等の GMAKE が空になって いるためなので、次のように起動すると回避可能
env GMAKE=gmake hogehgoe
次のように言われるのは SHELL 変数が定義されいるためで unsetenv SHELL する (bash ではどうするのか実は知らない)
SHELL=/bin/sh: Command not found.
export: Command not found.
if: Expression Syntax.


2008年11月06日(木) 旧暦 [n年日記] [更新:"2008/11/06 23:46:40"]

#1 [NetBSD][pkgsrc] wip/emacs-current で -w: not found

これは何かな ?
cd pkgsrc/wip/emacs-current
make
...
=> Downloading emacs from :pserver:anonymous:@cvs.savannah.gnu.org:/sources/emacs.
=> Creating cached CVS archive emacs-emacs-2008-11-06.tar.gz.
-w: not found
*** Error code 127
最近、(別の機械で) これを見て、解決したような気もするが (もしそれが本当だとすると) 多分すごく簡単なことだったので、覚えていない。
その別の機械では次のように正常に進む。 (Following log is the normal case:)
=> Logging in to :pserver:anonymous:@cvs.savannah.gnu.org:/sources/emacs.
Logging in to :pserver:anonymous@cvs.savannah.gnu.org:2401/sources/emacs
=> Downloading emacs from :pserver:anonymous:@cvs.savannah.gnu.org:/sources/emacs.
=> Creating cached CVS archive emacs-emacs-2008-11-06.tar.gz.
cp /export/pkgsrc/wip/emacs-current/../../editors/emacs/files/site-init.el 
	/export/pkgsrc/wip/emacs-current/work.modena/emacs/lisp
===> Patching for emacs-23.0.60nb20081106
=> Applying pkgsrc patches for emacs-23.0.60nb20081106
pkgsrc/mk の下は最新にしてある。更に pkg_install を次のようにして入替えたが関係なかったようだ。
   121  23:15   cd ../pkgtools/pkg_install

   137  23:24   sudo pkg_delete -fN pkg_install
   138  23:24   sudo make package
多分以前はこのことを IRC で obache さんに教えてもらった。

The reason is 'cvs-package.mk is not up-to-date'.
To fix:
update wip/mk also.



2006年11月06日(月) 旧暦 [n年日記] [更新:"2006/11/10 07:32:13"]

#4 [Namazu] 2.0.17RC3

Day '31' out of range 1..30 at /usr/pkg/share/namazu/pl/time.pl line 246
変だなぁ、無視すると言っていたが ..
Date: Tue, 31 Nov 2006 08:47:48 -0120
(以前には自分でちょっと勘違いをして変な直し方をして通過させていた)

#3 素の Namazu-2.0.17RC3 (VPATH 方式)

    93  21:07   cd local-src/
    94  21:08   tar zxf /e/u/j/distfiles/namazu-2.0.17RC3.tar.gz
    95  21:08   mkdir namazu-2.0.17RC3-work
    96  21:08   cd namazu-2.0.17RC3-work
    97  21:08   ../namazu-2.0.17RC3/configure
    98  21:09   time make
...
sed -e 's!%PERL%!/usr/pkg/bin/perl!g'  
    -e 's!@pkgdatadir@!/usr/local/share/namazu!g' 
    pltests.pl.in > pltests.pl.tmp
sed: pltests.pl.in: No such file or directory
*** Error code 1

Stop.
make: stopped in /home/makoto/local-src/namazu-2.0.17RC3-work/pltests
*** Error code 1
この問題は VPATH を使わなければ大丈夫。
pltest.pl.in の前に ${srcdir} を付ければいいのかな。 解決方法 → 2.0.17RC3.pltest.diff
次の問題 → Can't open ./commonfuncs 解決方法 → commonfuncs.diff
OSNetBSD/macppc 3.1_RC3 (TNF)
(~/local-src/namazu-2.0.17RC3)> env pkgdatadir=`pwd` scripts/mknmz -C

#2 Namazu-2.0.17RC3

NetBSD/macppc pkgsrc に更に自分で変更を加えているので、 この情報はそのままでは使えない ...
assertion "ret == 0" failed: file 
  "/home/builds/ab/netbsd-3/src/lib/libpthread/pthread.c", 
  line 176, function "pthread_init"
FAIL: mknmz-3
...
egrep: idx15/NMZ.field.from: No such file or directory
FAIL: mknmz-12
...
diff: idx3/./NMZ.field.newsgroups.i: No such file or directory
FAIL: idxdiff-2
...
FAIL: namazu-13
====================
4 of 50 tests failed
====================
*** Error code 1

#1 [Namazu] (Namazu) Out of memory!

1142657/1171881 - /amd/u/home/makoto/Mail/njr/mail/853 [message/rfc822]
1142658/1171881 - /amd/u/home/makoto/Mail/njr/mail/854 [message/rfc822]
Out of memory!
あとちょっとだったのにー ..
 4 Nov  2 17:52 NMZ.lock2
というのがあるので 4 日と 2 時間 = 98 時間。

この次に 8,570,928 bytes つまり 8.6M の添付書類付のメールがあった。

実メモリ512M
swap4145280 (4G)
$conf::ON_MEMORY_MAX35000000 (35M)
$conf::FILE_SIZE_MAX10000000 (10M)
この 10M を 5M くらいにしておくかな。それと実はメールって分っているので
  -h, --mailnews same as --media-type='message/rfc822'
を付けておくべきかな ..

~/.mknmzrc の全文(除注釈文)

package conf;
$conf::FILE_SIZE_MAX=10000000;
$conf::ON_MEMORY_MAX=35000000;
$conf::META_TAGS='keywords|description';
#
$EXCLUDE_PATH  .= 'trash|not-found|cron|mailer-daemon';
そう言えば unlimit していなかった ...
CPU
何故か 300% くらいになっているのは NetBSD/macppc (TNF) 3.1_RC2 の問題 ?
Traffic
索引の作成対象は NFS で読んでいるので、このような図になる
Memory 残量
snmpd は残量を教えてくれるので、それをそのまま使うと、こうなる。 それから k と表示されているのは M
Swap 残量
swap は 3G 空いているはずなのだが。 M と表示されているのは G
再試行:
ttyqc:makoto@trapani 21:56:57/061106(...makoto/Mail)>
      mknmz -f ~/.mknmzrc --mailnews -O /home/namazu/mail .
実際には次の時から
-rw-r--r--  1 makoto  wheel          5 Nov  7 00:58 NMZ.lock2


2005年11月06日() 旧暦 [n年日記] [更新:"2005/11/06 17:12:41"]

#2 [spam] ttforever.net 版

aiyg.com -> ns1.ttforever.net
amqg.com -> ns1.ttforever.net

#1 [pkgsrc] cvsync

long' -DHAVE_RIPEMD160 -DHAVE_SHA1 -pthread -I../common -I. -g -I/usr/include -c -o hash_native.o ../common/hash_native.c
In file included from ../common/hash_native.c:39:
../common/hash_native.h:60:20: rmd160.h: No such file or directory
../common/hash_native.c: In function `cvsync_RIPEMD160_init':
../common/hash_native.c:109: error: `RMD160_CTX' undeclared (first use in this function)
前川さんに教わったような気がするが、どうすればいいのか忘れてしまった。 とりあえず、これは飛ばして、作らないことで回避。 「rmd160.h は一度消えて、また戻っているから src を新しくすればいい」だったかなぁ。


2002年11月06日(水) 旧暦 [n年日記]

#1 [NetBSD] iBook (初期型)に入直したら、

ts 版が動かない。 (同じ版は以前に動いていたはず)
(1) 20020818ts 
(2) 20020818ts + kernel 20021029ts
のどちらも動かない。
root file system type: ffs
から先に行かない。 同じような現象は、 (1) PM4400, PBG4/800 でも起きていたが、 少なくとも PBG4 の方は (2)では動くようになっている。
どうも起動の方法と関係があるのかな (今回それだけが違うはずだから)。ちなみに起動は、
boot cd:,ofwboot.xcf hd:10/netbsd

試しに 20021028(na) を入れて見る:

最後の passwd の変更で、 Failed: command ended on signal という字が見える
process (pid 1) got signal 4 のような字で動かない。


2001年11月06日(火) 旧暦 [n年日記]

#3 [機械] ヨドバシカメラから電話があって注文の品が届いたとのこと

(自分用ではないのだけれど)

#2 [機械] Router を Network boot にしようとしたが出来ず

config と system image の区別も付かない。
Netboot するにはどうも余分に主記憶が要るようだ。 Buffer Overflow 3,428,864/3,428,524 とか出ている。
読もうとしているのは 3,497,716 だからほんの少し足りない だけのはずだけれど。

#1 [井荻中] 同期会の Web を作っていた



2000年11月06日(月) 旧暦 [n年日記]

#1 [hns] OK のない *.hnf

そうでした。確かにまず用意しておいて、その後で OK を付ける という使い方もあったのですね。
僕の知り合いの場合、何に気を付ければいいか分ったので、 今後は問題とはならない気がします。
Mac で Jedit 1.0 で作って、 vicom という ftp client で 転送するというようなやり方をしています。
以前に高校の先生をしていた方が、定年後に日記を書くという ような状況です。
それにしても Kenji さん ありがとうございます。きっと読んで いてくれると信じていました。



最近の日記
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)
以上、8 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)