Mock Version: 1.2.17 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/etcd.spec'], chrootPath='/var/lib/mock/etcd-3.2.22-1.el7-20180716175927-28367/root'shell=FalseprintOutput=Falseenv={'LANG': 'en_GB.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=1006) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target i686 --nodeps /builddir/build/SPECS/etcd.spec'] with env {'LANG': 'en_GB.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: i686 Building for target i686 Wrote: /builddir/build/SRPMS/etcd-3.2.22-1.el7.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', u'/usr/bin/rpmbuild -bb --target i686 --nodeps /builddir/build/SPECS/etcd.spec'], chrootPath='/var/lib/mock/etcd-3.2.22-1.el7-20180716175927-28367/root'shell=Falseuid=1006env={'LANG': 'en_GB.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 i686 --nodeps /builddir/build/SPECS/etcd.spec'] with env {'LANG': 'en_GB.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: i686 Building for target i686 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.13hl1Z + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf man-3.2.22 + /usr/bin/gzip -dc /builddir/build/SOURCES/man-3.2.22.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd man-3.2.22 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cd /builddir/build/BUILD + rm -rf etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9 + /usr/bin/gzip -dc /builddir/build/SOURCES/etcd-1674e68.tar.gz + /usr/bin/tar -xf - + STATUS=0 + '[' 0 -ne 0 ']' + cd etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + mkdir -p man/man1 + cp ../man-3.2.22/etcd.1 ../man-3.2.22/etcdctl.1 ../man-3.2.22/etcdctl2-auth.1 ../man-3.2.22/etcdctl2-backup.1 ../man-3.2.22/etcdctl2-cluster-health.1 ../man-3.2.22/etcdctl2-exec-watch.1 ../man-3.2.22/etcdctl2-get.1 ../man-3.2.22/etcdctl2-ls.1 ../man-3.2.22/etcdctl2-member.1 ../man-3.2.22/etcdctl2-mk.1 ../man-3.2.22/etcdctl2-mkdir.1 ../man-3.2.22/etcdctl2-rm.1 ../man-3.2.22/etcdctl2-rmdir.1 ../man-3.2.22/etcdctl2-role.1 ../man-3.2.22/etcdctl2-set.1 ../man-3.2.22/etcdctl2-setdir.1 ../man-3.2.22/etcdctl2-update.1 ../man-3.2.22/etcdctl2-updatedir.1 ../man-3.2.22/etcdctl2-user.1 ../man-3.2.22/etcdctl2-watch.1 ../man-3.2.22/etcdctl2.1 ../man-3.2.22/etcdctl3-alarm-disarm.1 ../man-3.2.22/etcdctl3-alarm-list.1 ../man-3.2.22/etcdctl3-alarm.1 ../man-3.2.22/etcdctl3-auth-disable.1 ../man-3.2.22/etcdctl3-auth-enable.1 ../man-3.2.22/etcdctl3-auth.1 ../man-3.2.22/etcdctl3-check-perf.1 ../man-3.2.22/etcdctl3-check.1 ../man-3.2.22/etcdctl3-compaction.1 ../man-3.2.22/etcdctl3-defrag.1 ../man-3.2.22/etcdctl3-del.1 ../man-3.2.22/etcdctl3-elect.1 ../man-3.2.22/etcdctl3-endpoint-health.1 ../man-3.2.22/etcdctl3-endpoint-status.1 ../man-3.2.22/etcdctl3-endpoint.1 ../man-3.2.22/etcdctl3-get.1 ../man-3.2.22/etcdctl3-lease-grant.1 ../man-3.2.22/etcdctl3-lease-keep-alive.1 ../man-3.2.22/etcdctl3-lease-revoke.1 ../man-3.2.22/etcdctl3-lease-timetolive.1 ../man-3.2.22/etcdctl3-lease.1 ../man-3.2.22/etcdctl3-lock.1 ../man-3.2.22/etcdctl3-make-mirror.1 ../man-3.2.22/etcdctl3-member-add.1 ../man-3.2.22/etcdctl3-member-list.1 ../man-3.2.22/etcdctl3-member-remove.1 ../man-3.2.22/etcdctl3-member-update.1 ../man-3.2.22/etcdctl3-member.1 ../man-3.2.22/etcdctl3-migrate.1 ../man-3.2.22/etcdctl3-put.1 ../man-3.2.22/etcdctl3-role-add.1 ../man-3.2.22/etcdctl3-role-delete.1 ../man-3.2.22/etcdctl3-role-get.1 ../man-3.2.22/etcdctl3-role-grant-permission.1 ../man-3.2.22/etcdctl3-role-list.1 ../man-3.2.22/etcdctl3-role-revoke-permission.1 ../man-3.2.22/etcdctl3-role.1 ../man-3.2.22/etcdctl3-snapshot-restore.1 ../man-3.2.22/etcdctl3-snapshot-save.1 ../man-3.2.22/etcdctl3-snapshot-status.1 ../man-3.2.22/etcdctl3-snapshot.1 ../man-3.2.22/etcdctl3-txn.1 ../man-3.2.22/etcdctl3-user-add.1 ../man-3.2.22/etcdctl3-user-delete.1 ../man-3.2.22/etcdctl3-user-get.1 ../man-3.2.22/etcdctl3-user-grant-role.1 ../man-3.2.22/etcdctl3-user-list.1 ../man-3.2.22/etcdctl3-user-passwd.1 ../man-3.2.22/etcdctl3-user-revoke-role.1 ../man-3.2.22/etcdctl3-user.1 ../man-3.2.22/etcdctl3-version.1 ../man-3.2.22/etcdctl3-watch.1 ../man-3.2.22/etcdctl3.1 man/man1/. + mkdir -p Godeps/_workspace/src + mv cmd/vendor/github.com cmd/vendor/go.uber.org cmd/vendor/golang.org cmd/vendor/google.golang.org cmd/vendor/gopkg.in Godeps/_workspace/src/. + echo 'Patch #3 (bz1350875-disaster-recovery-with-copies.patch):' Patch #3 (bz1350875-disaster-recovery-with-copies.patch): + /usr/bin/cat /builddir/build/SOURCES/bz1350875-disaster-recovery-with-copies.patch + /usr/bin/patch -p1 --fuzz=0 patching file etcdctl/ctlv2/command/backup_command.go + echo 'Patch #4 (expand-etcd-arch-validation.patch):' Patch #4 (expand-etcd-arch-validation.patch): + /usr/bin/cat /builddir/build/SOURCES/expand-etcd-arch-validation.patch + /usr/bin/patch -p1 --fuzz=0 patching file etcdmain/etcd.go Hunk #1 succeeded at 407 (offset 11 lines). + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tzvDsN + umask 022 + cd /builddir/build/BUILD + cd etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9 + mkdir -p src/github.com/coreos + ln -s ../../../ src/github.com/coreos/etcd ++ pwd ++ pwd + export GOPATH=/builddir/build/BUILD/etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9:/builddir/build/BUILD/etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9/Godeps/_workspace:/usr/share/gocode + GOPATH=/builddir/build/BUILD/etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9:/builddir/build/BUILD/etcd-1674e682fe9fbecd66e9f20b77da852ad7f517a9/Godeps/_workspace:/usr/share/gocode ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + export 'LDFLAGS=-X github.com/coreos/etcd/version.GitSHA=1674e68 -B 0x0963bf7a04dc8851df80ed7bc532a52ab341784a' + LDFLAGS='-X github.com/coreos/etcd/version.GitSHA=1674e68 -B 0x0963bf7a04dc8851df80ed7bc532a52ab341784a' ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' + go build -buildmode pie -tags=rpm_crashtraceback -ldflags '-X github.com/coreos/etcd/version.GitSHA=1674e68 -B 0x0963bf7a04dc8851df80ed7bc532a52ab341784a -B 0xc07757ea7b35d0d6c644c303a50d8d05c7b60f4d -extldflags '\''-Wl,-z,relro,-z,now'\''' -a -v -x -o bin/etcd github.com/coreos/etcd flag provided but not defined: -buildmode usage: build [-o output] [-i] [build flags] [packages] Build compiles the packages named by the import paths, along with their dependencies, but it does not install the results. If the arguments are a list of .go files, build treats them as a list of source files specifying a single package. When the command line specifies a single main package, build writes the resulting executable to output. Otherwise build compiles the packages but discards the results, serving only as a check that the packages can be built. The -o flag specifies the output file name. If not specified, the output file name depends on the arguments and derives from the name of the package, such as p.a for package p, unless p is 'main'. If the package is main and file names are provided, the file name derives from the first file name mentioned, such as f1 for 'go build f1.go f2.go'; with no files provided ('go build'), the output file name is the base name of the containing directory. The -i flag installs the packages that are dependencies of the target. The build flags are shared by the build, clean, get, install, list, run, and test commands: -a force rebuilding of packages that are already up-to-date. In Go releases, does not apply to the standard library. -n print the commands but do not run them. -p n the number of builds that can be run in parallel. The default is the number of CPUs available. -race enable data race detection. Supported only on linux/amd64, freebsd/amd64, darwin/amd64 and windows/amd64. -v print the names of packages as they are compiled. -work print the name of the temporary work directory and do not delete it when exiting. -x print the commands. -ccflags 'arg list' arguments to pass on each 5c, 6c, or 8c compiler invocation. -compiler name name of compiler to use, as in runtime.Compiler (gccgo or gc). -gccgoflags 'arg list' arguments to pass on each gccgo compiler/linker invocation. -gcflags 'arg list' arguments to pass on each 5g, 6g, or 8g compiler invocation. -installsuffix suffix a suffix to use in the name of the package installation directory, in order to keep output separate from default builds. If using the -race flag, the install suffix is automatically set to race or, if set explicitly, has _race appended to it. -ldflags 'flag list' arguments to pass on each 5l, 6l, or 8l linker invocation. -tags 'tag list' a list of build tags to consider satisfied during the build. For more information about build tags, see the description of build constraints in the documentation for the go/build package. The list flags accept a space-separated list of strings. To embed spaces in an element in the list, surround it with either single or double quotes. For more about specifying packages, see 'go help packages'. For more about where packages and binaries are installed, run 'go help gopath'. For more about calling between Go and C/C++, run 'go help c'. See also: go install, go get, go clean. RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.tzvDsN (%build) Bad exit status from /var/tmp/rpm-tmp.tzvDsN (%build) 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 i686 --nodeps /builddir/build/SPECS/etcd.spec