https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97182
--- Comment #5 from Jim Wilson <wilson at gcc dot gnu.org> --- I see that a riscv64-linux libgomp.so has mutex calls and no obvious futex calls. Though I find it a little curious that futex support isn't auto-detected. There is already config/futex.m4 to detect futex support, and libstdc++ is using it. So yes, we are missing riscv*-linux futex support in libgomp.