Bug 1311 - [Anolis OS 8.6][x86_64][min iso] 系统内无法安装gcc/gcc-c++
Summary: [Anolis OS 8.6][x86_64][min iso] 系统内无法安装gcc/gcc-c++
Status: RESOLVED BYDESIGN
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: Images&Installations (show other bugs) Images&Installations
Version: 8.6
Hardware: All Linux
: P3-Medium S3-normal
Target Milestone: ---
Assignee: 葛立伟
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 1338
  Show dependency tree
 
Reported: 2022-05-23 16:17 UTC by anolislw
Modified: 2022-05-30 11:30 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 anolislw alibaba_cloud_group 2022-05-23 16:17:56 UTC
[问题简述]
使用anolis-8.6-x86_64-minimal.iso该iso在物理机上装机,内核选用默认的anck: 4.19.91-26_rc3.an8.x86_64
进入系统,系统内没有预装gcc/gcc-c++,且iso images中Package中也未找到gcc与gcc-c++,请开发同学帮忙看看
是否是预期的?
iso: anolis-8.6-x86_64-minimal.iso

[期望结果]
anolis-8.6-x86_64-minima环境可以安装gcc与gcc-c++

[实际结果]
[root@localhost mnt]# mount | grep anolis  #将iso挂载到本地/mnt
/root/anolis-8.6-x86_64-minimal.iso on /mnt type iso9660 (ro,relatime,nojoliet,check=s,map=n,blocksize=2048)
[root@localhost mnt]# rpm -q gcc  #环境中未预装gcc
package gcc is not installed
[root@localhost mnt]# rpm -q gcc-++  #环境中未预装gcc-c++
package gcc-++ is not installed
[root@localhost mnt]# tree | grep gcc   #iso images Packages未找到gcc rpm
│   │   ├── libgcc-8.5.0-10.0.1.an8.x86_64.rpm
[root@localhost mnt]# tree | grep gcc-c++   #iso images Packages未找到gcc-c++ rpm
[root@localhost mnt]# tree | grep make
│   │   ├── make-4.2.1-11.an8.x86_64.rpm
│   │   ├── make-devel-4.2.1-11.an8.x86_64.rpm


[环境详情]
[root@localhost mnt]# uname -r
4.19.91-26_rc3.an8.x86_64
[root@localhost mnt]# cd
[root@localhost ~]# ll
total 2310148
-rw-------. 1 root root       1161 May 23 11:11 anaconda-ks.cfg
-rw-r--r--  1 root root 2365587456 May 23 13:25 anolis-8.6-x86_64-minimal.iso
[root@localhost ~]# uname -r
4.19.91-26_rc3.an8.x86_64
[root@localhost ~]# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.6"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.6"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.6"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"

[root@localhost ~]# cat /proc/cmdline
BOOT_IMAGE=(hd3,gpt2)/vmlinuz-4.19.91-26_rc3.an8.x86_64 root=/dev/mapper/ao00-root ro crashkernel=auto resume=/dev/mapper/ao00-swap rd.lvm.lv=ao00/root rd.lvm.lv=ao00/swap crashkernel=0M-2G:0M,2G-8G:192M,8G-:256M
[root@localhost ~]# 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
BIOS Vendor ID:      Zhaoxin
CPU family:          7
Model:               59
Model name:          ZHAOXIN KaiSheng KH-37800D@2.7GHz
BIOS Model name:     ZHAOXIN KaiSheng KH-37800D@2.7GHz
Stepping:            14
CPU MHz:             2700.000
CPU max MHz:         2700.0000
CPU min MHz:         1200.0000
BogoMIPS:            5389.19
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 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 split_lock_detect dtherm ida umip arch_capabilities
[root@localhost ~]# arch
x86_64

[复现步骤]
使用anolis-8.6-x86_64-minimal.iso装机
rpm -q gcc
rpm -q gcc-c++
Comment 1 葛立伟 alibaba_cloud_group 2022-05-23 16:46:31 UTC
这个我来确认一下,这个缺陷想说明是:
a>安装完成的系统上无法安装gcc?所以去minimal iso里找,然后找不到。
b>就是想表达,minimal iso里应该也需要ship gcc?

