LGA1150/ntfs3-oot

4.14.171内核依然无法编译

wlshdjj opened this issue · 4 comments

``/home/fku/18068/build_dir/target-x86_64_musl/linux-x86_64/ntfs3-2021-07-05-46d199e7/ntfs.h:72:15: error: 'SECTOR_SHIFT' undeclared here (not in a function); did you mean 'SECTIONS_SHIFT'?
static_assert(SECTOR_SHIFT == 9);
^
/home/fku/18068/build_dir/target-x86_64_musl/linux-x86_64/ntfs3-2021-07-05-46d199e7/compat.h:31:56: note: in definition of macro '__static_assert'
#define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
^~~~
/home/fku/18068/build_dir/target-x86_64_musl/linux-x86_64/ntfs3-2021-07-05-46d199e7/ntfs.h:72:1: note: in expansion of macro 'static_assert'
static_assert(SECTOR_SHIFT == 9);
^~~~~~~~~~~~~
/home/fku/18068/build_dir/target-x86_64_musl/linux-x86_64/ntfs3-2021-07-05-46d199e7/ntfs.h:72:15: error: expression in static assertion is not an integer
static_assert(SECTOR_SHIFT == 9);
^
/home/fku/18068/build_dir/target-x86_64_musl/linux-x86_64/ntfs3-2021-07-05-46d199e7/compat.h:31:56: note: in definition of macro '__static_assert'
#define __static_assert(expr, msg, ...) _Static_assert(expr, msg)
^~~~
/home/fku/18068/build_dir/target-x86_64_musl/linux-x86_64/ntfs3-2021-07-05-46d199e7/ntfs.h:72:1: note: in expansion of macro 'static_assert'
static_assert(SECTOR_SHIFT == 9);
^~~~~~~~~~~~~

这真的有鬼

可能是gcc版本不同

4.14
我这边 4.14 内核正常编译 emmm

原来不是同版本,我的是171

4.4内核编译,报同样的错。