D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expression expected
sh: line 4: [: -j8: integer expression expected
Installing /home/pterjan/rpmbuild/SRPMS/golang-github-ncw-swift-2-2.0.0-1.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.4E205z
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ test -d /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ /usr/bin/rm -rf /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/SPECPARTS
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6pe76V
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ rm -rf swift-2.0.0
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/swift-2.0.0.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd swift-2.0.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ rm -fr /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/vendor
+ [[ ! -e /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/bin ]]
+ install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/bin
install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build'
install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/bin'
+ export GOPATH=/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build:/usr/share/gocode
+ GOPATH=/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build:/usr/share/gocode
+ [[ ! -e /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift/v2 ]]
++ dirname /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift/v2
+ install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift
install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src'
install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com'
install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw'
install: creating directory '/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift'
+ ln -fs /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0 /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift/v2
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift/v2
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
sh: line 4: [: -j8: integer expression expected
sh: line 4: [: -j8: integer expression expected
Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.tmzCX8
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ '[' 1 -eq 1 ']'
+ '[' /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT '!=' / ']'
+ rm -rf /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT
++ dirname /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT
+ mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ mkdir /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CFLAGS
+ CXXFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full'
+ export CXXFLAGS
+ FFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FFLAGS
+ FCFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full '
+ export FCFLAGS
+ VALAFLAGS=-g
+ export VALAFLAGS
+ RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn'
+ export RUSTFLAGS
+ LDFLAGS='-Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd swift-2.0.0
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/src/github.com/ncw/swift/v2
+ IFS=
+ gosupfiles=
+ mapfile -t gosupfilesA
+ go-rpm-integration install -i github.com/ncw/swift/v2 -b /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build/bin -s /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/_build -o golang-github-ncw-swift-2-devel.file-list -O /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0 -V 2.0.0-1.mga10 -p /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT -g /usr/share/gocode -r '.*example.*'
Installing: github.com/ncw/swift/v2
+ IFS=
+++ realpath -e --relative-base=. notes.txt README.md
+++ sort -u
++ listfiles_include='README.md
notes.txt'
++ echo 'README.md
notes.txt'
+ godocs='README.md
notes.txt'
+ [[ -n README.md
notes.txt ]]
+ IFS=
+ read -r f
+ echo %doc '"README.md"'
+ IFS=
+ read -r f
+ echo %doc '"notes.txt"'
+ IFS=
+ read -r f
+ IFS=
+++ realpath -e --relative-base=. COPYING
+++ sort -u
++ listfiles_include=COPYING
++ echo COPYING
+ golicenses=COPYING
+ [[ -n COPYING ]]
+ IFS=
+ read -r f
+ echo %license '"COPYING"'
+ IFS=
+ read -r f
+ /usr/bin/find-debuginfo -j48 --strict-build-id -m -i --build-id-seed 2.0.0-1.mga10 --unique-debug-suffix -2.0.0-1.mga10.x86_64 --unique-debug-src-base golang-github-ncw-swift-2-2.0.0-1.mga10.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0
find-debuginfo: starting

Extracting debug info from 0 files
Creating .debug symlinks for symlinks to ELF files
find-debuginfo: done
+ /usr/lib/rpm/check-buildroot
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/compress_files .xz
+ '[' -n '' ']'
+ /usr/share/spec-helper/relink_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/clean_perl
+ '[' -n '' ']'
+ /usr/share/spec-helper/lib_symlinks
+ '[' -n '' ']'
+ /usr/share/spec-helper/gprintify
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_mo
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_pamd
+ '[' -n '' ']'
+ /usr/share/spec-helper/remove_info_dir
+ '[' -n '' ']'
+ /usr/share/spec-helper/fix_eol
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_desktop_files
+ '[' -n '' ']'
+ /usr/share/spec-helper/check_elf_files
+ /usr/lib/rpm/check-rpaths
+ /usr/lib/rpm/brp-remove-la-files
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
+ env -u SOURCE_DATE_EPOCH /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j48
+ /usr/lib/rpm/redhat/brp-python-hardlink
Reading /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/SPECPARTS/rpm-debuginfo.specpart
Processing files: golang-github-ncw-swift-2-devel-2.0.0-1.mga10.noarch
sh: line 4: [: -j8: integer expression expected
Executing(%doc): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.GNIP5L
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ cd swift-2.0.0
+ DOCDIR=/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/doc/golang-github-ncw-swift-2-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export DOCDIR
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/doc/golang-github-ncw-swift-2-devel
+ cp -pr /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/README.md /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/doc/golang-github-ncw-swift-2-devel
+ cp -pr /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/notes.txt /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/doc/golang-github-ncw-swift-2-devel
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
Executing(%license): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.GKVQiY
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build
+ cd swift-2.0.0
+ LICENSEDIR=/home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/licenses/golang-github-ncw-swift-2-devel
+ export LC_ALL=C
+ LC_ALL=C
+ export LICENSEDIR
+ /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/licenses/golang-github-ncw-swift-2-devel
+ cp -pr /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/COPYING /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/BUILDROOT/usr/share/licenses/golang-github-ncw-swift-2-devel
+ RPM_EC=0
++ jobs -p
+ exit 0
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
grep: warning: stray \ before :
Provides: golang(github.com/ncw/swift/v2) = 2.0.0-1.mga10 golang(github.com/ncw/swift/v2/rs) = 2.0.0-1.mga10 golang(github.com/ncw/swift/v2/swifttest) = 2.0.0-1.mga10 golang-github-ncw-swift-2-devel = 2.0.0-1.mga10 golang-ipath(github.com/ncw/swift/v2) = 2.0.0-1.mga10
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: go-filesystem
Processing files: golang-github-ncw-swift-2-debugsource-2.0.0-1.mga10.x86_64
error: Empty %files file /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/debugsourcefiles.list

RPM build errors:
    Empty %files file /home/pterjan/rpmbuild/BUILD/golang-github-ncw-swift-2-2.0.0-build/swift-2.0.0/debugsourcefiles.list
I: [iurt_root_command] ERROR: chroot