Sniper Make error

556 views
Skip to first unread message

Anurag Sharma

unread,
Sep 8, 2014, 2:55:50 AM9/8/14
to snip...@googlegroups.com

i am new to sniper

i have followed procedure given at http://snipersim.org
i had these errors




[root@localhost sniper]# make
[CXX   ] common/trace_frontend/trace_thread.o
/home/anu/sniper/common/trace_frontend/trace_thread.cc: In member function ‘Instruction* TraceThread::decode(Sift::Instruction&)’:
/home/anu/sniper/common/trace_frontend/trace_thread.cc:357: error: ‘xed_format’ was not declared in this scope
make[1]: *** [/home/anu/sniper/common/trace_frontend/trace_thread.o] Error 1
make: *** [/home/anu/sniper/lib/libcarbon_sim.a] Error 2


Trevor E. Carlson

unread,
Sep 8, 2014, 3:06:08 AM9/8/14
to snip...@googlegroups.com, Anurag Sharma
Anurag,

Thanks for reporting this problem. It turns out that with newer Pin versions (starting with 2.14 67254) the Xed decoder API has changed in an incompatible way. Additionally, Pinplay version 1.4 (based on 2.14 67254) also has this issue, in addition to another issue where the Makefiles need to be updated to include additional libraries.

I am including both patches in this email. If you run into any problems, please tell us!

Trevor

xed_format_fix_pin_67254.patch
sniper-pinplay-controller-67254.patch
Message has been deleted

Anurag Sharma

unread,
Sep 8, 2014, 4:00:12 AM9/8/14
to snip...@googlegroups.com
thanks alot
its working.........

Anurag Sharma

unread,
Sep 8, 2014, 4:05:18 AM9/8/14
to snip...@googlegroups.com
when i made test run i got these error

make run
cc fft.o -lm -static -L/home/anu/sniper-6.0/lib -pthread -m32 -o fft
/usr/bin/ld: cannot find -lm
collect2: ld returned 1 exit status


On Monday, September 8, 2014 12:25:50 PM UTC+5:30, Anurag Sharma wrote:

Trevor E. Carlson

unread,
Sep 8, 2014, 5:03:27 AM9/8/14
to snip...@googlegroups.com, Anurag Sharma
Anurag,

Try removing the “-static” option from the command line. Compiling static binaries are no longer supported on some RedHat derivatives like Fedora, etc.

Originally, Sniper required static binaries (a requirement from Graphite), but later on we removed this requirement. Static compilation isn’t required, but does produce binaries that do not change with system libraries (which could be beneficial depending on your situation).

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.

Anurag Sharma

unread,
Sep 9, 2014, 2:57:29 AM9/9/14
to snip...@googlegroups.com
i have tried to remove static but i am getting same error
 please help me out


On Monday, September 8, 2014 12:25:50 PM UTC+5:30, Anurag Sharma wrote:

Zois T

unread,
Oct 13, 2014, 6:26:59 PM10/13/14
to snip...@googlegroups.com, anusha...@gmail.com
      Hi,

   I have the same problem as the topic starter, can you please tell me what to do with the patch files?

      Thanks in advance,
                          Zois

Anurag Sharma

unread,
Oct 15, 2014, 7:16:55 AM10/15/14
to snip...@googlegroups.com, anusha...@gmail.com

Shruti

unread,
Nov 8, 2014, 5:42:32 AM11/8/14
to snip...@googlegroups.com
Hello,
even I am facing the same issue. I wanted to know to which files do we need to apply the patch?

Tsien

unread,
Nov 8, 2014, 12:19:23 PM11/8/14
to snip...@googlegroups.com
I believe an old version of PIN file may be OK, besides in past posts there are two patch files would help too.
Just my experience.
Reply all
Reply to author
Forward
0 new messages