[Buildroot] [PATCH 3/4] package/busybox: fix hwclock build issue on RISC-V 32-bit musl configs

Peter Korsgaard peter at korsgaard.com
Tue Feb 4 14:59:04 UTC 2025


>>>>> "Thomas" == Thomas Petazzoni via buildroot <buildroot at buildroot.org> writes:

 > Take a patch from meta-riscv, which was submitted upstream by Khem Raj
 > to fix a build issue on RISC-V 32-bit musl configurations. This issue
 > has been discussed with musl developers who believe this is a Busybox
 > issue. The patch from Khem works around the issue by making it a
 > runtime failure just affecting hwclock on RISC-V 32-bit musl instead
 > of a build failure. The correct fix is not really clear, as there
 > seems to be a disagreement between Busybox people and musl people on
 > what the C library settimeofday() function should do, and that's why
 > Busybox is bypassing settimeofday() on musl by making a direct system
 > call, except this system call doesn't exist on RISC-V 32-bit.

 > In the mean time, this patch fixes the long standing Gitlab CI issue:

 > - tests.toolchain.test_external_bootlin.TestExternalToolchainBootlinRiscv32ilp32dMuslStable
 >   https://gitlab.com/buildroot.org/buildroot/-/jobs/8954291684

 > - tests.toolchain.test_external_bootlin.TestExternalToolchainBootlinRiscv32ilp32dMuslBleedingEdge
 >   https://gitlab.com/buildroot.org/buildroot/-/jobs/8954291683

 > Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>

Committed to 2024.02.x and 2024.11.x, thanks.

-- 
Bye, Peter Korsgaard


More information about the buildroot mailing list