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

Update libc to support loongarch64 #6

Merged
merged 1 commit into from
May 29, 2024
Merged

Conversation

zhaixiaojuan
Copy link
Contributor

@zhaixiaojuan zhaixiaojuan commented May 29, 2024

The LoongArch architecture (LoongArch) is an Instruction Set Architecture (ISA) that has a RISC style.
Documentations:
ISA:
https://loongson.github.io/LoongArch-Documentation/LoongArch-Vol1-EN.html
ABI:
https://loongson.github.io/LoongArch-Documentation/LoongArch-ELF-ABI-EN.html
More docs can be found at:
https://loongson.github.io/LoongArch-Documentation/README-EN.html

Due to the lower version of libc, an error occurs when compiling on the loongarch64 architecture:

error[E0412]: cannot find type `c_long` in the crate root
  --> /home/alpine/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libc-0.2.124/src/unix/mod.rs:76:24
   |
76 |         pub tv_nsec: ::c_long,
   |                        ^^^^^^ not found in the crate root
   |
help: consider importing this type alias
   |
146+         use ffi::c_long;
   |
help: if you import `c_long`, refer to it directly
   |
76 -         pub tv_nsec: ::c_long,
76 +         pub tv_nsec: c_long,
   |

@KuabeM
Copy link
Owner

KuabeM commented May 29, 2024

Thank you! I'll merge this and probably to a quick release afterwards :)

@KuabeM KuabeM merged commit 0d6e324 into KuabeM:master May 29, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants