Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/R-yaml.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-117681-68449/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/R-yaml.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': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/R-yaml-2.3.5-1.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/R-yaml.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-117681-68449/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': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/R-yaml.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': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.IgxOKw + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf yaml + /usr/bin/mkdir -p yaml + cd yaml + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/yaml_2.3.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oqdvmO + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-ld -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd yaml + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.UWPhyH + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64 ++ dirname /builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64 + cd yaml + mkdir -p /builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64/usr/lib64/R/library + /usr/bin/R CMD INSTALL -l /builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64/usr/lib64/R/library yaml * installing *source* package 'yaml' ... ** package 'yaml' successfully unpacked and MD5 sums checked ** using staged installation ** libs using C compiler: 'gcc (Tencent Compiler 12.3.1.1) 12.3.1 20230912 (OpenCloudOS 12.3.1.1-1)' gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c api.c -o api.o gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c dumper.c -o dumper.o gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c emitter.c -o emitter.o emitter.c: In function 'yaml_emitter_write_plain_scalar': emitter.c:28:6: warning: value computed is not used [-Wunused-value] 28 | && ((emitter->line_break == YAML_CR_BREAK ? \ | ^~ emitter.c:56:11: note: in expansion of macro 'PUT_BREAK' 56 | (PUT_BREAK(emitter), \ | ^~~~~~~~~ emitter.c:1965:18: note: in expansion of macro 'WRITE_BREAK' 1965 | if (!WRITE_BREAK(emitter, string)) return 0; | ^~~~~~~~~~~ emitter.c: In function 'yaml_emitter_write_single_quoted_scalar': emitter.c:28:6: warning: value computed is not used [-Wunused-value] 28 | && ((emitter->line_break == YAML_CR_BREAK ? \ | ^~ emitter.c:56:11: note: in expansion of macro 'PUT_BREAK' 56 | (PUT_BREAK(emitter), \ | ^~~~~~~~~ emitter.c:2026:18: note: in expansion of macro 'WRITE_BREAK' 2026 | if (!WRITE_BREAK(emitter, string)) return 0; | ^~~~~~~~~~~ emitter.c: In function 'yaml_emitter_write_literal_scalar': emitter.c:28:6: warning: value computed is not used [-Wunused-value] 28 | && ((emitter->line_break == YAML_CR_BREAK ? \ | ^~ emitter.c:56:11: note: in expansion of macro 'PUT_BREAK' 56 | (PUT_BREAK(emitter), \ | ^~~~~~~~~ emitter.c:2292:18: note: in expansion of macro 'WRITE_BREAK' 2292 | if (!WRITE_BREAK(emitter, string)) return 0; | ^~~~~~~~~~~ emitter.c: In function 'yaml_emitter_write_folded_scalar': emitter.c:28:6: warning: value computed is not used [-Wunused-value] 28 | && ((emitter->line_break == YAML_CR_BREAK ? \ | ^~ emitter.c:56:11: note: in expansion of macro 'PUT_BREAK' 56 | (PUT_BREAK(emitter), \ | ^~~~~~~~~ emitter.c:2341:18: note: in expansion of macro 'WRITE_BREAK' 2341 | if (!WRITE_BREAK(emitter, string)) return 0; | ^~~~~~~~~~~ gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c implicit.c -o implicit.o gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c loader.c -o loader.o gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c parser.c -o parser.o gcc -I"/usr/include/R" -DNDEBUG -I. -DNDEBUG -I/usr/local/include -fpic -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -c r_emit.c -o r_emit.o r_emit.c: In function 'Ryaml_serialize_to_yaml': r_emit.c:981:11: error: format not a string literal and no format arguments [-Werror=format-security] 981 | error(Ryaml_error_msg); | ^~~~~~~~~~~~~~~ cc1: some warnings being treated as errors make: *** [/usr/lib64/R/etc/Makeconf:195: r_emit.o] Error 1 ERROR: compilation failed for package 'yaml' * removing '/builddir/build/BUILDROOT/R-yaml-2.3.5-1.oc9.x86_64/usr/lib64/R/library/yaml' error: Bad exit status from /var/tmp/rpm-tmp.UWPhyH (%install) Bad exit status from /var/tmp/rpm-tmp.UWPhyH (%install) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/R-yaml.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, 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 --noclean --target x86_64 --nodeps /builddir/build/SPECS/R-yaml.spec