蒋述

蒋述

1个粉丝

7

问答

0

专栏

0

资料

蒋述  发布于  2023-12-05 14:32:11
采纳率 0%
7个问答
364

编译内核出现这个问题make[2]: *** [scripts/Makefile.build:294:fs/xfs/xfs_super.o] 错误 1

   

In file included from ./include/uapi/linux/stddef.h:1,
from ./include/linux/stddef.h:4,
from ./include/uapi/linux/posixtypes.h:4,
from ./include/uapi/linux/types.h:13,
from ./include/linux/types.h:5,
from fs/xfs/xfs_linux.h:21,
from fs/xfs/xfs.h:32,
from fs/xfs/xfs_super.c:19:
In function ‘xfs_check_ondisk_structs’,
inlined from ‘init_xfs_fs’ at fs/xfs/xfs_super.c:1974:2:
./include/linux/compiler.h:518:45: error: call to ‘compiletime_assert_119’ declared with attribute error: XFS: sizeof(xfs_dir2_sf_entry_t) is wrong, expected 3
518 | _compiletime_assert(condition, msg, compiletime_assert
, LINE)
| ^
./include/linux/compiler.h:501:25: note: in definition of macro ‘compiletime_assert’
501 | prefix ## suffix(); \
| ^~
./include/linux/compiler.h:518:9: note: in expansion of macro ‘_compiletime_assert’
518 | _compiletime_assert(condition, msg, compiletimeassert, LINE)
| ^~~~~
./include/linux/bug.h:54:37: note: in expansion of macro ‘compiletime_assert’
54 | #define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
| ^~~~
fs/xfs/xfs_ondisk.h:22:9: note: in expansion of macro ‘BUILD_BUG_ON_MSG’
22 | BUILD_BUG_ON_MSG(sizeof(structname) != (size), “XFS: sizeof(“ \
| ^~~~
fs/xfs/xfs_ondisk.h:119:9: note: in expansion of macro ‘XFS_CHECK_STRUCT_SIZE’
119 | XFS_CHECK_STRUCT_SIZE(xfs_dir2_sf_entry_t, 3);
| ^~~~~
make[2]: [scripts/Makefile.build:294:fs/xfs/xfs_super.o] 错误 1
make[1]:
[scripts/Makefile.build:544:fs/xfs] 错误 2
make: * [Makefile:988:fs] 错误 2

我来回答
回答0个
时间排序
认可量排序
易百纳技术社区暂无数据
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区