【问题标题】:Upgrading GCC from 2.9x从 2.9x 升级 GCC
【发布时间】:2011-07-24 07:58:02
【问题描述】:

我一直在尝试在我的 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 在谷歌中返回零,这是不寻常的。 或者是否有一些我错过的升级 gcc 的特定内容。

【问题讨论】:

    标签: linux gcc gcc3


    【解决方案1】:

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

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

    看起来这里需要一些重要的移植工作。

    【讨论】:

    • 我将其视为内核开发,但我开始认为是这种情况。
    猜你喜欢
    • 2018-04-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-25
    • 1970-01-01
    相关资源
    最近更新 更多