snipersim make error

1,165 views
Skip to first unread message

meet...@gmail.com

unread,
Dec 17, 2013, 5:44:40 PM12/17/13
to snip...@googlegroups.com

Hi All,

I am new to using snipersim. I have followed the instructions on the Getting started page. 

1. Cloned sniper git
2. Downloaded pin kit for linux version 61206 and extracted into a new sniper/pin_kit/ folder
3. Did sniper make distclean && make -> Make is successful (This is for target intel64, i didnt change the target_arch)
4. But when I am trying to make and run the test fft benchmark, I get the following error :- 

cc -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -I/home/rp/sniper/sniper/include   intel64 -c -o fft.o fft.c
cc: error: intel64: No such file or directory
make: *** [fft.o] Error 1

I am using gcc v 4.6.3 and my os is Ubuntu 12.04.3. What might be causing this error? Any help is appreciated.

Thanks,
Reena

meet...@gmail.com

unread,
Dec 17, 2013, 10:58:07 PM12/17/13
to snip...@googlegroups.com
Okay, that error was because I was not setting the SNIPER_ROOT variable. So, I am able to get past that error. Now I am running into another fail as follows :- 

sniper/test/fft$ make run
cc -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -I/home/rp/sniper/include    -c -o fft.o fft.c
fft.c: In function ‘main’:
fft.c:361:93: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
cc fft.o -lm -Lhome/rp/sniper/sniper/lib -pthread  -o fft
../../run-sniper -n 2 -c gainestown --roi --viz --viz-aso -- ./fft -p 2
[SNIPER] Start
Executing Python script home/rp/sniper/sniper/test/fft/sim.scripts.py
[SNIPER] --------------------------------------------------------------------------------
[SNIPER] Sniper using Pin frontend
[SNIPER] Running pre-ROI region in  CACHE_ONLY mode
[SNIPER] Running application ROI in DETAILED mode
[SNIPER] Running post-ROI region in FAST_FORWARD mode
[SNIPER] --------------------------------------------------------------------------------
A:Source/pin/pin/image.cpp:RTN_Name:RTN_Name:1699: assertion failed: RTN_Valid(x)

################################################################################
## STACK TRACE
################################################################################
addr2line -C -f -e "home/rp/sniper/sniper/lib/pin_sim" 0x2b77f73df0b9 0x2b77f73dfc50 0x2b77f7481220 0x2b77f71c7880 0x2b77f71c7bba 0x2b77f71c5ea2 0x2b77f749daf2 0x030635d61 0x030680633 0x03062ec66 0x03062fe61 0x030630c0b 0x0306cec20 0x0306b5d3e 0x030757dd0
addr2line: 'home/rp/sniper/sniper/lib/pin_sim': No such file
FAILED TO GET STACK TRACE
Pin 2.13
Copyright (c) 2003-2013, Intel Corporation. All rights reserved.
@CHARM-VERSION: $Rev: 61147 $
@CHARM-BUILDER: BUILDER
@CHARM-COMPILER: gcc 4.4.7
@CHARM-TARGET: ia32e
@CHARM-CFLAGS:  __OPTIMIZE__=1  __NO_INLINE__=__NO_INLINE__
Pin app terminated abnormally due to signal 6.
[SNIPER] End
[SNIPER] Elapsed time: 8.82 seconds
[SNIPER] Generating visualization in viz/
Traceback (most recent call last):
  File "home/rp/sniper/sniper/tools/viz/viz.py", line 87, in <module>
    defaultinterval = snapshots[1] - snapshots[0]
IndexError: list index out of range
make: *** [run_fft] Error 134


Any ideas what I can do to solve this issue?

Thanks!

Sergio Rivas

unread,
Dec 18, 2013, 10:25:39 AM12/18/13
to snip...@googlegroups.com

Hey there,

Have you noticed this line?:


addr2line: 'home/rp/sniper/sniper/lib/pin_sim': No such file

I don't know if that's exactly your problem, but it may help you.

Sergio.

meet...@gmail.com

unread,
Dec 18, 2013, 11:39:21 AM12/18/13
to snip...@googlegroups.com
Hi Sergio,

Thanks for your reply. 

Actually there is this another issue also "A:Source/pin/pin/image.cpp:RTN_Name:RTN_Name:1699: assertion failed: RTN_Valid(x)"
This is coming from pin. But I am running the default fft test, no modifications. So, I am not sure why I am running into this assertion fail. Any ideas on this?

Also, I checked in the sniper/lib/ directory and there is a file called "pin_sim.so". Which files generate the STACK trace? I checked the tools/addr2line.py script, it seems that it should point to the pin_sim.so file. 

Any help would be appreciated.

Thanks,
Reena

Sergio Rivas

unread,
Dec 18, 2013, 12:04:35 PM12/18/13
to snip...@googlegroups.com

Well, I've just started with this simulator and I'm afraid I can't help you with this. But I have tested the fft test sample and it works for me :S.

I followed these easy steps:

http://snipersim.org/w/Getting_Started

Anyway, I read somewhere that the GRAPHITE_ROOT environment variable must be set to the Sniper folder (but I think this is only for the benchmark suite).

Sergio.

meet...@gmail.com

unread,
Dec 18, 2013, 12:04:40 PM12/18/13
to snip...@googlegroups.com
Also, if I change the test/fft/Makefile's run command (removed the --viz and --viz-aso options), the test passes and sim.out etc files get generated. 

What do these options --viz n viz-aso correspond to and how can they be related to the pin RTN assertion fail?

Thanks,
Reena

Sergio Rivas

unread,
Dec 18, 2013, 1:17:05 PM12/18/13
to snip...@googlegroups.com

Those parameters are defined to generate visualizations of the software running within the simulator (check page 17, section 7.4 of the Sniper manual). I guess some kind of incompatibility with the 3D generator could be the problem, have you tried to generate these files after the simulation?

Read the cited page of the manual, it may help you find where is the issue.

Sergio.



--
--
--
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 a topic in the Google Groups "Sniper simulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snipersim/HrscRajY7_U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snipersim+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

meet...@gmail.com

unread,
Dec 18, 2013, 3:25:27 PM12/18/13
to snip...@googlegroups.com
Thanks for your help Sergio!

The problem is actually caused by the --viz-aso run argument. If I just use --viz, the test run finishes and a viz/ folder is also created. But it fails if I use --viz --viz-aso. What is the use of the --viz-aso argument (I read on the main web page that its support was added from sniper 5.1 onwards). I have python 2.7.3. Do I need to do any additional linking/set path to use --viz-aso?

Any help is appreciated.

Sergio Rivas

unread,
Dec 18, 2013, 5:05:23 PM12/18/13
to snip...@googlegroups.com

Oh, that's something I don't really know, sorry :(. Let's wait for the official support team, they may give you a better support.

Sergio.

Wim Heirman

unread,
Dec 19, 2013, 3:35:41 AM12/19/13
to snip...@googlegroups.com
Hi Reena,

The --viz-aso switch is for an experimental feature called "Suggestions for Optimization", it analyzes the application on a per-function basis and then suggests improvements to speed up your program. But it looks like it needs some more testing ;-)

You can safely leave this switch off. I've also been able to reproduce the error you're seeing so we'll make sure to fix this in the next release of Sniper.

Regards,
Wim




--
--
--
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.

meet...@gmail.com

unread,
Dec 19, 2013, 1:23:16 PM12/19/13
to snip...@googlegroups.com
Thanks for your response Wim!

yinnon...@gmail.com

unread,
Dec 21, 2013, 3:26:42 AM12/21/13
to snip...@googlegroups.com
Hi,
if you still having trouble with installation - try this (attached).

Yinnon.
How to Install Sniper on Ubuntu VM.pdf

Pei Songwen

unread,
Jan 1, 2014, 1:54:34 AM1/1/14
to snip...@googlegroups.com
Hi Yinnon,

I am writing to ask for your help to fix the error while making Sniper.

I firstly failed to install the Sniper according to the guider on the website and tried to install it again according to the steps of the attached file.
But, I failed to make it as well.

After I make it, I got the following error logs as below.
=============
In file included from /usr/include/c++/4.8/random:50:0,
                 from /usr/include/c++/4.8/bits/stl_algo.h:65,
                 from /usr/include/c++/4.8/algorithm:62,
                 from /usr/include/boost/optional/optional.hpp:19,
                 from /usr/include/boost/optional.hpp:15,
                 from /usr/include/boost/spirit/home/classic/core/match.hpp:15,
                 from /usr/include/boost/spirit/home/classic/core.hpp:28,
                 from /usr/include/boost/spirit/include/classic_core.hpp:11,
                 from /home/songwen/Sniper/common/config/config_file_grammar.hpp:16,
                 from /home/songwen/Sniper/common/config/config_file.hpp:25,
                 from /home/songwen/Sniper/common/user/sync_api.cc:7:
/usr/include/c++/4.8/bits/random.h:106:26: error: expected unqualified-id before ‘__int128’
       { typedef unsigned __int128 type; };
                          ^
make[1]: *** [/home/songwen/Sniper/common/user/sync_api.o] Error 1
make: *** [/home/songwen/Sniper/lib/libcarbon_sim.a] Error 2
================
In my opinion, it seems that there is no grammar error for the definition of __int128.
I have install all the dependence files according to the attached file.

What' s the problem? 
BTW: Happy New Year!

B.R.
Songwen Pei

Ierum Shanaya

unread,
Jul 31, 2014, 6:32:26 AM7/31/14
to snip...@googlegroups.com
Hi,

I have followed the exact steps you have mentioned in your post, and also set the SNIPER_ROOT variable to
echo $SNIPER_ROOT
/home/ierumshanaya/sniper-5.3

But still i am getting the error:

ierumshanaya@ubuntu:~/sniper-5.3/test/fft$ make run
cc -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -I/home/ierumshanaya/sniper-5.3/include   intel64 -c -o fft.o fft.c

cc: error: intel64: No such file or directory
make: *** [fft.o] Error 1

steps followed:

1. Cloned sniper git
2. Downloaded pin kit for linux version 61206 and extracted into a new sniper/pin_kit/ folder
3. Did sniper make distclean && make -> Make is successful (This is for target intel64, i didnt change the target_arch)

Ubuntu version is 12.04.2

Any help would be highly appreciated.

Thanks,
Ierum

yinnonmeshi .

unread,
Aug 8, 2014, 4:33:33 PM8/8/14
to snip...@googlegroups.com
hi,
i wrote an updated version. compatible to sniper 6.0.
it worked for me, please see if it works for you.

Yinnon.


--
--
--
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 a topic in the Google Groups "Sniper simulator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/snipersim/HrscRajY7_U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to snipersim+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

install_sniper 6.0.pdf
Reply all
Reply to author
Forward
0 new messages