Problem with Sniper installation

886 views
Skip to first unread message

Evelyn Tsai

unread,
Mar 20, 2015, 1:46:37 AM3/20/15
to snip...@googlegroups.com
Hello, I am new to use sniper.
I follow all the instructions provided by PinPoints tutorials - ISCA2014PinPointsTutorialDemo .pdf.

Here are the following instructions:
tar –zxf pinplay-drdebug-2.1-pin-2.14-71313-gcc.4.4.7-linux.tar.gz 
export PIN_ROOT= /home/user/pinplay-drdebug-2.1-pin-2.14-71313-gcc.4.4.7-linux
cd $PIN_ROOT/extras/pinplay/examples
make
tar –zxf sniper-latest.tgz
export SNIPER_ROOT=/home/user/sniper-6.0/
cd $SNIPER_ROOT
ln –sf $PIN_ROOT pin_kit
make

However,some errors happen while i try to compile the sniper.

/home/user/sniper-6.0/sift/sift.h:12:27: fatal error: xed-interface.h: No such file or directory
compilation terminated.
make[1]: *** [/home/user/sniper-6.0/common/trace_frontend/trace_manager.o] Error 1
make: *** [/home/user/sniper-6.0/lib/libcarbon_sim.a] Error 2


Here is the installation version:
PINPLAY: pinplay-drdebug-2.1-pin-2.14-71313-gcc.4.4.7-linux.tar
SNIPER: sniper -6.0

Appreciate your response.
Best regards,
Evelyn

Trevor Carlson

unread,
Mar 20, 2015, 9:15:57 AM3/20/15
to snip...@googlegroups.com, Evelyn Tsai
Evelyn,

The main issue seems to be that they removed the XED libraries from the default include and library paths. In addition to that, it looks like they changed the API for the PIN_CallApplicationFunction function, which also causes a compilation issue.

Could you try the included patch to see if it fixes the issue of running Sniper with Pin 71313?

Trevor


--
--
--
You received this message because you are subscribed to the Google
Groups "Sniper simulator" group.
To post to this group, send email to snip...@googlegroups.com
To unsubscribe from this group, send email to
snipersim+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/snipersim?hl=en

---
You received this message because you are subscribed to the Google Groups "Sniper simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to snipersim+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

pin-71313-sniper-6.0-fix.patch

Evelyn Tsai

unread,
Mar 20, 2015, 11:07:17 AM3/20/15
to snip...@googlegroups.com
Trevor,

Thank you for your prompt reply.
I follow the context of the patch file and modify the correlated files.
However some other new errors happen while i try to compile sniper again.

/home/user/sniper-6.0/common/trace_frontend/trace_thread.cc: In member function âInstruction* TraceThread::decode(Sift::Instruction&)â:
/home/user/sniper-6.0/common/trace_frontend/trace_thread.cc:357:90: error: âxed_formatâ was not declared in this scope
make[1]: *** [/home/user/sniper-6.0/common/trace_frontend/trace_thread.o] Error 1
make: *** [/home/user/sniper-6.0/lib/libcarbon_sim.a] Error 2

Do I modify the files incorrectly?

Best Regards,
Evelyn

Trevor Carlson於 2015年3月20日星期五 UTC+8下午9時15分57秒寫道:

Wim Heirman

unread,
Mar 20, 2015, 11:32:55 AM3/20/15
to snip...@googlegroups.com
Evelyn,

The last patch only fixed the new issues in PinPlay 2.1, but you'll need a few older patches as well that fixed additional incompatibilities introduced by PinPlay 1.4. You can find them at https://groups.google.com/d/msg/snipersim/6zlnCu2ZsSA/84KTvSqcFO8J

In addition, if you're using gcc 4.9, you'll also need this patch: https://groups.google.com/d/msg/snipersim/eKIaaNaDg2Q/ONrQT1Ur2kIJ

Regards,
Wim

Evelyn Tsai

unread,
Mar 20, 2015, 2:17:45 PM3/20/15
to snip...@googlegroups.com
Wim and Trevor,

Thank you both for helping,

It works successfully after I modified the files according to the patch you mentioned.

Best Regards,
Evelyn



Wim Heirman於 2015年3月20日星期五 UTC+8下午11時32分55秒寫道:

Newton

unread,
Nov 16, 2016, 6:33:02 AM11/16/16
to Sniper simulator
Hello, i am trying to use pinplay and following the instruction in ISCA2014PinPointsTutorialDemo .pdf.
I have using Pinplay 1.2, sniper 6.1, gcc 4.8.5
I am getting compilation error in syscall_model.cc
PFA the screenshot also

[CXX   ] common/core/syscall_model.o
In file included from /usr/include/x86_64-linux-gnu/sys/syscall.h:31:0,
                 from /home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc:19:
/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc: In member function ‘bool SyscallMdl::runEnter(IntPtr, SyscallMdl::syscall_args_t&)’:
/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc:156:12: error: ‘__NR_pause’ was not declared in this scope
       case SYS_pause:
            ^
/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc:157:12: error: ‘__NR_select’ was not declared in this scope
       case SYS_select:
            ^
/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc:158:12: error: ‘__NR_poll’ was not declared in this scope
       case SYS_poll:
            ^
/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc: In member function ‘IntPtr SyscallMdl::runExit(IntPtr)’:
/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.cc:323:30: error: ‘__NR_pause’ was not declared in this scope
          m_syscall_number == SYS_pause ? SyncInstruction::PAUSE : SyncInstruction::SYSCALL));
                              ^
make[1]: *** [/home/newton/research/tools/pinpoints_sniper/sniper-6.1/common/core/syscall_model.o] Error 1
make: *** [/home/newton/research/tools/pinpoints_sniper/sniper-6.1/lib/libcarbon_sim.a] Error 2

Any help?

Thanks
Reply all
Reply to author
Forward
0 new messages