[Webkit-unassigned] [Bug 284929] New: Build fails on architectures without SYS_futex

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 18 20:02:13 PST 2024


https://bugs.webkit.org/show_bug.cgi?id=284929

            Bug ID: 284929
           Summary: Build fails on architectures without SYS_futex
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: New Bugs
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: raj.khem at gmail.com

__NR_futex is not defines by newer architectures e.g. arc, riscv32 as
they only have 64bit variant of time_t. Glibc defines SYS_futex interface based
on __NR_futex, since this is used in applications, such applications start
to fail to build for these newer architectures. This patch defines a
fallback to alias __NR_futex to __NR_futex_tim64 so SYS_futex keeps
working

Currently builds on riscv32 e.g. fails like below.

| /mnt/b/yoe/master/build/tmp/work/riscv32-yoe-linux/webkitgtk/2.46.4/webkitgtk-2.46.4/Source/ThirdParty/ANGLE/src/common/SimpleMutex.cpp:36:13: error: use of undeclared identifier 'SYS_futex'
|    36 |     syscall(SYS_futex, addr, op, val, nullptr, nullptr, val3);
|       |             ^
| 1 error generated.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241219/a1cf4c64/attachment.htm>


More information about the webkit-unassigned mailing list