Robert Henry <rrh.henry@gmail.com> writes:
> Building Postgres from scratch on the riscv board, no fancy cross
> compilation, I get:
> PostgreSQL does not have native spinlock support on this platform. To
> continue the compilation, rerun configure using --disable-spinlocks.
> However, performance will be poor. Please report this to
> pgsql-bugs@lists.postgresql.org.
The last we heard about RISC-V was this thread:
https://www.postgresql.org/message-id/flat/20161119230312.GA8656%40redhat.com
If things seem to work well now with --disable-spinlocks, maybe you
could test the patch suggested in that thread. TBH, though, my preference
would be for some assembly code rather than relying on GCC builtins
as Richard's patch did.
regards, tom lane