PS2 Linux マシン (mips) でコンパイラを 2.95.2 からアップグレードしようとしましたが、頭が爆発しそうです。Linux が得意だと主張するつもりはありません。
最初に行ったプロセスについて説明します。
gcc 3.3.1のダウンロード、構成、インストール
../gcc-3.3/configure --enable-shared --disable-checking --with-system-zlib --program-suffix=3 --with-gnu-ld --enable-threads=posix
これは約1時間コンパイルされ、その一部であるエラーが発生しました。
> /tmp/cc0GVsc4.s:1175: Error: Can not represent BFD_RELOC_32_PCREL relocation in this object file format
> /tmp/cc0GVsc4.s:1205: Error: Can not represent BFD_RELOC_32_PCREL relocation in this object file format
グーグルで調べた後、これは私のbinutilsのアップグレードが必要であることを示しているようです。
binutils 2.13.2ダウンロード インストール
このコンパイル/インストールは問題ありません。
gcc 3.3.1から gcc3 をコンパイルしようとすると、configure 中にエラーが発生することがわかっています。
as: unrecognized option `-mwarm-short-loop'
*** The command '/usr/bin/gcc -o conftest -O2 conftest.c' failed.
*** You must set the enviroment variable CC to a working compiler.
単純な helloworld.cpp プログラムでさえ、取得せずにコンパイルすることはできません
as: unrecognized option `-mwarm-short-loop'
問題が -mwarm-short-loop であるというアイデアは、グーグルでゼロを返しますが、これは珍しいことです。または、私が見逃した gcc のアップグレードに固有の何かがあります。