I am using Ubuntu 16.04.4 LTS, gcc version 5.4.0.
I faced some problems in the final steps of installing Tejas. Posted some of the steps below:
Step 1: I installed Tejas from tar-ball in installation kit.(downloaded from
http://www.cse.iitd.ac.in/tejas/index.html).
Step 2: When prompted I used this pin -- Linux(IA32 and intel64 (x86 32 bit and 64 bit)) Rev 71313 (for gcc 3.4 or later). Installer prompted me to install version 62732 but that was not available.
In Step 4 I encountered some errors. I have posted terminal snapshot below:
Step 4 : Building
pwd is /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas
error building : 0
Buildfile: /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/build.xml
build-subprojects:
init:
[mkdir] Created dir: /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/bin
[copy] Copying 25 files to /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/bin
[copy] Copying 12 files to /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/bin
build-project:
[echo] Tejas: /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/build.xml
[javac] /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/build.xml:48: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/build.xml:54: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
[javac] Compiling 244 source files to /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/bin
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 warning
[javac] /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/build.xml:58: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
build-pin:
[exec] g++ -DBIGARRAY_MULTIPLIER=1 -Wall -Werror -Wno-unknown-pragmas -fno-stack-protector -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/source/include/pin -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/source/include/pin/gen -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/extras/components/include -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/extras/xed-intel64/include -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/source/tools/InstLib -O3 -fomit-frame-pointer -fno-strict-aliasing -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/src/emulator/pin/../../simulator/emulatorinterface/communication -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/src/emulator/pin/../../simulator/emulatorinterface/communication/shm -I/home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/src/emulator/pin/../../simulator/emulatorinterface/communication/filePacket -c causalityTool.cpp -o obj-pin/causalityTool.o
[exec] In file included from /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/source/include/pin/pin.H:41:0,
[exec] from causalityTool.cpp:23:
[exec] /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/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.
[exec] #error The C++ ABI of your compiler does not match the ABI of the pin kit.
[exec] ^
[exec] /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/PIN/pin-2.14-71313-gcc.4.4.7-linux/source/include/pin/compiler_version_check2.H:117:2: error: #error This kit requires gcc 3.4 or later
[exec] #error This kit requires gcc 3.4 or later
[exec] ^
[exec] makefile_linux_mac:52: recipe for target 'obj-pin/causalityTool.o' failed
[exec] In file included from causalityTool.cpp:46:0:
[exec] /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/src/emulator/pin/../../simulator/emulatorinterface/communication/filePacket/filePacket.h:14:19: fatal error: zlib.h: No such file or directory
[exec] compilation terminated.
[exec] make: *** [obj-pin/causalityTool.o] Error 1
[exec] Result: 2
build:
make-jar:
[mkdir] Created dir: /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/jars
[jar] Building jar: /home/isaar/Downloads/tejas_installation_kit/Tejas-Simulator/Tejas/jars/tejas.jar
BUILD SUCCESSFUL
Total time: 33 seconds
---------------------------------------------------
In Step 2, installer prompted me to "Download version 62732 from Intel's website :
http://software.intel.com/en-us/articles/pintool-downloads". I installed version 71313 as 62732 was not available.
I feel this problem is because of using a different pin. Please help fix this issue.
Thanks.