sniper compilation error

410 views
Skip to first unread message

Umair Khan

unread,
Jan 9, 2018, 2:05:33 AM1/9/18
to Sniper simulator
Hello,
I am new to sniper. I want to use this tool for my research work. I downloaded the latest version and when I run "make" command it gives the following error




umair@umair-Inspiron-3420:~/sniper$ make
[CXX   ] sift/recorder/emulation.o
In file included from /home/umair/sniper/sift/recorder/../../pin_kit/source/include/pin/pin.H:41:0,
                 from recorder_control.h:5,
                 from emulation.cc:2:
/home/umair/sniper/sift/recorder/../../pin_kit/source/include/pin/compiler_version_check2.H:102:2: error: #error The C++ ABI of your compiler does not match the ABI of the pin kit.
 #error The C++ ABI of your compiler does not match the ABI of the pin kit.
  ^
/home/umair/sniper/sift/recorder/../../pin_kit/source/include/pin/compiler_version_check2.H:117:2: error: #error This kit requires gcc 3.4 or later
 #error This kit requires gcc 3.4 or later
  ^
/home/umair/sniper/sift/recorder/../../common/Makefile.common:79: recipe for target 'emulation.o' failed
make[2]: *** [emulation.o] Error 1
Makefile:40: recipe for target 'recorder' failed
make[1]: *** [recorder] Error 2
Makefile:37: recipe for target '/home/umair/sniper/sift/libsift.a' failed
make: *** [/home/umair/sniper/sift/libsift.a] Error 2

I am using ubuntu 16.04. please help to resolve this issue...

Ahmad Shamseddin

unread,
Jan 9, 2018, 10:13:54 PM1/9/18
to Sniper simulator
just out of curiosity what kind of research you're doing? 

Panitan Wongse-ammat

unread,
Apr 16, 2018, 10:13:54 PM4/16/18
to Sniper simulator
Did someone have the solution to this issue since I have a trouble with it during make?

Trevor E. Carlson

unread,
Apr 16, 2018, 10:18:09 PM4/16/18
to mr.pan...@gmail.com, umai...@gmail.com, snip...@googlegroups.com
Panitan, Umair,

The problem here is that version 2.14-71313 of Sniper does not support GCC-5. If you use GCC-4.9, things will work. If I remember correctly, installing g++-4.9 and setting the environment variables like this (see below), should solve this issue.

$ apt-get install g++-4.9
$ export CXX=g++-4.9
$ export CC=gcc-4.9
$ cd sniper ; make

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.

Panitan Wongse-ammat

unread,
Apr 16, 2018, 11:35:17 PM4/16/18
to Sniper simulator
Thank you Trevor for your suggestion. I followed yours very closely, and I tried to run 
cd test/fft; make run;, which gave me the output as shown below in the purple text.

/usr/bin/gcc-4.9 -mno-sse4 -mno-sse4.1 -mno-sse4.2 -mno-sse4a -mno-avx -mno-avx2 -I/home/panitanw/Downloads/sniper-6.1/include    -c -o api.o api.c
/usr/bin/gcc-4.9 api.o -lm -static -L/home/panitanw/Downloads/sniper-6.1/lib -pthread  -o api
../../run-sniper -n 2 -c gainestown --roi -g --api/simple/cores_per_socket=1 -- ./api
[SNIPER] Start
A: Source/pin/injector_nonmac/auxvector.cpp: CopyAux: 291: unexpected AUX VEC type 26

################################################################################
## STACK TRACE
################################################################################
addr2line -C -f -e "/home/panitanw/Downloads/pin/intel64/bin/pinbin" 0x564aceb207f9 0x564aceb215ce 0x564aceb218a0 0x564aced43b3c 0x564aced492ff 0x564aced4ae2d 0x564aced3afe1 0x564aced3fb2d 0x564aced3022e 0x564aced3a230 0x7f91da295830 0x564aceb1517a
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
??
??:0
Detach Service Count: 1
Pin 2.14
Copyright (c) 2003-2015, Intel Corporation. All rights reserved.
@CHARM-VERSION: $Rev: 71293 $
@CHARM-BUILDER: BUILDER
@CHARM-COMPILER: gcc 4.4.7
@CHARM-TARGET: ia32e
@CHARM-CFLAGS:  __OPTIMIZE__=1  __NO_INLINE__=__NO_INLINE__
[SNIPER] End
[SNIPER] Elapsed time: 0.16 seconds


Optional: Run '../../tools/cpistack.py' in this directory to generate cpi-stack output for this run
Optional: Run '../../tools/mcpat.py' in this directory to generate power output for this run
Optional: Run '../../tools/dumpstats.py' in this directory to view detailed statistics for this run
Optional: Run '../../tools/gen_topology.py' in this directory to view the system topology for this run

I also attempted to run the ./../../tools/xxx.py as indicated above, but the no valid configuration is thrown. 

$ ./../../tools/dumpstats.py 
Traceback (most recent call last):
  File "./../../tools/dumpstats.py", line 172, in <module>
    results = sniper_lib.get_results(jobid, resultsdir, partial = partial)
  File "/home/panitanw/Downloads/sniper-6.1/tools/sniper_lib.py", line 47, in get_results
    results = parse_results_from_dir(resultsdir, partial = partial, metrics = metrics)
  File "/home/panitanw/Downloads/sniper-6.1/tools/sniper_lib.py", line 151, in parse_results_from_dir
    raise SniperResultsException("No valid configuration found")
sniper_lib.SniperResultsException: No valid configuration found

I don't think that it is the output I should expect from sniper right?

Trevor E. Carlson

unread,
Apr 16, 2018, 11:41:05 PM4/16/18
to mr.pan...@gmail.com, snip...@googlegroups.com
Panitan,

Yes, I think that this is another Pin issue. To fix this, I usually add the -ifeellucky option to the pinoptions string (in both run-sniper and record-trace). You can usually find it next to the -mt flag or the -injection flag.

Trevor

Panitan Wongse-ammat

unread,
Apr 17, 2018, 12:03:38 AM4/17/18
to Trevor E. Carlson, snip...@googlegroups.com
Travor, 

   I think I get the result saved in sim.out now. I have been thankful for your suggestion so far.

Trevor



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+unsubscribe@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.




--
Best Regards,
Panitan Wongse-ammat
Reply all
Reply to author
Forward
0 new messages