Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/crash-trace-command.spec'], chrootPath='/var/lib/mock/c71804-00-armhfp/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0logger=uid=1004) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target armv7hl --nodeps /builddir/build/SPECS/crash-trace-command.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Wrote: /builddir/build/SRPMS/crash-trace-command-2.0-13.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/crash-trace-command.spec'], chrootPath='/var/lib/mock/c71804-00-armhfp/root'shell=Falseuid=1004env={'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'}gid=135user='mockbuild'timeout=0private_network=Truelogger=printOutput=False) Executing command: ['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/crash-trace-command.spec'] with env {'LANG': 'en_US.UTF-8', 'TERM': 'vt100', 'SHELL': '/bin/bash', 'PROMPT_COMMAND': 'printf "\x1b]0;\x07"', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'HOME': '/builddir', 'HOSTNAME': 'mock'} and shell False Building target platforms: armv7hl Building for target armv7hl Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pYe2Ha + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf crash-trace-command-2.0 + /usr/bin/gzip -dc /builddir/build/SOURCES/crash-trace-command-2.0.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd crash-trace-command-2.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . Patch #0 (trace_compiler_warnings.patch): + echo 'Patch #0 (trace_compiler_warnings.patch):' + /usr/bin/patch -p1 -b --suffix trace_compiler_warnings.patch --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/trace_compiler_warnings.patch patching file trace.c Patch #1 (replace_obsolete_init_and_fini.patch): + echo 'Patch #1 (replace_obsolete_init_and_fini.patch):' + /usr/bin/cat /builddir/build/SOURCES/replace_obsolete_init_and_fini.patch + /usr/bin/patch -p1 -b --suffix replace_obsolete_init_and_fini.patch --fuzz=0 patching file trace.c + echo 'Patch #2 (sigsegv_on_calloc_failure.patch):' Patch #2 (sigsegv_on_calloc_failure.patch): + /usr/bin/patch -p1 -b --suffix sigsegv_on_calloc_failure.patch --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/sigsegv_on_calloc_failure.patch patching file trace.c Patch #3 (initialize_trace_dat.patch): + echo 'Patch #3 (initialize_trace_dat.patch):' + /usr/bin/cat /builddir/build/SOURCES/initialize_trace_dat.patch + /usr/bin/patch -p1 -b --suffix initialize_trace_dat.patch --fuzz=0 patching file trace.c + echo 'Patch #4 (ARM64.patch):' Patch #4 (ARM64.patch): + /usr/bin/patch -p1 -b --suffix ARM64.patch --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/ARM64.patch patching file Makefile Patch #5 (linux_3.10_support.patch): + echo 'Patch #5 (linux_3.10_support.patch):' + /usr/bin/patch -p1 -b --suffix linux_3.10_support.patch --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/linux_3.10_support.patch patching file trace.c Patch #6 (ppc64le.patch): + echo 'Patch #6 (ppc64le.patch):' + /usr/bin/cat /builddir/build/SOURCES/ppc64le.patch + /usr/bin/patch -p1 -b --suffix ppc64le.patch --fuzz=0 patching file Makefile Patch #7 (linux_4.2_support.patch): + echo 'Patch #7 (linux_4.2_support.patch):' + /usr/bin/patch -p1 -b --suffix linux_4.2_support.patch --fuzz=0 + /usr/bin/cat /builddir/build/SOURCES/linux_4.2_support.patch patching file trace.c Patch #8 (TRACE_EVENT_FL_TRACEPOINT_flag.patch): + echo 'Patch #8 (TRACE_EVENT_FL_TRACEPOINT_flag.patch):' + /usr/bin/cat /builddir/build/SOURCES/TRACE_EVENT_FL_TRACEPOINT_flag.patch + /usr/bin/patch -p1 -b --suffix TRACE_EVENT_FL_TRACEPOINT_flag.patch --fuzz=0 patching file trace.c + echo 'Patch #9 (big_endian_nr_pages.patch):' Patch #9 (big_endian_nr_pages.patch): + /usr/bin/cat /builddir/build/SOURCES/big_endian_nr_pages.patch patching file trace.c + /usr/bin/patch -p1 -b --suffix big_endian_nr_pages.patch --fuzz=0 Patch #10 (ppc64_ring_buffer_read.patch): + echo 'Patch #10 (ppc64_ring_buffer_read.patch):' + /usr/bin/cat /builddir/build/SOURCES/ppc64_ring_buffer_read.patch + /usr/bin/patch -p1 -b --suffix ppc64_ring_buffer_read.patch --fuzz=0 patching file trace.c + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.oYZsZl + umask 022 + cd /builddir/build/BUILD + cd crash-trace-command-2.0 + make gcc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -Wall -I/usr/include/crash -nostartfiles -shared -rdynamic -o trace.so trace.c -fPIC -D gcc: error: macro name missing after '-D' make: *** [trace.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.oYZsZl (%build) Bad exit status from /var/tmp/rpm-tmp.oYZsZl (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/mockbuild/trace_decorator.py", line 88, in trace result = func(*args, **kw) File "/usr/lib/python2.7/site-packages/mockbuild/util.py", line 547, in do raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode) Error: Command failed. See logs for output. # bash --login -c /usr/bin/rpmbuild -bb --target armv7hl --nodeps /builddir/build/SPECS/crash-trace-command.spec