如果是b的话那 minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常的

最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?
Comment 2 anolislw alibaba_cloud_group 2022-05-23 20:09:05 UTC
(In reply to 葛立伟 from comment #1)
> 这个我来确认一下,这个缺陷想说明是:
> a>安装完成的系统上无法安装gcc?所以去minimal iso里找,然后找不到。
> b>就是想表达,minimal iso里应该也需要ship gcc?
> 
> 如果是b的话那 minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常的
> 
> 最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?

对,就是使用min iso安装系统,系统内第一未默认安装gcc,第二用iso搭建了本地源,也安装不了gcc/gcc-c++,
根据你说的 
“minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常”那这个环境这样情况就是正常的了
目前我们有个场景需要使min iso环境下去验证ltp稳定性,不过要编译用到的gcc
Comment 3 anolislw alibaba_cloud_group 2022-05-26 23:32:32 UTC
(In reply to 葛立伟 from comment #1)
> 这个我来确认一下,这个缺陷想说明是:
> a>安装完成的系统上无法安装gcc?所以去minimal iso里找,然后找不到。
> b>就是想表达,minimal iso里应该也需要ship gcc?
> 
> 如果是b的话那 minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常的
> 
> 最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?


回复下这个问题
最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?
---------------------------------------------------
首先:补充说明下,bugzilla中的问题安装环境具体如下:
      anolis-8.6-x86_64-minimal.iso在物理机上装机,装机时,
      软件配置(Base Environment)选择Server(勾选全部组件)系统启动后没有预装gcc
其次:使用了anolis-8.6-x86_64-dvd.iso装机,与anolis-8.6-x86_64-minimal.iso同样
      安装场景,系统中预装了gcc
Comment 4 葛立伟 alibaba_cloud_group 2022-05-30 11:22:07 UTC
(In reply to anolislw from comment #2)
> (In reply to 葛立伟 from comment #1)
> > 这个我来确认一下,这个缺陷想说明是:
> > a>安装完成的系统上无法安装gcc?所以去minimal iso里找,然后找不到。
> > b>就是想表达,minimal iso里应该也需要ship gcc?
> > 
> > 如果是b的话那 minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常的
> > 
> > 最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?
> 
> 对,就是使用min iso安装系统,系统内第一未默认安装gcc,第二用iso搭建了本地源,也安装不了gcc/gcc-c++,
> 根据你说的 
> “minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常”那这个环境这样情况就是正常的了
> 目前我们有个场景需要使min iso环境下去验证ltp稳定性,不过要编译用到的gcc

yum 源用不了么 ?
Comment 5 葛立伟 alibaba_cloud_group 2022-05-30 11:30:07 UTC
(In reply to anolislw from comment #3)
> (In reply to 葛立伟 from comment #1)
> > 这个我来确认一下,这个缺陷想说明是:
> > a>安装完成的系统上无法安装gcc?所以去minimal iso里找,然后找不到。
> > b>就是想表达,minimal iso里应该也需要ship gcc?
> > 
> > 如果是b的话那 minimal iso只有最基础的环境,这个是不包含开发环境的,所以是正常的
> > 
> > 最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?
> 
> 
> 回复下这个问题
> 最后有个问题,如果你使用dvd iso,选择与minimal同样的安装场景,是否也预装了gcc ?
> ---------------------------------------------------
> 首先:补充说明下,bugzilla中的问题安装环境具体如下:
>       anolis-8.6-x86_64-minimal.iso在物理机上装机,装机时,
>       软件配置(Base Environment)选择Server(勾选全部组件)系统启动后没有预装gcc
> 其次:使用了anolis-8.6-x86_64-dvd.iso装机,与anolis-8.6-x86_64-minimal.iso同样
>       安装场景,系统中预装了gcc

dvd有28个组件 minimal只有10几个,这些不一样。但开发环境组件都有,不同的是minimal的开发环境组件只能选择BaseOS中的包,额外引入appstream与minimal的设计初衷相悖。