(toppers-users 2832) Re: サンプルプログラムの構築

h-fukuda @ progresstech.jp h-fukuda @ progresstech.jp
2008年 11月 14日 (金) 13:33:59 JST


皆様お疲れ様です、福田です。返答遅くなって申し訳ありません


もなかさん 木田さん アドバイスありがとうございます。


早速docのgnu_install.txtを頼りにgccの再インストールを試みたのですが、gcc
のmakeで以下のようなエラーが出てしまいました。

<省略>
../../../gcc/ch/decl.c: In function `start_struct':
../../../gcc/ch/decl.c:4451: error: argument "code" doesn't match protot
ype
../../../gcc/ch/ch-tree.h:736: error: prototype declaration
make[2]: *** [decl.o] Error 1
make[2]: Leaving directory `/temp2/gcc-2.95.3/objdir/gcc/ch'
make[1]: *** [cc1chill.exe] Error 2
make[1]: Leaving directory `/temp2/gcc-2.95.3/objdir/gcc'
make: *** [all-gcc] Error 2

過去の事例をもとにパスを通したりもしてみましたが何度やってもエラーが消え
ません。
何かお気づきの点ありましたらご教授お願いします。



ちなみにインスト-ルしたのは
binutils-1.16.1
gcc-2.95.3
newlib なし(ネットから落とせなかったため)


configureは

解凍したbinutils-1.16.1の中にobjdirを作成しその中で
../configure --target=h8300-hms --prefix=/usr/local --disable-nlstils

gccも同様にして
../configure --target=h8300-hms --prefix=/usr/local --with-gnu-as --with
-gnu-ld
で行いました。

よろしくお願いします。