【Error】编译遇到错误:__NR_open not found、Error: unknown mnemonic `movq'

在aarch64 树莓派上编译时遇到了如下错误,暂且记录。

错误1

__NR_open not found

此错误在于aarch64上不存在__NR_open系统调用,后来使用__NR_openat解决。(未测试是否正常工作。

错误2

aarch64 Error: unknown mnemonic `movq'

此错误多为在交叉编译、跨平台编译时遇到不能识别源代码中的汇编指令的问题。需要修改源代码做好适配。

参考:https://stackoverflow.com/questions/55403236/why-is-the-open-syscall-supported-on-some-linux-systems-and-not-others

发布了242 篇原创文章 · 获赞 95 · 访问量 61万+

猜你喜欢

转载自blog.csdn.net/think_ycx/article/details/100005513