Building the SPEC 2000 Tools
SPEC uses tools like specmake and specperl to drive the build and test process. We run everything natively and need to build these tools for ARM.
The tools are a bit old. This page has notes past http://www.spec.org/cpu2000/docs/tools_build.txt on building under current Ubuntu.
buildtools uses environment variables to control what is built:
SKIPCLEAN=1 to skip the initial clean
SKIPALL=1 to disable all builds, then DOPERL=1 and similar to enable single tools
Ensure /bin/sh is bash. Dash won't work.
Perl needs libm to fix errors like:
cc -L/home/cbuild/tools/output/lib -L/usr/local/lib -o miniperl \ miniperlmain.o opmini.o libperl.a libperl.a(pp.o): In function `Perl_pp_pow': pp.c:(.text+0x1ba0): undefined reference to `pow'
Set via export PERLFLAGS="-A libs=-lm -A libs=-ldl"
Perl fails with a missing asm/page.h. Hack ext/IPC/SysV/SysV.xs, remove the #include <asm/page.h> and change for #define PAGE_SIZE 4096.
MichaelHope/Sandbox/BuildingSPECTools (last modified 2012-05-21 06:31:17)