D: [iurt_root_command] chroot Installing /home/iurt/rpmbuild/SRPMS/golang-github-spf13-cobra-1.0.0-1.mga8.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.fq0GIu + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf cobra-1.0.0 + /usr/bin/gzip -dc /home/iurt/rpmbuild/SOURCES/cobra-1.0.0.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd cobra-1.0.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /home/iurt/rpmbuild/BUILD/cobra-1.0.0/vendor + [[ ! -e /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/bin ]] + install -m 0755 -vd /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/bin install: creating directory '/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build' install: creating directory '/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/bin' + export GOPATH=/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build:/usr/share/gocode + GOPATH=/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build:/usr/share/gocode + [[ ! -e /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/spf13/cobra ]] ++ dirname /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/spf13/cobra + install -m 0755 -vd /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/spf13 install: creating directory '/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src' install: creating directory '/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com' install: creating directory '/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/spf13' + ln -fs /home/iurt/rpmbuild/BUILD/cobra-1.0.0 /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/spf13/cobra + cd /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/spf13/cobra + cp /home/iurt/rpmbuild/SOURCES/glide.yaml /home/iurt/rpmbuild/SOURCES/glide.lock . + mv cobra/README.md README-cobra.md + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.h2Mgit + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd cobra-1.0.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + for cmd in cobra ++ head -c20 /dev/urandom ++ od -An -tx1 ++ tr -d ' \n' ++ basename cobra + GOPATH=/home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build:/usr/share/gocode + GO111MODULE=off + go build -buildmode pie -compiler gc '-tags=rpm_crashtraceback ' -ldflags '-X github.com/spf13/cobra/version=1.0.0 -B 0x09d1a38ef1781b2b823f86b09b4eb73726129dbd -extldflags '\'' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags '\''' -a -v -x -o /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/bin/cobra github.com/spf13/cobra/cobra WORK=/tmp/go-build725483544 /usr/share/gocode/src/github.com/spf13/viper/viper.go:42:2: cannot find package "github.com/pelletier/go-toml" in any of: /usr/lib/golang/src/github.com/pelletier/go-toml (from $GOROOT) /home/iurt/rpmbuild/BUILD/cobra-1.0.0/_build/src/github.com/pelletier/go-toml (from $GOPATH) /usr/share/gocode/src/github.com/pelletier/go-toml error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.h2Mgit (%build) RPM build errors: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.h2Mgit (%build) I: [iurt_root_command] ERROR: chroot