Mock Version: 1.4.14 Mock Version: 1.4.14 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ambdec.spec'], chrootPath='/var/lib/mock/f31-build-75063-31198/root'env={'TERM': 'vt100', 'SHELL': '/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'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/ambdec.spec'] with env {'TERM': 'vt100', 'SHELL': '/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=1531353600 Wrote: /builddir/build/SRPMS/ambdec-0.5.1-17.fc31.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ambdec.spec'], chrootPath='/var/lib/mock/f31-build-75063-31198/root'env={'TERM': 'vt100', 'SHELL': '/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'}shell=Falselogger=timeout=345600uid=986gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/ambdec.spec'] with env {'TERM': 'vt100', 'SHELL': '/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=1531353600 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.DFlqNH + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf ambdec-0.5.1 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/ambdec-0.5.1.tar.bz2 + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd ambdec-0.5.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /builddir/build/SOURCES/ambdec-manual.pdf ambdec-manual.pdf + sed -e 's|-march=native|-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|' -e 's|-O2 -ffast-math||' -i source/Makefile + RPM_EC=0 BUILDSTDERR: ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.OBCEuE + umask 022 + cd /builddir/build/BUILD + cd ambdec-0.5.1 + pushd source + make PREFIX=/usr 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lpthread ' -j4 BUILDSTDERR: confwin.cc: In member function 'virtual void Confwin::handle_callb(int, X_window*, XEvent*)': BUILDSTDERR: confwin.cc:248:8: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 248 | chdir (_filewin->wdir ()); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: confwin.cc:266:8: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 266 | chdir (_filewin->wdir ()); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~~~~~~ BUILDSTDERR: filewin.cc: In member function 'void Filewin::show(const char*, const char*)': BUILDSTDERR: filewin.cc:248:12: warning: ignoring return value of 'char* getcwd(char*, size_t)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 248 | getcwd (_cdir, 1024); BUILDSTDERR: | ~~~~~~~^~~~~~~~~~~~~ BUILDSTDERR: filewin.cc: In member function 'void Filewin::hide(int)': BUILDSTDERR: filewin.cc:256:11: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 256 | chdir (_cdir); BUILDSTDERR: | ~~~~~~^~~~~~~ ~/build/BUILD/ambdec-0.5.1/source ~/build/BUILD/ambdec-0.5.1 g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o ambdec.o ambdec.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o styles.o styles.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o mainwin.o mainwin.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o confwin.o confwin.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o radbut.o radbut.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o filewin.o filewin.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o jclient.o jclient.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o nffilt.o nffilt.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o xover2.o xover2.cc BUILDSTDERR: g++ -Wall -MMD -MP -Dpng2img.cc: In function 'XImage* png2img(const char*, X_display*, XftColor*)': BUILDSTDERR: png2img.cc:45:11: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result] BUILDSTDERR: 45 | fread (hdr, 1, 8, F); BUILDSTDERR: | ~~~~~~^~~~~~~~~~~~~~ BUILDSTDERR: adconf.cc: In member function 'void AD_conf::default_label()': BUILDSTDERR: adconf.cc:888:74: warning: '%d' directive writing between 1 and 10 bytes into a region of size 4 [-Wformat-overflow=] BUILDSTDERR: 888 | for (int i = 0; i < _dec.nspkr; i++) sprintf (_speakers [i]._label, "%d", i + 1); BUILDSTDERR: | ^~ BUILDSTDERR: adconf.cc:888:73: note: directive argument in the range [1, 2147483647] BUILDSTDERR: 888 | for (int i = 0; i < _dec.nspkr; i++) sprintf (_speakers [i]._label, "%d", i + 1); BUILDSTDERR: | ^~~~ BUILDSTDERR: In file included from /usr/include/stdio.h:867, BUILDSTDERR: from adconf.cc:23: BUILDSTDERR: /usr/include/bits/stdio2.h:36:34: note: '__builtin___sprintf_chk' output between 2 and 11 bytes into a destination of size 4 BUILDSTDERR: 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: 37 | __bos (__s), __fmt, __va_arg_pack ()); BUILDSTDERR: | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: /usr/bin/ld: ambdec.o: undefined reference to symbol 'pthread_mutex_trylock@@GLIBC_2.27' BUILDSTDERR: /usr/bin/ld: /lib64/lp64d/../lib64/lp64d/libpthread.so: error adding symbols: DSO missing from command line BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make: *** [Makefile:42: ambdec] Error 1 BUILDSTDERR: make: *** Waiting for unfinished jobs.... BUILDSTDERR: /usr/bin/ld: ambdec_cli.o: undefined reference to symbol 'pthread_mutex_trylock@@GLIBC_2.27' BUILDSTDERR: /usr/bin/ld: /lib64/lp64d/../lib64/lp64d/libpthread.so: error adding symbols: DSO missing from command line BUILDSTDERR: collect2: error: ld returned 1 exit status BUILDSTDERR: make: *** [Makefile:53: ambdec_cli] Error 1 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.OBCEuE (%build) VERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o decoder.o decoder.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o adconf.o adconf.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o sstring.o sstring.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o png2img.o png2img.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -I/usr/X11R6/include `freetype-config --cflags` -c -o meter.o meter.cc g++ -Wall -MMD -MP -DVERSION=\"0.5.1\" -DSHARED=\"/usr/share/ambdec\" -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 -c -o ambdec_cli.o ambdec_cli.cc g++ -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lpthread -o ambdec ambdec.o styles.o mainwin.o confwin.o radbut.o filewin.o jclient.o nffilt.o xover2.o decoder.o adconf.o sstring.o png2img.o meter.o -lclxclient -lclthreads -ljack -lpng -lXft -lX11 -lrt g++ -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -lpthread -o ambdec_cli ambdec_cli.o jclient.o nffilt.o xover2.o decoder.o adconf.o sstring.o -lclthreads -ljack -lrt RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.OBCEuE (%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 700, 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/ambdec.spec