ent to 'struct cds_wfq_node **' from 'int' makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: old_tail = uatomic_xchg(&q->tail, &node->next); BUILDSTDERR: ^ BUILDSTDERR: In file included from compat_futex.c:31: BUILDSTDERR: ../include/urcu/arch.h:26:2: error: #error "Cannot build: unrecognized architecture detected." BUILDSTDERR: #error "Cannot build: unrecognized architecture detected." BUILDSTDERR: ^~~~~ BUILDSTDERR: ../include/urcu/static/wfqueue.h:90:2: warning: implicit declaration of function 'CMM_STORE_SHARED' [-Wimplicit-function-declaration] BUILDSTDERR: CMM_STORE_SHARED(*old_tail, node); BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: ../include/urcu/static/wfqueue.h: In function '___cds_wfq_node_sync_next': BUILDSTDERR: ../include/urcu/static/wfqueue.h:105:17: warning: implicit declaration of function 'CMM_LOAD_SHARED' [-Wimplicit-function-declaration] BUILDSTDERR: while ((next = CMM_LOAD_SHARED(node->next)) == NULL) { BUILDSTDERR: ^~~~~~~~~~~~~~~ BUILDSTDERR: ../include/urcu/static/wfqueue.h:105:15: warning: assignment to 'struct cds_wfq_node *' from 'int' makes pointer from integer without a cast [-Wint-conversion] BUILDSTDERR: while ((next = CMM_LOAD_SHARED(node->next)) == NULL) { BUILDSTDERR: ^ BUILDSTDERR: ../include/urcu/static/wfqueue.h:110:4: warning: implicit declaration of function 'caa_cpu_relax' [-Wimplicit-function-declaration] BUILDSTDERR: caa_cpu_relax(); BUILDSTDERR: ^~~~~~~~~~~~~ BUILDSTDERR: ../include/urcu/static/wfqueue.h: In function '___cds_wfq_dequeue_blocking': BUILDSTDERR: ../include/urcu/static/wfqueue.h:132:55: warning: comparison between pointer and integer BUILDSTDERR: if (q->head == &q->dummy && CMM_LOAD_SHARED(q->tail) == &q->dummy.next) BUILDSTDERR: ^~ BUILDSTDERR: make[1]: *** [Makefile:647: wfqueue.lo] Error 1 BUILDSTDERR: In file included from compat_futex.c:32: BUILDSTDERR: ../include/urcu/futex.h: In function 'futex': BUILDSTDERR: ../include/urcu/futex.h:65:17: error: '__NR_futex' undeclared (first use in this function); did you mean 'futex'? BUILDSTDERR: return syscall(__NR_futex, uaddr, op, val, timeout, BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: futex BUILDSTDERR: ../include/urcu/futex.h:65:17: note: each undeclared identifier is reported only once for each function it appears in BUILDSTDERR: compat_futex.c: In function 'compat_futex_noasync': BUILDSTDERR: compat_futex.c:70:2: warning: implicit declaration of function 'cmm_smp_mb' [-Wimplicit-function-declaration] BUILDSTDERR: cmm_smp_mb(); BUILDSTDERR: ^~~~~~~~~~ BUILDSTDERR: In file included from compat_futex.c:33: BUILDSTDERR: ../include/urcu/system.h:37:3: warning: implicit declaration of function 'cmm_smp_rmc' [-Wimplicit-function-declaration] BUILDSTDERR: cmm_smp_rmc(); \ BUILDSTDERR: ^~~~~~~~~~~ BUILDSTDERR: compat_futex.c:85:10: note: in expansion of macro 'CMM_LOAD_SHARED' BUILDSTDERR: while (CMM_LOAD_SHARED(*uaddr) == val) BUILDSTDERR: ^~~~~~~~~~~~~~~ make[1]: Leaving directory '/builddir/build/BUILD/userspace-rcu-0.10.1/src' BUILDSTDERR: make[1]: *** [Makefile:647: compat_futex.lo] Error 1 BUILDSTDERR: make: *** [Makefile:475: all-recursive] Error 1 RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.MRtd2U (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.MRtd2U (%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/userspace-rcu.spec