[Buildroot] [PATCH 1/1] package/mesa3d: fix build on riscv32

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Aug 21 19:08:07 UTC 2021


On Sat, 21 Aug 2021 18:05:09 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:

> Fix the following build failure on riscv32:
> 
> ../src/util/futex.h: In function 'sys_futex':
> ../src/util/futex.h:39:19: error: 'SYS_futex' undeclared (first use in this function); did you mean 'sys_futex'?
>    39 |    return syscall(SYS_futex, addr1, op, val1, timeout, addr2, val3);
>       |                   ^~~~~~~~~
>       |                   sys_futex
> 
> Fixes:
>  - http://autobuild.buildroot.org/results/692700a5f967760a0b8cd358b1712f1d5a7b681e
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>

> ++#ifndef SYS_futex
> ++#define SYS_futex SYS_futex_time64
> ++#endif

Are we sure that SYS_futex is exactly equivalent to SYS_futex_time64 ?
In another e-mail thread Arnout said they are not exactly equivalent.

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list