如何去build GCC 4.5.1 for OpenRISC version 1.0 release candidate 1
首先要確認library中有 GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
先下載gcc-4.5.1-or32-1.0rc1.tar.bz2
然後解壓縮
進入目錄後使用./configure
可以確認各種狀況
GNU Multiple Precision Library (GMP) version 4.3.2 (or later)
Necessary to build GCC. If you do not have it installed in your library search path, you will have to configure with the --with-gmp configure option. See also --with-gmp-lib and --with-gmp-include. Alternatively, if a GMP source distribution is found in a subdirectory of your GCC sources named gmp, it will be built together with GCC.
MPFR Library version 2.4.2 (or later)
Necessary to build GCC. It can be downloaded from http://www.mpfr.org/. The --with-mpfr configure option should be used if your MPFR Library is not installed in your default library search path. See also --with-mpfr-lib and --with-mpfr-include. Alternatively, if a MPFR source distribution is found in a subdirectory of your GCC sources named mpfr, it will be built together with GCC.
MPC Library version 0.8.1 (or later)
Necessary to build GCC. It can be downloaded from http://www.multiprecision.org/. The --with-mpc configure option should be used if your MPC Library is not installed in your default library search path. See also --with-mpc-lib and --with-mpc-include. Alternatively, if an MPC source distribution is found in a subdirectory of your GCC sources named mpc, it will be built together with GCC.
其實還需要升級GLIBCXX 到 3.4.9
請參考另一篇文章
所有的library都完成升級後
configure才會過
這樣就可以完成使用make來作build的工作了
make
make check (如果有錯,可忽略)
沒有留言:
張貼留言