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

Kobayashi Hiroaki h-kobayashi @ pie-soft.co.jp
2003年 1月 6日 (月) 15:04:32 JST


小林です。

Windows2000+Cygwin上でも、GCCのmakeでエラーが出てしまいます。
環境構築手順を以下に記します。

■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
 Cygwin( Cygwin編 )
	・Windows2000
	・Cygwin1.3.18-1
	・BINUTILS Ver2.13
	・GCC-CORE Ver3.2.1
	・GDB Ver5.2.1
	・NEWLIB Ver1.10.0
	・TOOPERS/JSP Ver1.3
■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■
○パスの追加
export PATH=/usr/local/h8/bin:${PATH}
○ファイルの解凍
cd /usr/local/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 /usr/local/src/binutils-2.13
mkdir work
cd work
../configure --target=h8300-hms --prefix=/usr/local/h8300-hms \
--disable-nls
make
make install
○ファイルをコピーする
mkdir /usr/local/h8300-hms/h8300-hms/bfd
cp /usr/local/src/binutils-2.13/include/ansidecl.h /usr/local/h8300-hms/h8300-hms/bfd/
cp /usr/local/src/binutils-2.13/include/libiberty.h /usr/local/h8300-hms/h8300-hms/bfd/
cp /usr/local/src/binutils-2.13/work/bfd/bfd.h /usr/local/h8300-hms/h8300-hms/bfd/
cp /usr/local/src/binutils-2.13/work/bfd/libbfd.a /usr/local/h8300-hms/h8300-hms/bfd/
cp /usr/local/src/binutils-2.13/work/libiberty/libiberty.a /usr/local/h8300-hms/h8300-hms/bfd/
○GCCのインスト−ル
cd /usr/local/src/gcc-3.2
mkdir work
cd work
../configure --target=h8300-hms --prefix=/usr/local/h8300-hms \
--with-gnu-as --with-gnu-ld --with-newlib \
--with-headers=/usr/local/src/newlib-1.10.0/newlib/libc/include
make
▼ エラー発生 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
make[2]: *** [libgcc.a] Error 255
make[2]: Leaving directory `/usr/local/src/gcc-3.2/work/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/usr/local/src/gcc-3.2/work/gcc'
make: *** [all-gcc] Error 2
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲

○環境状態確認
cd /usr/local/src/gcc-3.2/work/gcc
./xgcc -print-prog-name=as
▼ 実行結果 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
/usr/local/h8300-hms/lib/gcc-lib/h8300-hms/3.2/../../../../h8300-hms/bin/as.exe
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲
/usr/local/h8300-hms/lib/gcc-lib/h8300-hms/3.2/../../../../h8300-hms/bin/as --version
▼ 実行結果 ▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼▼
GNU assembler 2.13
Copyright 2002 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
This assembler was configured for a target of `h8300-hms'.
▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲▲

アドバイス宜しくお願い致します。