Bug 58 - [anck-5.10]编译ANCK-5.10内核时未自动安装依赖包导致编译失败
Summary: [anck-5.10]编译ANCK-5.10内核时未自动安装依赖包导致编译失败
Status: RESOLVED BYDESIGN
Alias: None
Product: ANCK 5.10 Dev
Classification: ANCK
Component: general/others (show other bugs) general/others
Version: unspecified
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: Shiloong
QA Contact: 云霭
URL:
Whiteboard:
Keywords: Bugfix
Depends on:
Blocks:
 
Reported: 2021-12-09 15:16 UTC by 云霭
Modified: 2022-04-15 14:43 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description 云霭 2021-12-09 15:16:39 UTC
[缺陷描述]:

使用gitee上的打包工具对anck-5.10内核代码进行打包时,因缺少dwarves、libcap-devel、libcap-ng-devel、rsync四个依赖包导致编译失败

编译环境:

[root@iZ2ze4nqr3go57kr8oq1gnZ ~]# cat /proc/version
Linux version 4.19.91-24.8.an8.aarch64 (mockbuild@localhost.localdomain) (gcc version 8.3.1 20191121 (Anolis 8.3.1-5.0.1) (GCC)) #1 SMP Tue Aug 31 11:52:43 CST 2021

[重现步骤]:

1.分别拉取kernel和builder的代码

git clone -b an8-5.10 https://gitee.com/src-anolis-plus/ck-build.git

cd ck-build

git clone -b devel-5.10 https://gitee.com/anolis/cloud-kernel.git

2.运行编译脚本

+ sh build.sh



error: Failed build dependencies:



dwarves is needed by kernel-5.10.60-2.git.5df6b0a481cb.an8.x86_64



libcap-devel is needed by kernel-5.10.60-2.git.5df6b0a481cb.an8.x86_64



libcap-ng-devel is needed by kernel-5.10.60-2.git.5df6b0a481cb.an8.x86_64



rsync is needed by kernel-5.10.60-2.git.5df6b0a481cb.an8.x86_64



Building target platforms: x86_64



Building for target x86_64



script returned exit code 1

[期望结果]:

自动安装需要的依赖包

[实际结果]:

没有自动安装需要的依赖包

[原因定位]:
Comment 1 Shiloong admin 2021-12-31 14:22:40 UTC
编译内核是需要一些依赖工具包的, 这些工具包大部分anolis OS基础镜像都是默认不安装的.
毕竟基础镜像不是专门供开发使用开发环境, 比如gcc 默认就没有安装.
需要编译内核包等这类开发环境, 需要用户自行安装, 这个是预期的.