compiling SPEC suite using f95


I'm trying to compile to SPEC CPU2000 suite to LLVM bytecode, using the llvm-test harness.
I have tried this using:
- both the 1.7 and 1.8 releases, without succes (and running into the same problems in both releases)
- both the gcc3 and gcc4 frontends
I'm working on Linux/x86.

LLVM is configured using:
./configure --prefix=/path/to/bin/dir

and compiled using

gmake; gmake install

Subsequently, llvm-test (which resides in llvm/TestSuite/llvm-test), is configured using:

./configure --with-spec2000=/work/SPEC_CPU2000_1.3_src --without-f2c --with-f95-bin=/work/NAG_f95/bin --with-f95-lib=/work/NAG_f95/lib --with-f95-inc=/work/NAG_f95/lib

When running 'make VERBOSE=1' in llvm-test/External/SPEC, I get the following output:

if [ ! -f CFP2000/Makefile ]; \
then \
        /work/LLVM/1.7/llvm/autoconf/mkinstalldirs CFP2000; \
        cp /work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000/Makefile CFP2000/Makefile; \
fi; \
make -C CFP2000 all
make[1]: Entering directory `/home/kehoste/work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000'
if [ ! -f 177.mesa/Makefile ]; \
then \
        /work/LLVM/1.7/llvm/autoconf/mkinstalldirs 177.mesa; \
        cp /work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000/177.mesa/Makefile 177.mesa/Makefile; \
fi; \
make -C 177.mesa all -w
cp: cannot stat `/work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000/177.mesa/Makefile': No such file or directory
make[2]: Entering directory `/home/kehoste/work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000/177.mesa'
make[2]: *** No rule to make target `all'. Stop.
make[2]: Leaving directory `/home/kehoste/work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000/177.mesa'
make[1]: *** [177.mesa/.makeall] Error 2
make[1]: Leaving directory `/home/kehoste/work/LLVM/1.7/llvm/TestSuite/llvm-test/External/SPEC/CFP2000'
make: *** [CFP2000/.makeall] Error 2

Any comments are welcome. I found a similar problem on the list (,
but the guidelines given there don't seem to solve my problem.

Hope someone can help me,


I managed to solve this problem myself.... The problem was not correctly specifiying the SPEC CPU2000 source directory. configure says the dir was found, but that doesn't mean the sources will be found.
For future reference:

When you get the error:

make[2]: *** No rule to make target `Output/accum.rbc', needed by `Output/177.mesa.linked.rbc'. Stop.

You've probably configured using


What you should do is:


Maybe the configure script could be aware of this?



Please file a bug for this.


Done. (my first one!)