Hi Poornima: This problem was also encountered by our team when building the latest container environment. Through investigation, it was found that the mock version was upgraded to version 2.2 when building the latest container compilation environment. The default configuration information of mock2.2 version will change the package manager from yum to dnf. So it caused ... The temporary countermeasures of our team are as follows: --------------------------------------------------- diff --git a / build-tools / repo_files / mock.cfg.proto b / build-tools / repo_files / mock.cfg.proto index 4ce1442..052e083 100644 --- a / build-tools / repo_files / mock.cfg.proto +++ b / build-tools / repo_files / mock.cfg.proto @@ -5,6 +5,8 @@ config_opts ['chroot_setup_cmd'] = 'install @ buildsys-build' config_opts ['dist'] = 'el7' # only useful for --resultdir variable subst config_opts ['releasever'] = '7' config_opts ['rpmbuild_networking'] = False + config_opts ['package_manager'] = 'yum' + config_opts ['use_bootstrap'] = False --------------------------------------------------- The modification method of the files mock.cfg.all.proto and mock.cfg.distro.proto refer to the same way above We hope the the information is helpful to you. Thank you! Best Regards -------------------------- From:Neusoft Team 发件人: N, Poornima Y <poornima.y.n@intel.com> 发送时间: 2020年5月19日 17:34 收件人: starlingx-discuss@lists.starlingx.io 主题: [Starlingx-discuss] Build error on latest master while doing layered build Hi all, I’m facing following error while doing build-pkgs for compiler layer. Any suggestion as to how I can resolve this error. Is there anything I have missed from my side? Below is small snippet of logs. Attaching the complete build log as well. Thanks in advance!. 13:33:31 INFO: mock.py version 2.2 starting (python version = 3.6.8)... 13:33:31 INFO: Using 'yum' instead of 'dnf' for bootstrap chroot 13:33:31 Start(bootstrap): init plugins 13:33:31 INFO: selinux disabled 13:33:31 Finish(bootstrap): init plugins 13:33:31 Start: init plugins 13:33:31 INFO: selinux disabled 13:33:31 Finish: init plugins 13:33:31 INFO: Signal handler active 13:33:31 Start: run 13:33:31 Start(bootstrap): chroot init 13:33:31 INFO: calling preinit hooks 13:33:31 INFO: enabled root cache 13:33:31 INFO: enabled package manager cache 13:33:31 Start(bootstrap): cleaning package manager metadata 13:33:31 Finish(bootstrap): cleaning package manager metadata 13:33:31 INFO: enabled HW Info plugin 13:33:31 Mock Version: 1.4.16 13:33:31 INFO: Mock Version: 1.4.16 13:33:31 Start(bootstrap): yum install 13:33:31 ERROR: Command failed: 13:33:31 # /usr/bin/yum --installroot /localdisk/loadbuild/stx/compiler/std/mock/b0-bootstrap/root/ --releasever 7 install dnf dnf-plugins-core 13:33:31 Failed to set locale, defaulting to C 13:33:31 http://127.0.0.1:8088/localdisk/loadbuild/stx/compiler/installer/rpmbuild/RP...: [Errno 14] HTTP Error 404 - Not Found 13:33:31 Trying other mirror. 13:33:31 To address this issue please refer to the below knowledge base article 13:33:31 13:33:31 https://access.redhat.com/articles/1320623 13:33:31 13:33:31 If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ 13:33:31 13:33:31 No package dnf available. 13:33:31 No package dnf-plugins-core available. 13:33:31 Error: Nothing to do 13:33:31 13:33:31 INFO: mock.py version 2.2 starting (python version = 3.6.8)... 13:33:31 INFO: Using 'yum' instead of 'dnf' for bootstrap chroot 13:33:31 Start(bootstrap): init plugins 13:33:31 INFO: selinux disabled 13:33:31 Finish(bootstrap): init plugins 13:33:31 Start: init plugins 13:33:31 INFO: selinux disabled 13:33:31 Finish: init plugins 13:33:31 INFO: Signal handler active 13:33:31 Start: run 13:33:31 INFO: Start(/localdisk/loadbuild/stx/compiler/std/rpmbuild/SRPMS/bash-4.2.46-31.el7.tis.4.src.rpm) Config(mock/b0) 13:33:31 Start(bootstrap): chroot init 13:33:31 INFO: calling preinit hooks 13:33:31 INFO: enabled root cache 13:33:31 INFO: enabled package manager cache 13:33:31 Start(bootstrap): cleaning package manager metadata 13:33:31 Finish(bootstrap): cleaning package manager metadata 13:33:31 INFO: enabled HW Info plugin 13:33:31 Mock Version: 1.4.16 13:33:31 INFO: Mock Version: 1.4.16 13:33:31 Start(bootstrap): yum install 13:33:31 ERROR: Exception(/localdisk/loadbuild/stx/compiler/std/rpmbuild/SRPMS/bash-4.2.46-31.el7.tis.4.src.rpm) Config(mock/b0) 0 minutes 0 seconds 13:33:31 INFO: Results and/or logs in: /localdisk/loadbuild/stx/compiler/std/results/stx-compiler-3.0-std/bash-4.2.46-31.el7.tis.4 13:33:31 ERROR: Command failed: 13:33:31 # /usr/bin/yum --installroot /localdisk/loadbuild/stx/compiler/std/mock/b0-bootstrap/root/ --releasever 7 install dnf dnf-plugins-core 13:33:31 Failed to set locale, defaulting to C 13:33:31 http://127.0.0.1:8088/localdisk/loadbuild/stx/compiler/installer/rpmbuild/RP...: [Errno 14] HTTP Error 404 - Not Found 13:33:31 Trying other mirror. 13:33:31 To address this issue please refer to the below knowledge base article 13:33:31 13:33:31 https://access.redhat.com/articles/1320623 13:33:31 13:33:31 If above article doesn't help to resolve this issue please create a bug on https://bugs.centos.org/ 13:33:31 13:33:31 No package dnf available. 13:33:31 No package dnf-plugins-core available. 13:33:31 Error: Nothing to do 13:33:31 13:33:31 End build on 'b0': /localdisk/loadbuild/stx/compiler/std/rpmbuild/SRPMS/bash-4.2.46-31.el7.tis.4.src.rpm 13:33:31 Error building bash-4.2.46-31.el7.tis.4.src.rpm on 'b0'. 13:33:31 Will try to build again (if some other package will succeed). --------------------------------------------------------------------------------------------------- Confidentiality Notice: The information contained in this e-mail and any accompanying attachment(s) is intended only for the use of the intended recipient and may be confidential and/or privileged of Neusoft Corporation, its subsidiaries and/or its affiliates. If any reader of this communication is not the intended recipient,unauthorized use,forwarding, printing, storing, disclosure or copying is strictly prohibited, and may be unlawful.If you have received this communication in error,please immediately notify the sender by return e-mail, and delete the original message and all copies from your system. Thank you. ---------------------------------------------------------------------------------------------------