Bug 284 - [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64][RC2]开发环境测试语言项安装 rust 成功,但编译失败
Summary: [Anolis OS 8.4 龙芯版][4.19.190-3.an8.loongarch64][RC2]开发环境测试语言项安装 rust 成功,但编译失败
Status: RESOLVED FIXED
Alias: None
Product: Anolis OS 8
Classification: Anolis OS
Component: BaseOS Packages (show other bugs) BaseOS Packages
Version: 8.4
Hardware: loongarch Linux
: P3-Medium S2-major
Target Milestone: ---
Assignee: wenlong
QA Contact: shuming
URL:
Whiteboard:
Keywords:
Depends on: 195
Blocks:
  Show dependency tree
 
Reported: 2022-01-06 11:59 UTC by xugangjian
Modified: 2022-03-25 08:20 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 xugangjian alibaba_cloud_group 2022-01-06 11:59:27 UTC
[问题描述]
龙芯 Anolis OS 8.4 loongarch64开发环境测试语言项安装rust 成功后,编译时失败

[root@localhost test]# cat hello_world.rs
fn main() {
    println!(" Rs: Hello, world!");
}
[root@localhost test]#
[root@localhost test]#
[root@localhost test]# rustc hello_world.rs
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
'+loongarch64' is not a recognized feature for this target (ignoring feature)
'gs464v' is not a recognized processor for this target (ignoring processor)
'gs464v' is not a recognized processor for this target (ignoring processor)
Segmentation fault (core dumped)
[root@localhost test]#


[环境信息]:
内核信息:
# uname -r
4.19.190-3.an8.loongarch64


操作系统信息:
# cat /etc/os-release
NAME="Anolis OS"
VERSION="8.4"
ID="anolis"
ID_LIKE="rhel fedora centos"
VERSION_ID="8.4"
PLATFORM_ID="platform:an8"
PRETTY_NAME="Anolis OS 8.4"
ANSI_COLOR="0;31"
HOME_URL="https://openanolis.cn/"


cpu信息:
# lscpu
Architecture: loongarch64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s) list: 0-3
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
NUMA node(s): 1
CPU family: Loongson-64bit
Model name: Loongson-3A5000LL
BogoMIPS: 4600.00
L1d cache: 64K
L1i cache: 64K
L2 cache: 256K
L3 cache: 16384K
NUMA node0 CPU(s): 0-3
Flags: cpucfg lam ual fpu lsx lasx complex crypto lvz lbt_x86 lbt_arm lbt_mips

内存信息:
# free -h
              total used free shared buff/cache available
Mem: 15Gi 578Mi 14Gi 15Mi 460Mi 13Gi
Swap: 7.9Gi 0B 7.9Gi


[期望结果]:
rust 安装后能正常编译使用

[实际结果]:
rust 编译失败
Comment 1 xugangjian alibaba_cloud_group 2022-01-06 12:00:15 UTC
当前已和geliwei沟通,由liwei反馈到龙芯的同学
Comment 2 wenlong loongson_group 2022-01-07 11:44:53 UTC
由于工具链变更,rust是基于老版本工具链进行适配的,与当前新版本工具链不匹配导致,需重新适配rust
Comment 3 葛立伟 alibaba_cloud_group 2022-01-17 14:34:01 UTC
后续通过yum更新,降低优先级
Comment 4 葛立伟 alibaba_cloud_group 2022-01-27 20:12:25 UTC
fixed by rust-1.41.1-1.an8