Bug 26497 - systemd 255版本由于内核头文件中新增了一个未在 systemd 的 filesystems-gperf.gperf 文件中定义的文件系统 magic 值(GROUP_BALANCER_MAGIC)导致构建失败
Summary: systemd 255版本由于内核头文件中新增了一个未在 systemd 的 filesystems-gperf.gperf 文件中定义的文件系统 mag...
Status: RESOLVED WONTFIX
Alias: None
Product: ANCK 6.6 Dev
Classification: ANCK
Component: fs (show other bugs) fs
Version: 6.6.102-5
Hardware: All Linux
: P3-Medium S1-blocker
Target Milestone: ---
Assignee: Ferry Meng
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-10-21 11:53 UTC by mgb01105731
Modified: 2025-10-22 15:53 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mgb01105731 2025-10-21 11:53:31 UTC
https://gitee.com/src-anolis-os/systemd/pulls/107

当前systemd 255版本构建过程中出现构建报错
rc/basic/meson.build:239:8: ERROR: Problem encountered: Unknown filesystems defined in kernel headers:
Filesystem found in kernel header but not in filesystems-gperf.gperf: GROUP_BALANCER_MAGIC
A full log can be found at /builddir/build/BUILD/systemd-stable-255/anolis-linux-build/meson-logs/meson-log.txt

经过分析是由于kernel6.6+版本内核头文件中新增了一个未在 systemd 的 filesystems-gperf.gperf 文件中定义的文件系统 magic 值(GROUP_BALANCER_MAGIC)导致的

手动在src/basic/filesystems-gperf.gperf增加GROUP_BALANCER_MAGIC, "group_balancer"可修复构建报错,但需要内核组确认内核新增的 magic 值的目的是什么
Comment 1 mgb01105731 2025-10-22 15:53:39 UTC
经过赵鑫鹏反馈为kernel 新增特性:
为Group Balancer特性引入的sysfs文件系统的magic number
需要适配下systemd,kernel无需修改