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

Not able to install it on linux. Please help #4

Open
karanb192 opened this issue Oct 28, 2015 · 0 comments
Open

Not able to install it on linux. Please help #4

karanb192 opened this issue Oct 28, 2015 · 0 comments

Comments

@karanb192
Copy link

I have downloaded the code for PIN from this link and unzipped it - http://software.intel.com/sites/landingpage/pintool/downloads/pin-2.14-71313-gcc.4.4.7-linux.tar.gz

I then extracted the RunTracer code as per installation instructions but when I try to run make, I get the following error in the terminal -
g++ -DBIGARRAY_MULTIPLIER=1 -Wall -Werror -Wno-unknown-pragmas -fno-stack-protector -DTARGET_IA32E -DHOST_IA32E -fPIC -DTARGET_LINUX -I../../../source/include/pin -I../../../source/include/pin/gen -I../../../extras/components/include -I../../../extras/xed-intel64/include -I../../../source/tools/InstLib -O3 -fomit-frame-pointer -fno-strict-aliasing -c -o obj-intel64/ccovtrace.o ccovtrace.cpp ccovtrace.cpp: In function ‘const string* LookupSymbol(LEVEL_BASE::ADDRINT)’: ccovtrace.cpp:151:59: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘LEVEL_BASE::ADDRINT {aka long unsigned int}’ [-Werror=format=] snprintf(s, sizeof(s), "%s+%llx", name->c_str(), offset); ^ ccovtrace.cpp:151:59: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 5 has type ‘LEVEL_BASE::ADDRINT {aka long unsigned int}’ [-Werror=format=] ccovtrace.cpp:158:40: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘LEVEL_BASE::ADDRINT {aka long unsigned int}’ [-Werror=format=] snprintf(s, sizeof(s), "?%#llx", addr); ^ ccovtrace.cpp:158:40: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 4 has type ‘LEVEL_BASE::ADDRINT {aka long unsigned int}’ [-Werror=format=] cc1plus: all warnings being treated as errors make: *** [obj-intel64/ccovtrace.o] Error 1

Please guide as how to resolve this issue.
Thanks!

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

1 participant