'/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 setting SOURCE_DATE_EPOCH=1564012800 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.5fGDjU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf memtester-4.3.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/memtester-4.3.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd memtester-4.3.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (memtester-4.0.8-debuginfo.patch): + echo 'Patch #0 (memtester-4.0.8-debuginfo.patch):' + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .debuginfo --fuzz=0 patching file conf-ld patching file Makefile Hunk #1 succeeded at 78 (offset 3 lines). + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.SIeaGW + umask 022 + cd /builddir/build/BUILD + cd memtester-4.3.0 + make -j4 -e 'OPT=-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' ( cat warn-auto.sh; \ echo CC=\'`head -1 conf-cc`\'; \ echo LD=\'`head -1 conf-ld`\' \ ) > auto-ccld.sh cat auto-ccld.sh make-compile.sh > make-compile cat auto-ccld.sh find-systype.sh > find-systype cat auto-ccld.sh make-load.sh > make-load chmod 755 make-compile chmod 755 find-systype chmod 755 make-load ./find-systype > systype ( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \ compile ( cat warn-auto.sh; ./make-load "`cat systype`" ) > load ./extra-libs.sh "`cat systype`" >extra-libs chmod 755 compile chmod 755 load ./compile -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 memtester.c ./compile -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 tests.c memtester.c: In function 'main': memtester.c:142:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 142 | if (env_testmask = getenv("MEMTESTER_TEST_MASK")) { | ^~~~~~~~~~~~ ./load memtester tests.o `cat extra-libs` /usr/bin/ld: tests.o: in function `.LANCHOR1': /builddir/build/BUILD/memtester-4.3.0/types.h:36: multiple definition of `mword16'; memtester.o:/builddir/build/BUILD/memtester-4.3.0/types.h:36: first defined here /usr/bin/ld: tests.o: in function `.LANCHOR1': /builddir/build/BUILD/memtester-4.3.0/types.h:31: multiple definition of `mword8'; memtester.o:/builddir/build/BUILD/memtester-4.3.0/types.h:31: first defined here collect2: error: ld returned 1 exit status make: *** [Makefile:78: memtester] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.SIeaGW (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.SIeaGW (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.8/site-packages/mockbuild/trace_decorator.py", line 95, in trace result = func(*args, **kw) File "/usr/lib/python3.8/site-packages/mockbuild/util.py", line 746, 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/memtester.spec