安裝SpecCPU2006 on Linux of CentOS6.3, gcc4.4.7
由於在tools/bin目錄中只有ia64-linux,所以在直接運行./install.sh腳本時,系統會提示直接重新安裝tools工具集。該過程如1.1.1 所示。另外一個做法就是指定可用的現成的工具集,例如linux-suse101-AMD64,首先在CPU2006/tools/bk_bin目錄中選擇合適的工具集並拷貝到CPU2006/tools/bin目錄中,(當前以 linux-suse101-AMD64為例)然后按照命令./install.sh -u linux-suse101-AMD64 進行安裝即可,具體過程如1.1.2 所示。
1.1.1 Install tools set.
操作系統是centOS6.3, 內核版本是3.1.10,gcc版本是4.4.7,在安裝過程中出現了一些錯誤,目前只將部分錯誤解決了,尚未最終安裝成功。
1) error in make tool/perl
The following patch will fix it (as will just deleting the offending
lines, as you've probably already discovered.) This patch already part of
the current development release, but hasn't yet been folded back into the
maintenance track.
--- perl-5.8.x/makedepend.SH 2006-06-13 15:31:22.000000000 -0400
+++ perl-5.8.x-andy/makedepend.SH 2006-07-25 14:45:11.000000000 -0400
@@ -167,6 +167,7 @@
-e '/^#.*<builtin>/d' \
-e '/^#.*<built-in>/d' \
-e '/^#.*<command line>/d' \
+ -e '/^#.*<command-line>/d' \
-e '/^#.*"-"/d' \
-e '/: file path prefix .* never used$/d' \
-e 's#\.[0-9][0-9]*\.c#'"$file.c#" \
--
Andy Dougherty doughera@lafayette.edu
https://rt.perl.org/Public/Bug/Display.html?id=40675
2) error in CPU2006/tools/src/specmd5sum
注釋掉md5sum.c 的line38即可。
3) error in 安裝 perl-5.8.7
undefined reference to `pow'
在perl源代碼目錄下的Makefile中添加-lm選項即可。
4) error in too/perl
SysV.xs:7:25: error: asm/page.h: No such file or directory
解決方法: /home/lxj/CPU2006/tools/src/perl-5.8.7/ext/IPC/SysV/SysV.xs 打開對應注釋即可:
include <asm/page.h>
http://www.voidcn.com/article/p-zmwyzrhx-ye.html
5)配置tools/buildtool 腳本
在安裝perl時,需要用到數學庫,所以在CPU2006/tools/src/buildtools文件Configure配置中添加該選項:
./Configure -Dcc="gcc -lm"
6)安裝 libwww-perl-5.803出錯
在該暗轉該過程中會用到已經安裝的perl-5.8.7,在用該perl編譯該庫時出錯。
1.1.2 指定工具集
1) cd CPU2006/tools/bk_bin;
2) cp linux-suse101-AMD64 ../bin/ -rf
3) ./install.sh -u linux-suse101-AMD64
4) sh shrc