Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

loongarch64-unknown-linux-gnu编译后能否在Loongson-3A4000上跑呢? #28

Open
HysUnknown opened this issue Dec 25, 2023 · 1 comment

Comments

@HysUnknown
Copy link

最近有一个法院的项目需要rust语言在x86 Ubuntu系统上跨平台交叉编译应用程序到Loongson-3A4000的笔记本电脑上。问一下编译loongarch64-unknown-linux-gnu能否在Loongson-3A4000上跑?
lscpu:
Architecture: mips64
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
Model name: Loongson-3A R4 (Loongson-3A4000)

@HysUnknown HysUnknown changed the title loongarch64-unknown-linux-gnu编译后能否在Loongson-3A4000上包呢 loongarch64-unknown-linux-gnu编译后能否在Loongson-3A4000上跑呢? Dec 25, 2023
@jiegec
Copy link

jiegec commented Dec 26, 2023

3A4000 采用的是 MIPS 指令集,而不是 LoongArch 指令集。你需要找一个 MIPS 的交叉编译工具链。另外,Rust 自带一定的交叉编译能力(基于 LLVM),建议尝试。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants