firefly 单独编译linux,韦东山-Firefly-rk3288 按PDF文档编译内核出错 - 百问网嵌入式问答社区...
大家好, 我按《嵌入式Linux应用开发完全手册第2版》clone 了 linux-sdk, 也设置了交叉编译工具链编译到 make zImage 的时候,出了问题如下:
CC fs/ecryptfs/crypto.o
CC fs/ecryptfs/keystore.o
fs/ecryptfs/keystore.c: In function ‘decrypt_pki_encrypted_session_key’:
fs/ecryptfs/keystore.c:1168:41: warning: taking address of packed member of ‘struct ecryptfs_auth_tok’ may result in an unaligned pointer value [-Waddress-of-packed-member]
error, forbidden warning:keystore.c:1168
1168 | rc = write_tag_64_packet(auth_tok_sig, &(auth_tok->session_key),
| ^~~~~~~~~~~~~~~~~~~~~~~~
fs/ecryptfs/keystore.c:1187:27: warning: taking address of packed member of ‘struct ecryptfs_auth_tok’ may result in an unaligned pointer value [-Waddress-of-packed-member]
error, forbidden warning:keystore.c:1187
1187 | rc = parse_tag_65_packet(&(auth_tok->session_key),
| ^~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [scripts/Makefile.build:278: fs/ecryptfs/keystore.o] Error 1
make[1]: *** [scripts/Makefile.build:484: fs/ecryptfs] Error 2
make: *** [Makefile:1031: fs] Error 2
看来看去也找不出原因, 另外我的Ubuntu 是19.10版本, arm-linux-gnueabihf-gcc 版本是 gcc version 9.2.1 20191008 (Ubuntu 9.2.1-9ubuntu2), 不知是否 arm-linux-gnueabihf 版本太新了? 要找回对应6.x 版本吗?
请先 登录 后评论
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
