【缺陷描述】 缺少软件包导致编译失败 缺少: 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。 无须任何处理
解决方法: 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 进行编译
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.
resolved