编译log:
./../misc/create_inode.c:176:16: warning: implicit declaration of function ‘lgetxattr’; did you mean ‘getdate_r’? [-Wimplicit-function-declaration]
value_size = lgetxattr(filename, name, NULL, 0);
^~~~~~~~~
getdate_r
./../misc/create_inode.c: At top level:
./../misc/create_inode.c:399:18: error: conflicting types for ‘copy_file_range’
static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
^~~~~~~~~~~~~~~
In file included from ./../misc/create_inode.c:19:0:
/usr/include/unistd.h:1110:9: note: previous declaration of ‘copy_file_range’ was here
ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
^~~~~~~~~~~~~~~
Makefile:422: recipe for target 'create_inode.o' failed
make[3]: *** [create_inode.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/lucifer/lizhe/buildroot-2017.08/output/build/host-e2fsprogs-1.43.4/debugfs'
Makefile:404: recipe for target 'all-progs-recursive' failed
make[2]: *** [all-progs-recursive] Error 1
make[2]: Leaving directory '/home/lucifer/lizhe/buildroot-2017.08/output/build/host-e2fsprogs-1.43.4'
Makefile:339: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/lucifer/lizhe/buildroot-2017.08/output/build/host-e2fsprogs-1.43.4'
package/pkg-generic.mk:227: recipe for target '/home/lucifer/lizhe/buildroot-2017.08/output/build/host-e2fsprogs-1.43.4/.stamp_built' failed
make: *** [/home/lucifer/lizhe/buildroot-2017.08/output/build/host-e2fsprogs-1.43.4/.stamp_built] Error 2
离线
我的也是编译不成功,正在查找原因。
离线
我的也是编译不成功,正在查找原因。
晕哥帮忙看看哇?
离线
https://www.cnblogs.com/dakewei/p/10573446.html
1. 详细报错信息
misc/create_inode.c:399:18: error: conflicting types for 'copy_file_range'
static errcode_t copy_file_range(ext2_filsys fs, int fd, ext2_file_t e2_file,
^~~~~~~~~~~~~~~
In file included from ./../misc/create_inode.c:19:0:
/usr/include/unistd.h:1110:9: note: previous declaration of 'copy_file_range' was here
ssize_t copy_file_range (int __infd, __off64_t *__pinoff,
2. 解决办法
将copy_file_range改成copy_file_chunk
cd build_dir/host/e2fsprogs-1.43.7
vi misc/create_inode.c (将所有的copy_file_range改成copy_file_chunk)
离线
你buildroot选择的不是EXT4吧
最近编辑记录 bubailong (2020-05-21 09:04:51)
离线
你buildroot选择的不是EXT4吧
在哪里选择,在哪里看?
离线
在哪里选择,在哪里看?
你这个选择了吗?
离线
选了
离线
还有个疑问,网上的镜像,有区分flash的大小嘛?应该都可以把?因为在配置buildroot的时候,没有选择flash的大小啊?
离线