in-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -g -rdynamic -Wformat -Werror=format-security -Werror=implicit-function-declaration -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -g -rdynamic -Wformat -Werror=format-security -Werror=implicit-function-declaration -module -avoid-version -export-symbols ../../../../xlators/xlator.sym -luuid -Wl,--no-undefined -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -o write-behind.la -rpath /usr/lib64/glusterfs/5.2/xlator/performance write-behind.lo ../../../../libglusterfs/src/libglusterfs.la -lrt -ldl -lpthread -lcrypto libtool: link: echo "{ global:" > .libs/write-behind.ver libtool: link: cat ../../../../xlators/xlator.sym | sed -e "s/\(.*\)/\1;/" >> .libs/write-behind.ver libtool: link: echo "local: *; };" >> .libs/write-behind.ver libtool: link: gcc -shared -fPIC -DPIC .libs/write-behind.o ../../../../libglusterfs/src/.libs/libglusterfs.so -ltirpc -lz -lm -luuid -lrt -ldl -lpthread -lcrypto -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -O2 -g -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -g -O2 -g -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -g -Wl,--no-undefined -Wl,-z -Wl,relro -Wl,--as-needed -Wl,-z -Wl,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,-soname -Wl,write-behind.so -Wl,-version-script -Wl,.libs/write-behind.ver -o .libs/write-behind.so BUILDSTDERR: /usr/bin/ld: .libs/write-behind.o: in function `wb_flush_helper': BUILDSTDERR: /builddir/build/BUILD/glusterfs-5.2/xlators/performance/write-behind/src/write-behind.c:1987: undefined reference to `__atomic_exchange_1' BUILDSTDERR: /usr/bin/ld: .libs/write-behind.o: in function `__wb_preprocess_winds': BUILDSTDERR: /builddir/build/BUILD/glusterfs-5.2/xlators/performance/write-behind/src/write-behind.c:1418: undefined reference to `__atomic_exchange_1' BUILDSTDERR: /usr/bin/ld: .libs/write-behind.o: in function `list_del_init': BUILDSTDERR: /builddir/build/BUILD/glusterfs-5.2/xlators/performance/write-behind/src/../../../../libglusterfs/src/list.h:85: undefined reference to `__atomic_exchange_1' BUILDSTDERR: /usr/bin/ld: .libs/write-behind.o: in function `__wb_handle_failed_conflict': BUILDSTDERR: /builddir/build/BUILD/glusterfs-5.2/xlators/performance/write-behind/src/write-behind.c:1526: undefined reference to `__atomic_exchange_1' BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make[5]: *** [Makefile:520: write-behind.la] Error 1 BUILDSTDERR: make[4]: *** [Makefile:461: all-recursive] Error 1 BUILDSTDERR: make[3]: *** [Makefile:463: all-recursive] Error 1 BUILDSTDERR: make[2]: *** [Makefile:467: all-recursive] Error 1 BUILDSTDERR: make[1]: *** [Makefile:596: all-recursive] Error 1 BUILDSTDERR: make: *** [Makefile:489: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.Ne0U79 (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.Ne0U79 (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, 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/glusterfs.spec