[LLVMdev] Compiling SPEC

John Criswell criswell at cs.uiuc.edu
Mon Jun 13 08:56:25 CDT 2005


Tanu Sharma wrote:
> Hello,
> 
> I have been trying to compile spec benchmark with llvm.I am trying the 2 
> methods suggested but have not succeeded yet .
> 
> 1) Setting the flags -Wl,-native-cbe or -Wl,-native flags to llvm-gcc.
> 
> This results in successful compilation with llvm BUT it doesn't create 
> *.bc* files (?)which I need for my experimentation.Any other significant 
> modification/addition missing ??
> 
> 2) Using llvm-test :
> 
> I get this error after a long time when it enters into Spec directory.
> 
> -----------------------------------------------------------------------------------------------
> 
> `/home/tsharma/llvm-cvs/llvm/projects/llvm-test/External/SPEC/CFP2000' > 
> gmake[4]: Entering directory >
> 
> `/home/tsharma/llvm-cvs/llvm/projects/llvm-test/External/SPEC/CFP2000/177.mesa' 
>  > gmake[4]: *** No rule to make target `Output/accum.rbc', needed by > 
> `Output/177.mesa.linked.rbc'. Stop. > gmake[4]: Leaving directory >
> 
> ----------------------------------------------------------------------------------------------
> 

I'm not sure why you got this error with SPEC.  I'd suggest that you 
make sure that:

1. You configured the LLVM source and LLVM object tree directories 
correctly (i.e. the --with-llvmsrc and --with-llvmobj options to the 
llvm-test configure script).

2. You correctly configured the location of SPEC with the 
--enable-spec2000 option to the llvm-test configure script.

3. That you are running the tests in your object tree, not your source 
tree (if your source tree and object trees are different).

All of these directories are recorded in various Makefiles in llvm-test, 
so they should be pretty easily to find.  I think all of them are in 
llvm-test/Makefile.config.

> Also please tell me how to test only SPEC benchmark with llvm-test , 
> else it takes a long time to enter SPEC.

Simply cd into External/SPEC inside your object tree and type make.

> 
> Am I missing something somewhere?I tried a lot but still failure !! 
> Please help me find my way out.

Personally, I would use the llvm-test harness as it's the easiest to use 
to use if all you want is timing information and LLVM statistics. 
However, you have to make sure everything is configured correctly; 
otherwise, it just won't work.

I would check the three things I listed above (as it looks like a 
configuration error).  If that doesn't work, please email the list again 
and we'll take a closer look.

-- John T.

> 
> Appreciate you help.
> 
> Thanks
> 
> TS
> 
> 
> 
> */Chris Lattner <sabre at nondot.org>/* wrote:
> 
>     On Mon, 30 May 2005, Tanu Sharma wrote:
> 
>      > I have been trying to compile the SPEC benchmark but have failed
>     even
>      > after several attempts.The first error I get while trying to run is :
> 
>     There are two ways to do this:
> 
>     1. Use the llvm-test harness
>     2. Use the official spec harness with -Wl,-native-cbe or -Wl,-native
>     flags
>     to llvm-gcc.
> 
>     -Chris
> 
>      > --------------------------------------------------------------------
>      >
>      > Error loading program '../00000002/gzip_base.x86_linux.bc': Can't
>     open file: ../00000002/gzip_base.x86_linux.bc
>      >
>      >
>     -----------------------------------------------------------------------
>      >
>      >
>      >
>      > Has anyone tried doing this ?Could you please tell me the changes
>     required to compile it with llvm.
>      >
>      >
>      >
>      > Thanks
>      >
>      > TS
>      >
>      >
>      > ---------------------------------
>      > Yahoo! Mail Mobile
>      > Take Yahoo! Mail with you! Check email on your mobile phone.
> 
>     -Chris
> 
>     -- 
>     http://nondot.org/sabre/
>     http://llvm.cs.uiuc.edu/
> 
>     _______________________________________________
>     LLVM Developers mailing list
>     LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>     http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
> 
> ------------------------------------------------------------------------
> Discover Yahoo!
> Stay in touch with email, IM, photo sharing & more. Check it out! 
> <http://us.rd.yahoo.com/evt=32659/*http://discover.yahoo.com/stayintouch.html> 
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev


-- 
John T. Criswell
Research Programmer
University of Illinois at Urbana-Champaign
"It's today!" said Piglet. "My favorite day," said Pooh.



More information about the LLVMdev mailing list