(toppers-users 2726) 中級実装セミナー教材

norio moteki norio_moteki @ ybb.ne.jp
2008年 1月 22日 (火) 20:33:08 JST


TOPPERS の皆様

お世話になっております。
茂手木と申します。

TOPPERS で公開されています「中級実装セミナー教材」を使わせて頂き 
ITRONの勉強を試みていますが、エラーが発生します。
お気づきの点等ございましたらご指摘をお願いします。

1. 開発環境
 WindowsXP上のcygwin に下記のバージョンの開発環境をインストールしました。
   binutils-2.11.2
   gcc-2.95.3
   newlib-1.9.0
 この状態で、初級実装セミナー教材 begin-akih8-1.6.lzh の、
 コンフィギュレータ・カーネルライブラリ・non_os.srec・timer1,2,3 は
 正常にビルドできます。

2. 中級実装セミナーの準備
 1) ホームディレクトで jsp-1.4.2.lzh を解凍。jsp フォルダが出来ます。
 2) 中級実装セミナーの教材 middle-akih8-1.9.zip を解凍して得られる
    jsp-1.4.2-102406.tar.gz を解凍後、jsp-1.4.2 フォルダに含まれる
   フォルダ以下をホームディレクトリの jsp フォルダに上書き。
 3) tinet-1.2.3.tar.gz を解凍して得られるファイルをホームディレクト
   リの jsp フォルダに上書き。
 4) ここから、 middle-akih8-1.9.zip に含まれる README.txt に従って
    操作します。
       libkernel.aの作り方:OBJ/AKIH8_3069Fに移動して
       mkdir libkernel	デレクトリィを作成
       cd libkernel	デレクトリィに移動
       ライブラリィをビルド
       ../../../configure -C h8 -S AKIH8_3069F
コンソール出力
configure: Generating Makefile from ../../../sample/Makefile.
configure: Generating sample1.c from ../../../sample/sample1.c.
configure: Generating sample1.h from ../../../sample/sample1.h.
configure: Generating sample1.cfg from ../../../sample/sample1.cfg.

       make depend
コンソール出力       
h8300-hms-gcc -S  -mh -mint32 -mrelax -O2 -g  -DCPU_CLOCK=20000000 -DLABEL_ASM -DVECTOR_SIZE=64 -DTNCT_MONITOR -I. -I../../../include  -I../../../config/h8/AKIH8_3069F -I../../../config/h8  -I../../../kernel ../../../config/h8/makeoffset.c
In file included from ../../../include/kernel.h:72,
                 from ../../../kernel/jsp_kernel.h:61,
                 from ../../../config/h8/makeoffset.c:45:
../../../include/t_stddef.h:89: parse error before `void'
../../../include/t_stddef.h:89: stray '\' in program
../../../include/t_stddef.h:90: stray '\' in program
../../../include/t_stddef.h:91: stray '\' in program
In file included from ../../../include/kernel.h:83,
                 from ../../../kernel/jsp_kernel.h:61,
                 from ../../../config/h8/makeoffset.c:45:
../../../config/h8/cpu_defs.h:60: parse error before string constant
../../../config/h8/cpu_defs.h:60: stray '\' in program
../../../config/h8/cpu_defs.h:61: stray '\' in program
../../../config/h8/cpu_defs.h:62: stray '\' in program
../../../config/h8/cpu_defs.h:63: stray '\' in program
In file included from ../../../include/kernel.h:88,
                 from ../../../kernel/jsp_kernel.h:61,
                 from ../../../config/h8/makeoffset.c:45:
../../../include/t_syslog.h:254: parse error before `0x09u'
../../../include/t_syslog.h:257: stray '\' in program
../../../include/t_syslog.h:261: stray '\' in program
../../../include/t_syslog.h:265: stray '\' in program
../../../include/t_syslog.h:269: stray '\' in program
../../../include/t_syslog.h:270: stray '\' in program
../../../include/t_syslog.h:274: stray '\' in program
../../../include/t_syslog.h:275: stray '\' in program
In file included from ../../../include/t_config.h:71,
                 from ../../../kernel/jsp_kernel.h:66,
                 from ../../../config/h8/makeoffset.c:45:
../../../config/h8/cpu_config.h:229: parse error before `inhno'
../../../config/h8/cpu_config.h:293: stray '\' in program
../../../config/h8/cpu_config.h:294: stray '\' in program
../../../config/h8/cpu_config.h:295: parse error before `#'
../../../config/h8/cpu_config.h:295: stray '\' in program
../../../config/h8/cpu_config.h:296: undefined or invalid # directive
../../../config/h8/cpu_config.h:297: stray '\' in program
../../../config/h8/cpu_config.h:298: stray '\' in program
../../../config/h8/cpu_config.h:299: stray '\' in program
../../../config/h8/cpu_config.h:300: stray '\' in program
../../../config/h8/cpu_config.h:301: stray '\' in program
../../../config/h8/cpu_config.h:302: stray '\' in program
../../../config/h8/cpu_config.h:303: stray '\' in program
../../../config/h8/cpu_config.h:304: stray '\' in program
../../../config/h8/cpu_config.h:305: stray '\' in program
../../../config/h8/cpu_config.h:306: stray '\' in program
../../../config/h8/cpu_config.h:317: stray '\' in program
../../../config/h8/cpu_config.h:318: stray '\' in program
In file included from ../../../include/t_config.h:76,
                 from ../../../kernel/jsp_kernel.h:66,
                 from ../../../config/h8/makeoffset.c:45:
../../../config/h8/tool_config.h:55: parse error before `#'
In file included from ../../../kernel/task.h:48,
                 from ../../../config/h8/makeoffset.c:46:
../../../kernel/queue.h: In function `queue_delete_next':
../../../kernel/queue.h:111: stray '\' in program
../../../kernel/queue.h: In function `queue_empty':
../../../kernel/queue.h:127: stray '\' in program
In file included from ../../../kernel/task.h:49,
                 from ../../../config/h8/makeoffset.c:46:
../../../kernel/time_event.h: In function `tmevtb_enqueue':
../../../kernel/time_event.h:158: stray '\' in program
../../../config/h8/makeoffset.c: At top level:
../../../config/h8/makeoffset.c:50: parse error before `INT'
../../../config/h8/makeoffset.c:53: stray '\' in program
../../../config/h8/makeoffset.c:54: stray '\' in program
../../../config/h8/makeoffset.c:55: stray '\' in program
../../../config/h8/makeoffset.c:58: stray '\' in program
../../../config/h8/makeoffset.c:59: stray '\' in program
../../../config/h8/makeoffset.c:60: stray '\' in program
../../../config/h8/makeoffset.c:65: stray '\' in program
../../../config/h8/makeoffset.c:66: stray '\' in program
../../../config/h8/makeoffset.c:67: stray '\' in program
../../../config/h8/makeoffset.c:68: stray '\' in program
../../../config/h8/makeoffset.c:70: stray '\' in program
../../../config/h8/makeoffset.c:71: stray '\' in program
../../../config/h8/makeoffset.c:72: parse error before `}'
make: *** [makeoffset.s] エラー 1

  というエラーが発生します。
  4) の操作を行う前に
     cd cfg
     make depend
     make
  を行っても同様でした。
   
以上