将GCC从2.9倍升级

时间:2011-07-24 07:58:03

标签: linux gcc gcc3

我一直在尝试在我的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

这编译了大约一个小时,然后给出了一个错误,部分原因。

> /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,我知道在配置过程中遇到错误。

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在google中返回零,这是不寻常的。 或者是否有一些特定的升级gcc我错过了。

1 个答案:

答案 0 :(得分:1)

来自http://www.linux-mips.org/wiki/PS2

  

PS2Dev的一些人已经将GCC 3.2.2和Binutils 2.14移植到了   Playstation 2,但不是为了运行Linux而开发的(只有静态ELF)。

这里看起来需要一些非平凡的移植工作。