Hello, 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 : -------------------------------------------------------------------- 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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050530/03eff66f/attachment.html>
Its a bit hard to say given the information you've provided, but I can pass on what I know. The error you're getting is coming from the LLVM system library when its trying to mmap the bytecode file to read it. The file can't be read. Possible problems are: permissions, the file doesn't exist (wasn't created), or a low level disk error. Some of the SPEC benchmarks (INT2000,INT95, CFP95) have been compiled with LLVM. The test results can be found here: http://llvm.cs.uiuc.edu/testresults/X86/ about mid-way through the page under the "Programs/External" heading. Some questions for you: Are you using llvm-test to compile SPEC? Did you read http://llvm.cs.uiuc.edu/docs/TestingGuide.html? Which SPEC benchmark are you compiling? Reid. On Mon, 2005-05-30 at 23:57 -0700, Tanu Sharma wrote:> Hello, > > 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 : > > -------------------------------------------------------------------- > > 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. > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050531/4e40a076/attachment.sig>
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/
I would try that ..Thanks Another thing that I want to do is to randomize functions within a program (or file ), whatever is easier to do in llvm .Also please tell me how can I randomize global variables ? 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! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050602/423f3bac/attachment.html>
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 > ---------------------------------------------------------------------------------------------- Also please tell me how to test only SPEC benchmark with llvm-test , else it takes a long time to enter SPEC. Am I missing something somewhere?I tried a lot but still failure !! Please help me find my way out. 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! -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20050613/4b86283b/attachment.html>