我刚刚在我的 Fedora 22 机器上安装了 Intel Pin,我尝试使用 make
在 /source/tools
中运行 makefile。但是,当我运行它时,我多次重复出现以下两个错误:
error: #error This kit requires gcc 3.4 or later
error: #error The C++ ABI of your compiler does not match the ABI of the pin kit.
但是,我的gcc版本是
gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)
所以我对发生的事情有点困惑。我该如何解决这个问题?
最佳答案
注释掉 source/include/pin/compiler_version_check2.H
中的违规行
似乎对我有用:
#if !defined(__GXX_ABI_VERSION) || CC_USED_ABI_VERSION != __GXX_ABI_VERSION
#error The C++ ABI of your compiler does not match the ABI of the pin kit.
#endif
和
#if CC_USED_ABI_VERSION != __GXX_ABI_VERSION
#error This kit requires gcc 3.4 or later
#endif
关于c - Makefile 误解了 Fedora 22 上 Intel Pin 的 gcc 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32641328/