Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup/Build Zsim #197

Open
cengizandak opened this issue Mar 21, 2018 · 1 comment
Open

Setup/Build Zsim #197

cengizandak opened this issue Mar 21, 2018 · 1 comment

Comments

@cengizandak
Copy link

cengizandak commented Mar 21, 2018

Hello,

I got stuck from the beginning of building Zsim :

"
cengiz@cengiz-VirtualBox:~/Downloads/zsim$ scons -j16
scons: Reading SConscript files ...
Building opt zsim at build/opt
gcc: error: /usr/include/asm/unistd.h: No such file or directory
gcc: fatal error: no input files
compilation terminated.
Traceback (most recent call last):
File "../../misc/list_syscalls.py", line 7, in
denseList = ["INVALID"]*(max([num for (num, name) in sysList]) + 1)
ValueError: max() arg is an empty sequence
scons: done reading SConscript files.
scons: Building targets ...
g++ -o build/opt/access_tracing.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/access_tracing.cpp
g++ -o build/opt/access_tracing.ot -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/access_tracing.cpp
build/opt/access_tracing.cpp:28:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
build/opt/access_tracing.cpp:28:18: fatal error: hdf5.h: No such file or directory
compilation terminated.
g++ -o build/opt/contention_sim.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/contention_sim.cpp
g++ -o build/opt/decoder.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/decoder.cpp
g++ -o build/opt/dramsim_mem_ctrl.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/dramsim_mem_ctrl.cpp
In file included from /home/cengiz/Downloads/pin/source/include/pin/pin.H:41:0,
from build/opt/decoder.h:31,
from build/opt/decoder.cpp:26:
/home/cengiz/Downloads/pin/source/include/pin/compiler_version_check2.H:101: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/cengiz/Downloads/pin/source/include/pin/compiler_version_check2.H:116:2: error: #error This kit requires gcc 3.4 or later
#error This kit requires gcc 3.4 or later
^
g++ -o build/opt/dumptrace.ot -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/dumptrace.cpp
g++ -o build/opt/memory_hierarchy.ot -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/memory_hierarchy.cpp
In file included from /home/cengiz/Downloads/pin/source/include/pin/level_base.PLH:93:0,
from /home/cengiz/Downloads/pin/source/include/pin/pin.H:43,
from build/opt/decoder.h:31,
from build/opt/decoder.cpp:26:
/home/cengiz/Downloads/pin/source/include/pin/foundation.PLH:52:26: fatal error: types_marker.h: No such file or directory
compilation terminated.
g++ -o build/opt/galloc.ot -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/galloc.cpp
g++ -o build/opt/log.ot -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/log.cpp
g++ -o build/opt/pin_cmd.ot -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/pin_cmd.cpp
In file included from /home/cengiz/Downloads/pin/source/include/pin/pin.H:41:0,
from build/opt/decoder.h:31,
from build/opt/core.h:30,
from build/opt/ooo_core.h:32,
from build/opt/contention_sim.cpp:35:
/home/cengiz/Downloads/pin/source/include/pin/compiler_version_check2.H:101: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/cengiz/Downloads/pin/source/include/pin/compiler_version_check2.H:116:2: error: #error This kit requires gcc 3.4 or later
#error This kit requires gcc 3.4 or later
^
In file included from /home/cengiz/Downloads/pin/source/include/pin/level_base.PLH:93:0,
from /home/cengiz/Downloads/pin/source/include/pin/pin.H:43,
from build/opt/decoder.h:31,
from build/opt/core.h:30,
from build/opt/ooo_core.h:32,
from build/opt/contention_sim.cpp:35:
/home/cengiz/Downloads/pin/source/include/pin/foundation.PLH:52:26: fatal error: types_marker.h: No such file or directory
compilation terminated.
g++ -o build/opt/fftoggle.o -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/fftoggle.cpp
g++ -o build/opt/galloc.o -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/galloc.cpp
g++ -o build/opt/log.o -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/log.cpp
g++ -o build/opt/pin_cmd.o -c -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/pin_cmd.cpp
g++ -o build/opt/galloc.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/galloc.cpp
scons: *** [build/opt/access_tracing.os] Error 1
g++ -o build/opt/hash.os -c -fPIC -march=core2 -g -O3 -funroll-loops -g -std=c++0x -Wall -Wno-unknown-pragmas -fomit-frame-pointer -fno-stack-protector -MMD -DBIGARRAY_MULTIPLIER=1 -DUSING_XED -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -Werror -DPIN_PATH="/home/cengiz/Downloads/pin/intel64/bin/pinbin" -DZSIM_PATH="/home/cengiz/Downloads/zsim/build/opt/libzsim.so" -DMT_SAFE_LOG -I/home/cengiz/Downloads/pin/extras/xed-intel64/include -I/home/cengiz/Downloads/pin/source/include/pin -I/home/cengiz/Downloads/pin/source/include/pin/gen -I/home/cengiz/Downloads/pin/extras/components/include -I/home/cengiz/Downloads/libconfig-1.4.10/include -Ibuild/opt build/opt/hash.cpp
scons: *** [build/opt/access_tracing.ot] Error 1
scons: *** [build/opt/decoder.os] Error 1
scons: *** [build/opt/contention_sim.os] Error 1
scons: building terminated because of errors.
"

The issues are :
1-)"gcc: error: /usr/include/asm/unistd.h: No such file or directory
gcc: fatal error: no input files"
1-)"/home/cengiz/Downloads/pin/source/include/pin/foundation.PLH:52:26: fatal error: types_marker.h: No such file or directory"
2-)"#error The C++ ABI of your compiler does not match the ABI of the pin kit."
3-)"#error This kit requires gcc 3.4 or later"
4-)"fatal error: hdf5.h: No such file or directory
compilation terminated."
The first issue is because I have "asm-generic" folder instead of "asm".So what Can I do for this.My OS is x86_64.
since there is no real explanation about installing, could you please help me about that issues.I have checked the previous issues, could not get the ideas though.

Regards

@ibadr
Copy link

ibadr commented Apr 5, 2018

I encountered similar issues. I used Pin version 2.14. Almost all these issues were resolved in the master branch of the stanford-mast fork:
https://github.com/stanford-mast/zsim

Check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants