/ 详情

Building kernel RPM locally on openEuler-20.03-LTS got failed

Done
Bug
Opened this issue  
2021-02-25 14:07

【标题描述】running rpmbuild based on openEuler kernel 5.10 spec on openEuler-20.03-LTS got failed
【环境信息】
Hardware: D06
System:
NAME="openEuler"
VERSION="20.03 (LTS)"
ID="openEuler"
VERSION_ID="20.03"
PRETTY_NAME="openEuler 20.03 (LTS)"
ANSI_COLOR="0;31"

kernel version: 4.19.90-2003.4.0.0036.oe1.aarch64

【问题复现步骤】

  1. Fetch and archive the kernel source from 5.10 kernel branch as tar.gz package
  2. Fetch the kernel building facility from commit 7b2ac16 of https://gitee.com/src-openeuler/kernel/commits/master
  3. run rpmdev-setuptree to create build directory
  4. copy all the stuffs to rpmbuild/SOURCEs, and copy rpmbuild/SOURCES/kernel.spec to rpmbuild/SPEC
  5. run 'rpmbuild --debug --noclean -ba SPECS/kernel.spec'

The building will get failed.
Error is shown:
输入图片说明


The 'modinfo -l $$i' in kernel.spec failed to query the regmap_i2c.ko module info.
After tracing, found the kmod which provides the 'modinfo' command is 2.8 and depends on a patch of mainline kernel 5.2.

Will try to fix this later.

【预期结果】
rpmbuild for kernel 5.10 should be successful and all RPMs are generated

【实际结果】
The building failed without any RPM output.

【附件信息】

Attachments

Comments (3)

erik_yuan created缺陷
erik_yuan set related repository to openEuler/kernel
erik_yuan changed description
展开全部操作日志

Hey erik_yuan, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot .
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

erik_yuan changed description
erik_yuan changed description

修复补丁 moduleparam: Save information about built-in modules in separate file

版本 tag commit
openEuler-1.0-LTS 4.19.90-2103.1.0, 142,143 5877e2f673b645a6688f26f611ab10c29ab38c8b
kernel-4.19 NA ba4f0a6d699ee70673eef13d8d111d7dd67abd23
成坚 (CHENG Jian) changed issue state from 待办的 to 修复中

@erik_yuan 补丁已合入。

感谢对 openEuler 做出的贡献。

---- 成坚

成坚 (CHENG Jian) changed issue state from 修复中 to 已完成

Sign in to comment

状态
Assignees
Labels
Projects
Milestones
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(3)
5329419 openeuler ci bot 1578984659