ain.c:12: BUILDSTDERR: ../../../src/include/storage/condition_variable.h:30:2: error: unknown type name 'slock_t' BUILDSTDERR: slock_t mutex; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from ../../../src/include/commands/trigger.h:17, BUILDSTDERR: from plpy_main.c:12: BUILDSTDERR: ../../../src/include/nodes/execnodes.h:1327:2: error: unknown type name 'slock_t' BUILDSTDERR: slock_t mutex; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from ../../../src/include/storage/condition_variable.h:25, BUILDSTDERR: from ../../../src/include/nodes/execnodes.h:31, BUILDSTDERR: from ../../../src/include/commands/trigger.h:17, BUILDSTDERR: from ../../../src/include/executor/spi.h:16, BUILDSTDERR: from plpy_planobject.h:8, BUILDSTDERR: from plpy_cursorobject.c:21: BUILDSTDERR: ../../../src/include/storage/s_lock.h:900:2: error: #error 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@postgresql.org. BUILDSTDERR: #error 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@postgresql.org. BUILDSTDERR: ^~~~~ BUILDSTDERR: ../../../src/include/storage/s_lock.h:972:25: error: unknown type name 'slock_t' BUILDSTDERR: extern int tas(volatile slock_t *lock); /* in port/.../tas.s, or BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ../../../src/include/storage/s_lock.h:982:8: error: unknown type name 'slock_t' BUILDSTDERR: extern slock_t dummy_spinlock; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: ../../../src/include/storage/s_lock.h:987:28: error: unknown type name 'slock_t' BUILDSTDERR: extern int s_lock(volatile slock_t *lock, const char *file, int line, const char *func); BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from ../../../src/include/nodes/execnodes.h:31, BUILDSTDERR: from ../../../src/include/commands/trigger.h:17, BUILDSTDERR: from ../../../src/include/executor/spi.h:16, BUILDSTDERR: from plpy_planobject.h:8, BUILDSTDERR: from plpy_cursorobject.c:21: BUILDSTDERR: ../../../src/include/storage/condition_variable.h:30:2: error: unknown type name 'slock_t' BUILDSTDERR: slock_t mutex; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: In file included from ../../../src/include/commands/trigger.h:17, BUILDSTDERR: from ../../../src/include/executor/spi.h:16, BUILDSTDERR: from plpy_planobject.h:8, BUILDSTDERR: from plpy_cursorobject.c:21: BUILDSTDERR: ../../../src/include/nodes/execnodes.h:1327:2: error: unknown type name 'slock_t' BUILDSTDERR: slock_t mutex; BUILDSTDERR: ^~~~~~~ BUILDSTDERR: make: *** [: plpy_cursorobject.o] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: make: *** [: plpy_exec.o] Error 1 BUILDSTDERR: make: *** [: plpy_main.o] Error 1 make: Leaving directory '/builddir/build/BUILD/postgresql-10.4/src/pl/plpython' RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.GSaHNd (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.GSaHNd (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/postgresql.spec