-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix constants of RISC-V32 musl #4335
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
Conversation
Has it always been this way, or did this change with musl 1.2's change to 64-bit |
musl land the support of riscv32 in 1.2.5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. Thanks for the fixes!
@rustbot label +stable-nominated
(backport <rust-lang#4335>) (cherry picked from commit 60b8b39)
(backport <rust-lang#4335>) (cherry picked from commit 9f7b63f)
(backport <rust-lang#4335>) (cherry picked from commit 5c778ef)
(backport <rust-lang#4335>) (cherry picked from commit 60a445c)
Description
Fix #4331
RISC-V 32 don't define
__ARCH_WANT_NEW_STAT
and__ARCH_WANT_TIME32_SYSCALLS
, and it only has time64 syscall.Sources
https://github.com/torvalds/linux/blob/88d324e69ea9f3ae1c1905ea75d717c08bdb8e15/include/uapi/asm-generic/unistd.h
https://github.com/bminor/musl/blob/c47ad25ea3b484e10326f933e927c0bc8cded3da/include/dlfcn.h
https://github.com/bminor/musl/blob/c47ad25ea3b484e10326f933e927c0bc8cded3da/arch/generic/bits/fcntl.h
https://github.com/bminor/musl/blob/c47ad25ea3b484e10326f933e927c0bc8cded3da/arch/riscv32/bits/signal.h#L77
Checklist
libc-test/semver
have been updated*LAST
or*MAX
areincluded (see #3131)
cd libc-test && cargo test --target mytarget
);especially relevant for platforms that may not be checked in CI
The test is broken
Wait #4283 for fix of test