Intel Pin issue in tejas installation

344 views
Skip to first unread message

isaar...@gmail.com

unread,
Jan 12, 2017, 1:47:02 AM1/12/17
to Tejas, jitinj...@gmail.com, jvl1...@ee.iitd.ac.in, jvl1...@ee.iitd.ac.in, jvl1...@ee.iitd.ac.in, isaar ahmad
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.

Marcos Horro

unread,
Jan 12, 2017, 5:41:10 AM1/12/17
to Tejas, jitinj...@gmail.com, jvl1...@ee.iitd.ac.in, jvl1...@ee.iitd.ac.in, jvl1...@ee.iitd.ac.in, isaar...@gmail.com
I had the same issue with PIN version. Try out with this one:


It has worked for me.

Kind regards,
Marcos HV

Smruti Sarangi

unread,
Jan 15, 2017, 6:25:38 AM1/15/17
to Tejas, jitinj...@gmail.com, jvl1...@ee.iitd.ac.in, jvl1...@ee.iitd.ac.in, jvl1...@ee.iitd.ac.in, isaar...@gmail.com
I am attaching a script that can be used to run Tejas on Ubuntu 16.04
script.sh

Hrishikesh Nair

unread,
Aug 1, 2022, 1:35:27 AM8/1/22
to Tejas
Hi,
I'm facing the same issue on Ubuntu 20.04.1
Have you found a fix yet?

Thanks

Akshin Singh

unread,
Aug 1, 2022, 4:37:14 AM8/1/22
to Tejas
Hi,

The issue is that you might be using an older version of Tejas. The error says that zlib is not available. The problem arose after Intel released Pin v3.x. In it, it forced all libraries used by the pin tool to be compiled with Intel's Pin CRT. To fix this, try Tejas version 1.4.1. This was tested with pin v3.21, and file mode communication with our pintool has been deprecated.

Download from here. Make sure to change the pin kit in makefile for pintool and set absolute path for everything in the config file.

Reply all
Reply to author
Forward
0 new messages