rv/stage2_p/build/Main.p_o utils/iserv/stage2_p/build/cbits/iservmain.p_o Warning: -rtsopts and -with-rtsopts have no effect with -no-hs-main. Call hs_init_ghc() from your main() function to set these options. /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(NonMovingMark.thr_p_o): in function `cas_word8': /builddir/build/BUILD/ghc-8.10.7/includes/stg/SMP.h:300:0: error: undefined reference to `__atomic_compare_exchange_1' | 300 | __atomic_compare_exchange_n(p, &o, n, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); | ^ /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(NonMovingMark.thr_p_o): in function `markQueuePushClosure_': /builddir/build/BUILD/ghc-8.10.7/rts/sm/NonMovingMark.c:779:0: error: undefined reference to `__atomic_compare_exchange_1' | 779 | markQueuePushClosure(q, p, NULL); | ^ /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(Evac.thr_p_o): in function `evacuate_large': /builddir/build/BUILD/ghc-8.10.7/rts/sm/Evac.c:439:0: error: undefined reference to `__atomic_fetch_or_2' | 439 | __atomic_fetch_or(&bd->flags, BF_EVACUATED, __ATOMIC_ACQ_REL); | ^ /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/sm/Evac.c:441: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(Evac.thr_p_o): in function `evacuate_compact': /builddir/build/BUILD/ghc-8.10.7/rts/sm/Evac.c:600:0: error: undefined reference to `__atomic_fetch_or_2' | 600 | __atomic_fetch_or(&bd->flags, BF_NONMOVING, __ATOMIC_RELAXED); | ^ /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(Evac_thr.thr_p_o): in function `evacuate_large': /builddir/build/BUILD/ghc-8.10.7/rts/sm/Evac.c:439:0: error: undefined reference to `__atomic_fetch_or_2' | 439 | __atomic_fetch_or(&bd->flags, BF_EVACUATED, __ATOMIC_ACQ_REL); | ^ /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/sm/Evac.c:441: undefined reference to `__atomic_fetch_or_2' /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(Evac_thr.thr_p_o):/builddir/build/BUILD/ghc-8.10.7/rts/sm/Evac.c:600: more undefined references to `__atomic_fetch_or_2' follow /usr/bin/ld.bfd: /builddir/build/BUILD/ghc-8.10.7/rts/dist/build/libHSrts_thr_p.a(Inlines.thr_p_o): in function `cas_word8': /builddir/build/BUILD/ghc-8.10.7/includes/stg/SMP.h:300:0: error: undefined reference to `__atomic_compare_exchange_1' | 300 | __atomic_compare_exchange_n(p, &o, n, 0, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST); | ^ collect2: error: ld returned 1 exit status `gcc' failed in phase `Linker'. (Exit code: 1) make[1]: *** [utils/iserv/ghc.mk:104: utils/iserv/stage2_p/build/tmp/ghc-iserv-prof] Error 1 make[1]: *** Waiting for unfinished jobs.... <> <> make: *** [Makefile:128: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.DwPE9y (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.DwPE9y (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.9/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.9/site-packages/mockbuild/util.py", line 600, in do_with_status 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/ghc.spec