Project

General

Profile

Bug #16774

Don't require sub-word atomics

Added by schwab (Andreas Schwab) 4 months ago. Updated 4 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:97800]

Description

On some architectures (like RISC-V) sub-word atomics are only available
when linking against -latomic, but the configure script doesn't do that,
causing the atomic checks to fail and the resulting ruby binary is
non-functional. Ruby does not use sub-word atomic operations, rb_atomic_t
is defined to unsigned int, so use unsigned int when checking for atomic
operations.


Files

0001-Don-t-require-sub-word-atomics.patch (1.41 KB) 0001-Don-t-require-sub-word-atomics.patch schwab (Andreas Schwab), 04/10/2020 01:59 PM

Related issues

Has duplicate Ruby master - Bug #16800: [riscv64-linux] miniruby: thread_pthread.c:1935: rb_sigwait_fd_put: Assertion `old == th' failed. ClosedActions

Also available in: Atom PDF