(toppers-users 1102) H8/3069用カーネル作成について

koori tomoyuki kori @ lmr.gr.jp
2003年 8月 29日 (金) 13:51:13 JST


こんにちは桑折@回線媒体研究所と申します。始めてTOPPERSを使う新参者です。
先月までaki H8/3069のボードで三岩さんのH8-OSを走らせて実験していました。
これからTOPPERSに移行してみようと思い試しているのですが、
カーネルのコンパイルがどうもうまくいきません。

何か重大な抜けをやらかしていると思うのですが、何処を見ると
幸せになれるのでしょうか。よろしくお願いします。

使っている環境は
RedHat Linux 7.3  kernel 2.4.18-3

以下の4ファイルを拾ってきました。
h8-gcc-3.2-1.i386.rpm :rpmでインストール
h8-newlib-1.10.0-1.i386.rpm:rpmでインストール
h8300-hms-gdb-5.2.1-1.i386.rpm :rpmでインストール
binutils-2.13.tar.gz : /usr/local/src/以下で展開し以下のようにインストール
   ./configure --prefix=/usr --target=h8300-hms
# make all
# make install
# mkdir usr/h8300-hms/bfd
# cp usr/local/src/binutils-2.13/include/ansidecl.h usr/h8300-hms/bfd/
# cp usr/local/src/binutils-2.13/include/libiberty.h usr/h8300-hms/bfd/
# cp usr/local/src/binutils-2.13/bfd/bfd.h usr/h8300-hms/bfd/
# cp usr/local/src/binutils-2.13/bfd/libbfd.a usr/h8300-hms/bfd/
# cp usr/local/src/binutils-2.13/libiberty/libiberty.a usr/h8300-hms/bfd/

次に、JSPのファイルをダウンロードして展開
#cp jsp-1.3.tar.gz /usr/local/src/
#cd /usr/local/src/
#tar zxvf jsp-1.3.tar.gz

jsp/cfg/mpstrstream.h を編集してprotected: の位置を
     std::string filename; の直前に移動。

jsp/utils/makedep を編集して
 修正前  if ($line =~ /^\#\s*([0-9]+)\s*\"([^\"]+)\"/) {
 修正後  if ($line =~ /^\#\s*([0-9]+)\s*\"([^\"\<\>]+)\"/) {

…と直しました。続いて
# ../configure -C h8 -S akih8_3067f -P /usr

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.
configure: Generating ../cfg/Makefile.h8-akih8_3067f from ../cfg/Makefile.templa
te.
configure: Generating configuration tools.
make: `all' に対して行うべき事はありません。

# make depend
cpp -I. -I../include -I../config/h8 -I../config/h8/akih8_3067f -DLABEL_ASM -DCPU
_CLOCK=20000000 -DGDB_STUB sample1.cfg | ../cfg/cfg -s -c \
                        -cpu h8 -system akih8_3067f -obj
--- mITRON4.0 Kernel Configurator (ver 9.0) for [TOPPERS/JSP rel 1.3] ---
Program failed in its process by following reason.
  Error : [Standard Input:9] Unterminated string literal appeared.

make: *** [kernel_cfg.c] エラー 1

以上のような状態です。何卒よろしくお願いいたします。

---------------------------
桑折知幸 (株)回線媒体研究所
URL: www.lmr.jp
---------------------------