PIN 工具未知 ABI 错误

PIN tool unknown ABI error

我从 here 安装了最新版本的 PIN。我修改了创建的文件以使用 malloctrace.cpp 的副本跟踪对 gets() 的调用。但是,在编译时,出现错误:

In file included from ./include/pin/pin.H:41:0, from

tools/ManualExamples/inputtrace.cpp:32:

./include/pin/compiler_version_check2.H:83:3: error: #error "Unknown

target architecture" # error "Unknown target architecture" ^

./include/pin/compiler_version_check2.H:98:2: error: #error "internal

error pin compiler configuration not available " #error "internal

error pin compiler configuration not available " ^

./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. #error

The C++ ABI of your compiler does not match the ABI of the pin kit.

^ ./include/pin/compiler_version_check2.H:122:2: error: #error Kit has

unknown compiler ABI #error Kit has unknown compiler ABI ^ In file

included from ./include/pin/level_base.PLH:66:0,

from ./include/pin/pin.H:43,

from tools/ManualExamples/inputtrace.cpp:32:

./include/pin/foundation.PLH:25:28: fatal error: types_marker.TLH: No

such file or directory #include "types_marker.TLH"

^

compilation terminated.

我确定我安装的 PIN 版本是最新的。但问题仍然存在。 有人可以在这方面帮助我吗?

更新:我使用的是 linux 机器 x86-64,编译器是 gcc 版本 4.8.4

添加这个作为答案,因为我没有发表评论所需的声誉。

除非您告诉我们您用于 运行 make 的确切参数,否则恐怕无法对您的问题给出明确直接的答案。

这可能是暗杀。但是,我 运行 最近遇到了类似的问题,就像您在上面指定的那样。我正在使用 x86_64 Linux 系统,我正在尝试为 ia-32 架构交叉编译我的 PinTool。

如果您的系统中没有 32 位共享库,或者如果您在 make 中获取 TARGET 参数错误,则会导致

Unknown target architecture

对我来说 运行 下面的命令使它成功构建。使用以下内容构建 ia32 架构。

make TARGET=ia32