How do I run sniper on an Apple Silicon M1 using docker?

628 views
Skip to first unread message

Kleber Kruger

unread,
Nov 14, 2021, 2:46:49 AM11/14/21
to Sniper simulator
I'm trying to run the sniper on an Apple Silicon M1 using the docker with --platform linux/amd64, but it's not working. The test/fft example show me this error:

############################################### 
## STACK TRACE
############################################### 
Pin must be run with tool in order to generate Pin stack trace
Detach Service Count: 1
Pin: pin-3.21-98484-e7cd811fd
Copyright 2002-2020 Intel Corporation.

qemu: uncaught target signal 6 (Aborted) - core dumped
[SNIPER] ---------------------------------------------- ---------------------------------
[SNIPER] Sniper using SIFT/trace-driven 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] ---------------------------------------------- ---------------------------------
[SNIPER] WARNING: No SIFT connections made yet. Waiting...
[SNIPER] ERROR: Could not establish SIFT connection, aborting! Check benchmark-app*.log for errors.
[SNIPER] End
[SNIPER] Elapsed time: 65.62 seconds

Is anyone running sniper simulator on an Apple Silicon M1 using docker?

宋毓韬

unread,
Oct 25, 2022, 6:15:32 AM10/25/22
to Sniper simulator
hello, have you figure out the problem? I meet almost the same problem with you.

Kleber Kruger

unread,
Oct 25, 2022, 11:53:48 AM10/25/22
to Sniper simulator
No, I abandoned using Sniper in a MacOS environment with M1 processor and migrated the project to an x86 architecture.

Trevor E. Carlson

unread,
Oct 25, 2022, 8:49:34 PM10/25/22
to snip...@googlegroups.com, kleber...@gmail.com, songyu...@gmail.com
Song Yu Tao, Kleber,

There are issues when running applications like Pin and DynamoRIO in QEMU [1].

Running this myself on an M1 Mac in Docker shows a QEMU error as well:

[RECORD-TRACE] Using the Pin frontend (sift/recorder)
qemu-i386: Could not open '/lib/ld-linux.so.2': No such file or directory

I have tried other virtualization environments, like UTM [2] (which uses QEMU, but full-system mode), and manually running full-system qemu, and those did seem to work, if I remember correctly. It seems that this might be a binfmt issue as described in the DynamoRIO page [1]. Full virtualization of Pin and DynamoRIO should still work.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/snipersim/6982caaf-2135-443f-aa97-791d4b0a387fn%40googlegroups.com.

Kleber Kruger

unread,
Oct 27, 2022, 9:13:53 PM10/27/22
to Trevor E. Carlson, snip...@googlegroups.com, songyu...@gmail.com
Thanks, I'll take a look. 
Reply all
Reply to author
Forward
0 new messages