package/unscd: disable on riscv32
PATCH 1/1 package/unscd: disable on riscv32
unscd unconditionally uses __NR_clock_gettime which will raise the following build failure on riscv32:
nscd-0.54.c:339:14: error: '__NR_clock_gettime' undeclared (first use in this function); did you mean 'clock_gettime'?
339 | if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts))
| ^~~~~~~~~~~~~~~~~~
| clock_gettimeFixes:
- http://autobuild.buildroot.org/results/eb77b18f268d8e59c407f757662117a33d3f9ee3
--- package/unscd/Config.in | 2 ++ 1 file changed, 2 insertions(+)
package/unscd/Config.in +2 -0
@@ -1,5 +1,6 @@ config BR2_PACKAGE_UNSCD bool "unscd" + depends on !BR2_RISCV_32 depends on BR2_TOOLCHAIN_USES_GLIBC help Micro Name Service Caching Daemon
@@ -22,4 +23,5 @@ config BR2_PACKAGE_UNSCD http://busybox.net/~vda/unscd comment "unscd needs a glibc toolchain" + depends on !BR2_RISCV_32 depends on !BR2_TOOLCHAIN_USES_GLIBC
Signature · 1 line
2.30.2
Arnout Vandecappelle
AppliedPATCH 1/1 package/unscd: disable on riscv32
Quoted 4 lines · Fabrice Fontaine
unscd unconditionally uses
__NR_clock_gettimewhich will raise the following build failure on riscv32:nscd-0.54.c:339:14: error: '
__NR_clock_gettime' undeclared (first use in this function); did you mean 'clock_gettime'?
Quoted 8 lines
339 | if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts)) | ^~~~~~~~~~~~~~~~~~ | clock_gettimeFixes:
- http://autobuild.buildroot.org/results/eb77b18f268d8e59c407f757662117a33d3f9ee3Signed-off-by Fabrice Fontaine <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 22 lines
--- package/unscd/Config.in | 2 ++ 1 file changed, 2 insertions(+)package/unscd/Config.in +2
-0@@ -1,5 +1,6 @@ config BR2_PACKAGE_UNSCD bool "unscd" + depends on !BR2_RISCV_32 depends on BR2_TOOLCHAIN_USES_GLIBC help Micro Name Service Caching Daemon@@ -22,4 +23,5 @@ config BR2_PACKAGE_UNSCD http://busybox.net/~vda/unscd comment "unscd needs a glibc toolchain" + depends on !BR2_RISCV_32 depends on !BR2_TOOLCHAIN_USES_GLIBC
PATCH 1/1 package/unscd: disable on riscv32
In reply to Fabrice FontaineQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Fabrice" == Fabrice Fontaine <[email protected]> writes:
unscd unconditionally uses
__NR_clock_gettimewhich will raise the following build failure on riscv32:nscd-0.54.c:339:14: error: '
__NR_clock_gettime' undeclared (first use in this function); did you mean 'clock_gettime'?
Quoted 8 lines
339 | if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts)) | ^~~~~~~~~~~~~~~~~~ | clock_gettimeFixes:
- http://autobuild.buildroot.org/results/eb77b18f268d8e59c407f757662117a33d3f9ee3Signed-off-by Fabrice Fontaine <[email protected]>
Committed to 2021.02.x, thanks.
Signature · 1 line
Bye, Peter Korsgaard