编译tools
拷贝tools到安装目录
cp /mnt/iso/tools /opt/speccpu2006/ -r
执行编译
su root
cd /opt/speccpu2006/tools/src
sh -x buildtools
错误
undefined reference to `__alloca'
编辑./make-3.82/glob/glob.c,注释掉以下宏判断
you should not run configure as root
声明环境变量,重新执行
export FORCE_UNSAFE_CONFIGURE=1
sh -x buildtools
./stdio.h:459:1: error: 'gets' undeclared here (not in a function); did you mean 'fgets'?
修改 gnu/stdio.in.h 注释掉以下代码
注释掉:_GL_WARN_ON_USE这行
同样的方法,注释掉/opt/speccpu2006/tools/src/specsum/gnulib/stdio.in.h 162行
undefined reference to `cos' undefined reference to `sin'
修改 buildtools 358行,ldflags添加-lm连接参数
Hey! Some of the Perl tests failed! If you think this is okay, enter y now:
buildtools 362行,直接注释掉perl测试动作,下面写个true
!!! error running TimeDate-1.20 test suit
注释buildtools 425行
编译成功
自动安装到/opt/speccpu2006/bin目录下