Bug 169 - 【Anolis OS7.7】【aarch64】缺少软件包导致编译失败
Summary: 【Anolis OS7.7】【aarch64】缺少软件包导致编译失败
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 7
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 7.7
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 云霭
QA Contact: 云霭
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-22 15:23 UTC by 云霭
Modified: 2022-01-14 10:04 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 云霭 2021-12-22 15:23:27 UTC
【缺陷描述】 
缺少软件包导致编译失败
缺少:
devtoolset-9-build
devtoolset-9-binutils
devtoolset-9-gcc
devtoolset-9-make
asciidoc
perl

【重现环境】 
云上ECS
cat /etc/os-release
NAME="Anolis OS"
VERSION="7.7"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.7"
PRETTY_NAME="Anolis OS 7.7"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"
BUG_REPORT_URL="https://bugs.openanolis.cn/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

【重现步骤】 
git clone -b an7-4.19 https://gitee.com/src-anolis-plus/ck-build.git
cd ck-build
git clone -b devel-4.19 https://gitee.com/anolis/cloud-kernel.git
cd ..
sh build.sh
【重现概率】 
必现
【期望结果】 
编译成功
【实际结果】 
编译失败,报错:
error: Failed build dependencies:
	devtoolset-9-build is needed by kernel-4.19.91-6.git.07da018.an7.aarch64
	devtoolset-9-binutils is needed by kernel-4.19.91-6.git.07da018.an7.aarch64
	devtoolset-9-gcc is needed by kernel-4.19.91-6.git.07da018.an7.aarch64
	devtoolset-9-make is needed by kernel-4.19.91-6.git.07da018.an7.aarch64
	asciidoc is needed by kernel-4.19.91-6.git.07da018.an7.aarch64
	perl(ExtUtils::Embed) is needed by kernel-4.19.91-6.git.07da018.an7.aarch64

尝试手动安装:
[root@iZ2zed5hefa2efnnakqwwpZ ~]# yum install -y asciidoc perl devtoolset-9-build devtoolset-9-binutils devtoolset-9-gcc devtoolset-9-make
已加载插件:langpacks
没有可用软件包 asciidoc。
软件包 4:perl-5.16.3-297.an7.aarch64 已安装并且是最新版本
没有可用软件包 devtoolset-9-build。
没有可用软件包 devtoolset-9-binutils。
没有可用软件包 devtoolset-9-gcc。
没有可用软件包 devtoolset-9-make。
无须任何处理
Comment 1 zhangtaikun uniontech_group 2021-12-31 10:26:57 UTC
解决方法:
1.导入以下版本包:
asciidoc-8.6.8-5 ,source-highlight-3.1.6-6,source-highlight-devel3.1.6-6 
整个devtoolset-9 组件
(包括 devtoolset-9-build
devtoolset-9-binutils
devtoolset-9-gcc
devtoolset-9-make)

2.下载 asciidoc-8.6.8-5 ,source-highlight-3.1.6-6,source-highlight-devel3.1.6-6 
整个devtoolset-9 rpm 包,然后手工安装。
  在源文件中新增 第三方源:baseurl=https://buildlogs.centos.org/c7-devtoolset-9.aarch64/
然后再进行编译。

编译之前安装依赖 :yum-builddep kernel.spec 
执行 sh build.sh 进行编译
Comment 2 杨晓旋 uniontech_group 2022-01-04 10:05:26 UTC
asciidoc pkg will be update in anolis 7.9 RC2 , we had build it as below:

http://build.openanolis.cn/buildinfo?buildID=13673


perl(ExtUtils::Embed)  is not provide by perl, perl has more modules. you should install it by command : yum install perl-ExtUtils-Embed , good luck!


Developers should solve the content of the development environment by themselves. The software source warehouse does not maintain the sclo source yet.
Comment 3 yunqi-zwt alibaba_cloud_group 2022-01-14 10:04:02 UTC
resolved