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

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

2010年04月16日(金) 旧暦 [n年日記] [更新:"2010/04/19 00:07:29"]

#1 [EDA] personal-pkgsrc/scrc2 (scrc 2.1) もはまり中

scrc (SpecC Reference Compiler) 2.1 を動かそうとしていて、途中まで pkgsrc を作って見ているが いろいろと(自分で思うには)理不尽な反応があり、止っている。
  • Constant.cc:1177: error: `ubit2str' was not declared in this scope
    Constant.cc:1177: warning: unused variable 'ubit2str'
    Constant.cc:1191: error: `ubit2str' was not declared in this scope
    Constant.cc:1191: warning: unused variable 'ubit2str'
    
    scrc-2.1/src/IntRep/Constant.cc の次の行 が読まれていない ? というか別のものを見に行っている
        45  #include "bit.h"
    
  • 仮に、上に必要な次の二行を Constant.cc に手で加えておくと
    // Conversion to string
    char *bit2str(unsigned int base, char *endptr, const _bit& b);
    char *ubit2str(unsigned int base, char *endptr, const _bit& b);
    
    まだ _bit 関係の定義がおかしいようなことを言う。
Makefile に pre-configure: を使って、ここまでやっておいてから pkgsrc を使わないで gmake 出来るようにして見た
make configure
(cd work/scrc-2.1; env PATH=/usr/pkg/gcc34/bin:$PATH gmake)
が、やはり上の ubit2str は同じように言われるので、この問題は pkgsrc 由来でも、また gcc4 由来でもなさそうだ。 どれかのシンボリックリンクが悪さをしている気もする。
どうも __BIT がどこかで定義済ということらしく、 この名前を変えたら、 先に進んだ。

error: ambiguous overload for 'operator[]' in 'PrintBuffer..:

Expression.cc: In member function 
  `const char* SIR_Expression::Print(bool, unsigned int, int, int)':
Expression.cc:5173: error: ambiguous overload for 'operator[]' in 'PrintBuffer[LeadingNL]'
Expression.cc:5173: note: candidates are: operator[](const char*, long int) <built-in>
これ、もしかすると 64bit OS 非対応ということかな (long int <-> int)
Expression.cc:5173: note: candidates are: operator[](const char*, long int) <built-in>
/export/pkgsrc/personal-pkgsrc/scrc2/work/scrc-2.1/inc/GL_String.h:303: 
   note:                 char& GL_String::operator[](int)
どうもそうらしい、i386 で試したら、かなり先まで進んだ。
ERROR #3105: Semantic error in line 221
             in file "/usr/include/stdio.h":
             Declaration of symbol '__restrict'
             does not match former declaration:
             type mismatch (#2039).
やはり gcc34 必須かな。そうでもなさそう。gcc34 でも gcc 4.1.3(N) でも同じ。 良く見ると、全く同じように見えるのですが:
m08@makoto 09:22:43/100417(..work/scrc-2.1)% cat -n /usr/include/stdio.h| sed -n 221p    
   221  int      fgetpos(FILE * __restrict, fpos_t * __restrict);
m08@makoto 09:23:30/100417(..work/scrc-2.1)% cat -n ./src/bit/tst/compat.si | sed -n 140p   
   140  int fgetpos(FILE * __restrict, fpos_t * __restrict);
ここではないところを見ているのかな

#2 [NetBSD][Xen] NetBSD/amd64 5.0_STABLE + Xen 3.3.2

今これを入力している機械 (ML115 に NetBSD/amd64 5.0_STABLE) で Xen 3.3.2 を動かそうとしているが XEN3_DOM0 kernel を動かそうとすると、 多分その kernel を読終って、 初期化すると思われる時にすぐに再起動してしまう。 これは何かな、自分の設定の問題 ? 主記憶は 4GB。
menu=Boot normally:boot netbsd
menu=Boot single user:boot netbsd -s
menu=Disable ACPI:boot netbsd -2
menu=Disable ACPI and SMP:boot netbsd -12
menu=Drop to boot prompt:prompt
menu=Boot Xen with 1GB for dom0 (PC):load /netbsd-XEN3_DOM0
       multiboot /xen.gz dom0_mem=1024M
menu=Boot Xen with 1GB for dom0 (serial):load /netbsd-XEN3_DOM0.gz 
       console=com0 multiboot /xen.gz dom0_mem=1024M console=com1 com1=115200,8n1
default=1
timeout=10
これの上から 6 番目。 間違って いた
説明: load ; option 
のような構文になるところ、区切の ; が 抜けていた。今は、次のようにしている。 実際は一行。
menu=Boot Xen with 1GB for dom0 (PC): 
  load /netbsd-XEN3_DOM0 console=pc; 
  multiboot /xen-debug.gz dom0_mem=1024M
これで無事 DOM0 は動いた。 次は DOMU の centos 44 で、まだ動いていない。
modena@makoto 21:23:39/100416(~)% sudo xm list    
   (中略)
Name                 ID   Mem VCPUs      State   Time(s)
Domain-0              0  1024     1     r-----    252.6
hvm-centos44          7  1280     1     -b----    218.7

modena@makoto 21:23:54/100416(~)% sudo xm console 7 (中略) xenconsole: Could not read tty from store: No such file or directory

となるだけで、それ以上何も起きないのは ? .. 別の OS を試して見よう。

最近の日記
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)