请选择 进入手机版 | 继续访问电脑版

5.4 内核 perf 工具编译问题

内核及驱动 内核及驱动 1420 人阅读 | 1 人回复 | 2021-12-31

在5.4内核tools/perf目录下,执行make操作,报如下error:

In file included from libbpf.c:51:
libbpf_internal.h:59:22: error: format '%lld' expects argument of type 'long long int', but argument 5 has type '__s64' {aka 'long int'} [-Werror=format=]
libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \

请问这个问题怎么解决?


回复

使用道具 举报

回答|共 1 个

TecSupport

发表于 2021-12-31 19:49:23 | 显示全部楼层

使用make WERROR=0,已验证ok,再试试

ps:
perf编译基本都要使用make WERROR=0进行编译。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则