(toppers-users 690) Re:GNU 開発環境構築について

Kobayashi Hiroaki h-kobayashi @ pie-soft.co.jp
2002年 12月 24日 (火) 09:53:28 JST


小林です。

GCCのmakeでエラーが出た時の、環境構築手順を以下に記します。

○スーパーユーザーへ切り替える
su
○パスの追加
export PATH=/home/kobayashi/h8/bin:${PATH}
○ファイルの解凍
cd /home/kobayashi/src
tar zxf binutils-2.13.tar.gz
tar zxf gcc-3.2.tar.gz
tar zxf newlib-1.10.0.tar.gz
tar zxf gdb-5.2.1.tar.gz
○BINUTILSのインストール
cd /home/kobayashi/src/binutils-2.13
mkdir work
cd work
../configure --target=h8300-hms --prefix=/home/kobayashi/h8 --disable-nls
make
make install
○ファイルをコピーする
cp /home/kobayashi/src/binutils-2.13/include/ansidecl.h /home/kobayashi/h8/h8300-hms/bfd/
cp /home/kobayashi/src/binutils-2.13/include/libiberty.h /home/kobayashi/h8/h8300-hms/bfd/
cp /home/kobayashi/src/binutils-2.13/work/bfd/bfd.h /home/kobayashi/h8/h8300-hms/bfd/
cp /home/kobayashi/src/binutils-2.13/work/bfd/libbfd.a /home/kobayashi/h8/h8300-hms/bfd/
cp /home/kobayashi/src/binutils-2.13/work/libiberty/libiberty.a /home/kobayashi/h8/h8300-hms/bfd/
○GCCのインストール
cd /home/kobayashi/src/gccc-3.2
mkdir work
cd work
../configure --target=h8300-hms --prefix=/home/kobayashi/h8
--with-gnu-as --with-gnu-ld --with-newlib
--with-headers=/home/kobayashi/src/newlib-1.10.0/newlib/libc/include
make
−エラー発生−

以上です。間違っている個所がありましたら教えてください。
宜しくお願い致します。