c - Makefile 误解了 Fedora 22 上 Intel Pin 的 gcc 版本

标签 c gcc makefile intel fedora

我刚刚在我的 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/

相关文章:

c++ - 偏最小二乘库

C - 修改函数参数

c++ - 使用 opencv 时找不到 lopencv_core

linux - 如何在 Ubuntu 上安装 mingw32?

c - Makefile,更好理解规则

makefile - 在 GNU make 中保留 $^ 中先决条件的顺序

c - 将 Rust 特性传递给 C

c++ - 为什么这个 C++ 代码不能编译?

linux - Makefile 中的通配符函数输出

c - 为什么 t 引用 argv[3] 的索引 [-1] 的含义是什么 谢谢