Bug 178 - [Anolis7.9-iso][anck][x86_64/aarch_64]yum安装libbcc需要依赖clang-libs = 7.0.1
Summary: [Anolis7.9-iso][anck][x86_64/aarch_64]yum安装libbcc需要依赖clang-libs = 7.0.1
Status: CLOSED INVALID
Alias: None
Product: Anolis OS 7
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 7.9
Hardware: x86_64 Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: yunqi-zwt
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-22 17:04 UTC by shanxifanshi
Modified: 2023-07-25 16:59 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shanxifanshi alibaba_cloud_group 2021-12-22 17:04:02 UTC
[问题描述]
兆芯物理机,使用anolis7.9 x86 RC1 iso装机,由于物理机所在网络限制无法连接外网,装机后的系统yum源采用iso挂载方式,搭建的本地源
在yum install libbcc时缺少依赖clang-libs = 7.0.1

[环境信息]:
内核信息:
# uname -r
4.19.91-25.an7.x86_64

操作系统信息:
# cat /etc/os-release
NAME="Anolis OS"
VERSION="7.9"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="7.9"
PRETTY_NAME="Anolis OS 7.9"
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"

CPU信息:
# lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                16
On-line CPU(s) list:   0-15
Thread(s) per core:    1
Core(s) per socket:    8
Socket(s):             2
NUMA node(s):          2
Vendor ID:             CentaurHauls
CPU family:            7
Model:                 59
Model name:            ZHAOXIN KaiSheng KH-37800D@2.7GHz
Stepping:              14
CPU MHz:               1200.000
CPU max MHz:           2700.0000
CPU min MHz:           1200.0000
BogoMIPS:              5389.29
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              4096K
NUMA node0 CPU(s):     0-7
NUMA node1 CPU(s):     8-15
Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc arch_perfmon rep_good nopl xtopology nonstop_tsc cpuid pni pclmulqdq monitor vmx smx est tm2 ssse3 cx16 xtpr pcid sse4_1 sse4_2 movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand rng rng_en sm3 sm4 sm3_en sm4_en ace ace_en ace2 phe phe_en pmm pmm_en parallax parallax_en rng2 rng2_en phe2 phe2_en rsa rsa_en lahf_lm abm 3dnowprefetch invpcid_single ibrs ibpb tpr_shadow vnmi ept vpid fsgsbase tsc_adjust bmi1 smep bmi2 invpcid rdseed adx sha_ni xsaveopt dtherm ida umip arch_capabilities

[期望结果]:
可以成功安装libbcc包

[实际结果]:
安装libbcc包失败
# yum install libbcc
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libbcc.x86_64 0:0.16.0-1.an7 will be installed
--> Processing Dependency: clang-libs = 7.0.1 for package: libbcc-0.16.0-1.an7.x86_64
--> Finished Dependency Resolution
Error: Package: libbcc-0.16.0-1.an7.x86_64 (79-anck-x86)
           Requires: clang-libs = 7.0.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

[问题发生概率]:必现

[复现步骤]:	
yum -y install libbcc
Comment 1 shanxifanshi alibaba_cloud_group 2021-12-23 15:15:14 UTC
在飞腾机器上测试arm内核也存在同样问题:
# yum install libbcc
Loaded plugins: fastestmirror, langpacks, product-id, search-disabled-repos, subscription-manager

This system is not registered with an entitlement server. You can use subscription-manager to register.

Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package libbcc.aarch64 0:0.16.0-1.an7 will be installed
--> Processing Dependency: clang-libs = 7.0.1 for package: libbcc-0.16.0-1.an7.aarch64
--> Finished Dependency Resolution
Error: Package: libbcc-0.16.0-1.an7.aarch64 (local)
           Requires: clang-libs = 7.0.1
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

内核信息:
# uname -r
4.19.91-25.an7.aarch64
Comment 2 xiezhongtian uniontech_group 2021-12-30 15:22:42 UTC
Hi man , sorry to late. 

UOS developer checked the Requires: clang-libs = 7.0.1 , it not provide by anolis os 7.9 rc1 mirrors or repo. some details as below:

llvm-libs-7.0.1-4.4.al7.x86_64 
clang-libs-7.0.1-9.3.al7.x86_64 
clang-tools-extra-7.0.1-9.3.al7.x86_64 

al7 maybe come from alinux repo, please Confirmed anolis need it indeed , and then add Requires packages to dist-an7 or dist-an7-updates.
Comment 3 yunqi-zwt alibaba_cloud_group 2022-01-04 16:32:25 UTC
配置 https://mirrors.aliyun.com/alinux/2/plus/$arch/  yum repo 可以解决你的问题。
Comment 4 shanxifanshi alibaba_cloud_group 2023-07-25 16:59:20 UTC
如开发评论,在repo源中包含即可,关闭该bug