已关闭
【26.09-DevStation-rc4】【kernel-6.6】【arm/x86】ibus-table-array30源码包本地自编译build阶段失败 #4
zjl_long创建于  22 天前关闭于  22 天前
zjl_long成员
22 天前 创建

【缺陷描述】:请补充详细的缺陷问题现象描述

【26.09-DevStation-rc4】【kernel-6.6】【arm/x86】ibus-table-array30源码包本地自编译build阶段失败

一、缺陷信息

【26.09-DevStation-rc4】【kernel-6.6】【arm/x86】ibus-table-array30源码包本地自编译build阶段失败

【缺陷所属的os版本】

image.png

【内核版本】

kernel-6.6.0-169.0.0.2.oe2609.src.rpm

【缺陷所属软件及版本号】

ibus-table-array30-1.2.0.20090729-11.oe2609.src.rpm

【环境信息】

硬件信息
提供跟硬件相关的信息,如架构、cpu和内存规格等
虚拟机场景,额外补充宿主机os版本类型
软件信息
跟缺陷所属软件相关的其它软件版本信息(如软件包构建失败由gcc引起,请填写gcc的版本号)
网络信息
如果有特殊组网,请提供网络拓扑信息以及网络数据走向

【问题复现步骤】

1、下载源码包
yumdownloader --source ibus-table-array30
2、安装源码包
rpm -ivh ibus-table-array30-1.2.0.20090729-11.oe2609.src.rpm
3、进入安装目录
cd /home/compiler/rpmbuild/SPECS/
4、开始编译
rpmbuild -ba ibus-table-array30.spec
5、如果有依赖的就安装依赖

【实际结果】

1、源码包编译失败,build阶段报错。

【期望结果】

1、源码包编译成功,生成rpm二进制包,无异常

【其他相关附件信息】

image.png

【缺陷详情及分析指导参考链接】

二、缺陷分析结构反馈
影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

修复是否涉及abi变化(是/否):
openEuler-20.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-22.03-LTS-SP4
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-24.03-LTS-SP2

likedislike
Zzjl_long成员
22 天前 关联了里程碑:openEuler-26.09-DevStation-round4
openeuler-ci-botopeneuler-ci-bot成员
22 天前 将 lostway1 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
22 天前 修改了issue 的描述
openeuler-ci-bot
openeuler-ci-bot成员
22 天前 评论:

以下的要求不是强制性的, 未按模板评论时对issue无任何影响
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, 缺陷严重等级, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后defect-manager将无法正常解析填写内容.
评论区可能使用到的指令说明:

指令 指令说明 使用权限
/check-issue 触发defect-manager校验 不限
/reason xxx /reason +挂起或取消条件 不限

影响性分析说明:

缺陷严重等级:(Critical/High/Moderate/Low)

缺陷根因说明:

受影响版本排查(受影响/不受影响):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

abi变化(是/否):

  1. openEuler-20.03-LTS-SP4:
  2. openEuler-22.03-LTS-SP3:
  3. openEuler-22.03-LTS-SP4:
  4. openEuler-24.03-LTS:
  5. openEuler-24.03-LTS-SP1:
  6. openEuler-24.03-LTS-SP2:

缺陷issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/defect-manager-manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-bot成员
22 天前 将 zjl_long 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
22 天前 添加了label:DEFECT/UNFIXED
openeuler-ci-botopeneuler-ci-bot成员
22 天前 添加了label:sig/Desktop
openeuler-ci-bot
openeuler-ci-bot成员
22 天前 评论:

Welcome To openEuler Community

Hey @zjl_long , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Desktop ,
and any of the maintainers: @cherry530, @dou33, @dwl301, @lipingEmmaSiguyi, @lostway1, @lw520203, @openbot, @robert-xingwang, @small_leek, @starlet-dx, @t_feng, @technology208, @wangxp006, @weidongkl, @yanan-rock ,
and any of the committers: @lostway1, @lyn1001, @small_leek, @technology208 .

likedislike
Zzjl_long成员
22 天前 将 lyn1001 设为负责人,移除负责人 zjl_long、lostway1
Wwang--ge
22 天前 关联了pull request:Add -fpie to fix build failed
wang--ge
22 天前 评论:

问题原因:
cin2ibus.c 编译命令里只有 -Wall,没有 -fPIC/-fPIE:
/usr/bin/cc -DCMAKE_INSTALL_PREFIX=... -Wall -MD -MT ... -c src/cin2ibus.c
但链接时用了 hardened 构建(-specs=/usr/lib/rpm/generic-hardened-ld,内含 -pie,PIE 在 aarch64 上按共享对象规则处理)。cin2ibus.c 用了 getopt() 长选项,引用的是 glibc 里的外部全局变量 optarg。非 PIC 对象引用"可能被外部绑定"的全局变量会产生 R_AARCH64_ADR_PREL_PG_HI21 重定位,链接器无法直接解析,必须走 GOT,于是报 recompile with -fPIC。

解决办法:因为cin2ibus 是可执行文件,添加-fpie

likedislike
openeuler-ci-botopeneuler-ci-bot成员
22 天前 关闭了 issue
openeuler-ci-botopeneuler-ci-bot成员
22 天前 issue状态由 待办的 改变为 已完成
openeuler-ci-botopeneuler-ci-bot成员
22 天前 删除了label:DEFECT/UNFIXED
openeuler-ci-bot
openeuler-ci-bot成员
22 天前 评论:

@lyn1001 未对受影响版本排查/abi变化进行分析

likedislike
openeuler-ci-botopeneuler-ci-bot成员
22 天前 关联了pull request:[sync] PR-7: Add -fpie to fix build failed
zjl_long成员
14 天前 评论:

【26.09-DevStation-rc5】【kernel-6.6】验收通过
软件信息:
1.OS版本及分支:openEuler-26.09-DevStation-rc5
2.内核信息: kernel-6.6.0-172.0.0.3.oe2609.src.rpm
3.repo: http://121.36.84.172/dailybuild/EBS-openEuler-26.09-DevStation/rc5_openeuler-2026-09-15-03-03-14/26.09-with-kernel-6.6/
4.软件版本:ibus-table-array30-1.2.0.20090729-12.oe2609.src.rpm

验收详情:
arm
image.png
x86
image.png

likedislike
Zzjl_long成员
14 天前 issue状态由 已完成 改变为 已验收
openeuler-ci-bot
openeuler-ci-bot成员
14 天前 评论:

@lyn1001 未对受影响版本排查/abi变化进行分析

likedislike