/ 详情

交叉编译arm64 perf报error

已挂起
Bug
Opened this issue  
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

Attachments

Comments (5)

jxh218 created缺陷
jxh218 set related repository to 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.

jxh218 changed title
jxh218 changed description
陈亚强 set assignee to XieXiuQi

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

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

make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- tools/perf
XieXiuQi changed issue state from 待办的 to 已挂起

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

Sign in to comment

状态
Assignees
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(4)
5329419 openeuler ci bot 1578984659 22346 newbeats 1578915433