I am trying to compile pinetrace.cpp from examples on Ubuntu but there is a catch. I am doing it from outside the directory and i have included the full path to pin.H in the code. I intend to modify this code for my own use but when i try using g++ pinetrace.cpp -o a.out i get error of unspecified architecture. If only i can a modified make file which i can use ? here is the output:
g++ pinatrace.cpp -c -obj-intel64 In file included from /home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/pin.H:41:0, from pinatrace.cpp:3: /home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/compiler_version_check2.H:74:3:error: #error "Unknown target architecture" # error"Unknown target architecture"^~~~~/home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/compiler_version_check2.H:89:2:error: #error "internal error pin compiler configuration not available " #error"internal error pin compiler configuration not available "^~~~~/home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/compiler_version_check2.H:93: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/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/compiler_version_check2.H:113:2:error: #error Kit has unknown compiler ABI #error Kit has unknown compiler ABI ^~~~~ In file included from /home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/level_base.PLH:83:0, from /home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/pin.H:43, from pinatrace.cpp:3: /home/hammad/studies/fast/fyp/pin-3.7-97619-g0d0c92f4f-gcc-linux/source/include/pin/foundation.PLH:52:10:fatal error: types_marker.h: No such file or directory #include "types_marker.h"^~~~~~~~~~~~~~~~
Any help appreciated.