compiling SPEC suite using f95

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

compiling SPEC suite using f95

Kenneth Hoste
Hello,

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  
(http://article.gmane.org/gmane.comp.compilers.llvm.devel/2731/ 
match=compiling+spec),
but the guidelines given there don't seem to solve my problem.

Hope someone can help me,

Kenneth

--

Statistics are like a bikini. What they reveal is suggestive, but  
what they conceal is vital (Aaron Levenstein)

Kenneth Hoste
ELIS - Ghent University
[hidden email]
http://www.elis.ugent.be/~kehoste


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: compiling SPEC suite using f95

Kenneth Hoste
>
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

--with-spec2000=/dir/to/spec/sources

What you should do is:

--with-spec2000=/dir/to/spec/sources/benchspec

Maybe the configure script could be aware of this?

greetings,

Kenneth

--

Statistics are like a bikini. What they reveal is suggestive, but  
what they conceal is vital (Aaron Levenstein)

Kenneth Hoste
ELIS - Ghent University
[hidden email]
http://www.elis.ugent.be/~kehoste


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: compiling SPEC suite using f95

Tanya Lattner-2

Please file a bug for this.

Thanks,
Tanya

On Wed, 9 Aug 2006, Kenneth Hoste wrote:

>>
> 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
>
> --with-spec2000=/dir/to/spec/sources
>
> What you should do is:
>
> --with-spec2000=/dir/to/spec/sources/benchspec
>
> Maybe the configure script could be aware of this?
>
> greetings,
>
> Kenneth
>
>
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: compiling SPEC suite using f95

Kenneth Hoste

On 09 Aug 2006, at 19:04, Tanya M. Lattner wrote:

>
> Please file a bug for this.
>
> Thanks,
> Tanya
>

Done. (my first one!)

http://llvm.org/bugs/show_bug.cgi?id=875

greetings,

Kenneth

--  
Statistics are like a bikini. What they reveal is suggestive, but  
what they conceal is vital (Aaron Levenstein)

Kenneth Hoste
ELIS - Ghent University
[hidden email]
http://www.elis.ugent.be/~kehoste


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev