Skip to contentSkip to conversation

linux-user: set minimum uname for RISC-V

PATCH In review Alex Bennée 2 participants 2 messages Apr 25, 2018 RISC-V

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 linux-user: set minimum uname for RISC-V

As support for RISC-V was only merged into the mainline kernel at 4.15 it is unlikely that glibc will be happy with a reported kernel version of 3.8.0. Indeed when I testing binaries created by the current Debian Sid compiler the tests failed with:

FATAL: kernel too old

Bump the version to the minimum a RISC-V glibc would expect:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/configure.ac

---
v2
- minor tweak to wording to make clearer and add link to glibc config

---
 linux-user/riscv/target_syscall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/riscv/target_syscall.h +1 -1
index d4e109a27f..ee81d8bc88 100644
@@ -45,7 +45,7 @@ struct target_pt_regs {
 #else
 #define UNAME_MACHINE "riscv64"
 #endif
-#define UNAME_MINIMUM_RELEASE "3.8.0"
+#define UNAME_MINIMUM_RELEASE "4.15.0"
 
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1
Signature · 1 line
2.17.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 10 lines · Alex Bennée

As support for RISC-V was only merged into the mainline kernel at 4.15 it is unlikely that glibc will be happy with a reported kernel version of 3.8.0. Indeed when I testing binaries created by the current Debian Sid compiler the tests failed with:

FATAL: kernel too old

Bump the version to the minimum a RISC-V glibc would expect:

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/configure.ac

This link point to the last version which might change over time, can we use instead the full link Peter suggested?

https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/riscv/configure.ac;h=4fae013ec91451370a6d14b15b7e6d37fcd669af;hb=HEAD

Quoted 4 lines
Quoted 22 lines

---
v2
- minor tweak to wording to make clearer and add link to glibc config

---
 linux-user/riscv/target_syscall.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
linux-user/riscv/target_syscall.h +1 -1
index d4e109a27f..ee81d8bc88 100644
@@ -45,7 +45,7 @@ struct target_pt_regs {
 #else
 #define UNAME_MACHINE "riscv64"
 #endif
-#define UNAME_MINIMUM_RELEASE "3.8.0"
+#define UNAME_MINIMUM_RELEASE "4.15.0"
 
 #define TARGET_MINSIGSTKSZ 2048
 #define TARGET_MLOCKALL_MCL_CURRENT 1