395 Star 1.4K Fork 1.3K

GVPopenEuler / kernel

 / 详情

交叉编译arm64 perf报error

已完成
缺陷
创建于  
2020-09-17 10:42

CC ui/hist.o
CC ui/stdio/hist.o
GEN python/perf.so
CC arch/arm64/util/sym-handling.o
CC builtin-annotate.o
cc1: error: unrecognized command line option '-m64'
cc1: error: unrecognized command line option '-m64'
cc1: error: unrecognized command line option '-Wno-cast-function-type' [-Werror]
cc1: all warnings being treated as errors
error: command 'aarch64-linux-gnu-gcc' failed with exit status 1
cp: cannot stat 'python_ext_build/lib/perf*.so': No such file or directory
make[2]: *** [Makefile.perf:480: python/perf.so] Error 1

评论 (6)

Achilles 创建了缺陷
Achilles 关联仓库设置为openEuler/kernel
展开全部操作日志

Hey gnu-linux, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

Achilles 修改了标题
Achilles 修改了描述
陈亚强 负责人设置为Xie XiuQi

什么环境,什么编译器,什么命令编译的?

我使用下面命令编译 kernel-4.19, openEuler-1.0-LTS, openEuler-20.09 均没有上述问题。
该 issue 暂时挂起,如果仍有问题,可以再继续跟帖。

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tools/perf
Xie XiuQi 任务状态待办的 修改为已挂起

这个一看就是交叉编译使用的 gcc 版本过低

该问题非内核 OR perf 工具问题。

系环境编译导致。

该 issue 先行关闭,如有疑问,请咨询 @成坚 (CHENG Jian)

成坚 (CHENG Jian) 任务状态已挂起 修改为已完成

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(5)
5329419 openeuler ci bot 1632792936 22346 newbeats 1578915433
C
1
https://gitee.com/openeuler/kernel.git
git@gitee.com:openeuler/kernel.git
openeuler
kernel
kernel

搜索帮助