D: [iurt_root_command] chroot warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/golang-github-mmcloughlin-avo-0.4.0-1.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.ZlcbU4 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf avo-0.4.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/avo-0.4.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd avo-0.4.0 + rm -rf /home/pterjan/rpmbuild/BUILD/avo-0.4.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/avo-0.4.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + rm -fr /home/pterjan/rpmbuild/BUILD/avo-0.4.0/vendor + [[ ! -e /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/bin ]] + install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/bin install: creating directory '/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build' install: creating directory '/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/bin' + export GOPATH=/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build:/usr/share/gocode + GOPATH=/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build:/usr/share/gocode + [[ ! -e /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin/avo ]] ++ dirname /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin/avo + install -m 0755 -vd /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin install: creating directory '/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src' install: creating directory '/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com' install: creating directory '/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin' + ln -fs /home/pterjan/rpmbuild/BUILD/avo-0.4.0 /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin/avo + cd /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin/avo + echo 'Patch #0 (dcba6827a0d2e3d52a41121a803f6364e7672a42.patch):' Patch #0 (dcba6827a0d2e3d52a41121a803f6364e7672a42.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file gotypes/signature_test.go + RPM_EC=0 ++ jobs -p + exit 0 Executing(%generate_buildrequires): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.1iIAah + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd avo-0.4.0 + GOPATH=/home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build:/usr/share/gocode + GO111MODULE=off + golist --imported --package-path github.com/mmcloughlin/avo --template 'golang({{.}})\n' --with-tests --skip-self + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.8CKoZp + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' /home/pterjan/rpmbuild/BUILDROOT/golang-github-mmcloughlin-avo-0.4.0-1.mga10.x86_64 '!=' / ']' + rm -rf /home/pterjan/rpmbuild/BUILDROOT/golang-github-mmcloughlin-avo-0.4.0-1.mga10.x86_64 ++ dirname /home/pterjan/rpmbuild/BUILDROOT/golang-github-mmcloughlin-avo-0.4.0-1.mga10.x86_64 + mkdir -p /home/pterjan/rpmbuild/BUILDROOT + mkdir /home/pterjan/rpmbuild/BUILDROOT/golang-github-mmcloughlin-avo-0.4.0-1.mga10.x86_64 + cd avo-0.4.0 + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src/github.com/mmcloughlin/avo + IFS= + gosupfiles= + mapfile -t gosupfilesA + go-rpm-integration install -i github.com/mmcloughlin/avo -b /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/bin -s /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build -o golang-github-mmcloughlin-avo-devel.file-list -O /home/pterjan/rpmbuild/BUILD/avo-0.4.0 -V 0.4.0-1.mga10 -p /home/pterjan/rpmbuild/BUILDROOT/golang-github-mmcloughlin-avo-0.4.0-1.mga10.x86_64 -g /usr/share/gocode -r '.*example.*' Installing: github.com/mmcloughlin/avo + IFS= +++ sort -u +++ realpath -e --relative-base=. examples README.md ++ listfiles_include='README.md examples' ++ echo 'README.md examples' + godocs='README.md examples' + [[ -n README.md examples ]] + IFS= + read -r f + echo %doc '"README.md"' + IFS= + read -r f + echo %doc '"examples"' + IFS= + read -r f + IFS= +++ realpath -e --relative-base=. LICENSE +++ sort -u ++ listfiles_include=LICENSE ++ echo LICENSE + golicenses=LICENSE + [[ -n LICENSE ]] + IFS= + read -r f + echo %license '"LICENSE"' + IFS= + read -r f + /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/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /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 -j16 + /usr/lib/rpm/redhat/brp-python-hardlink Executing(%check): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.yoilZc + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd avo-0.4.0 + '[' 1 -eq 1 ']' + LDFLAGS=' -X github.com/mmcloughlin/avo/version=0.4.0' + GO_TEST_FLAGS='-buildmode pie -compiler gc' + GO_TEST_EXT_LD_FLAGS='-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 ' + go-rpm-integration check -i github.com/mmcloughlin/avo -b /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/bin -s /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build -V 0.4.0-1.mga10 -p /home/pterjan/rpmbuild/BUILDROOT/golang-github-mmcloughlin-avo-0.4.0-1.mga10.x86_64 -g /usr/share/gocode -r '.*example.*' Testing in: /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/src PATH: /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/pterjan/.local/bin:/home/pterjan/bin GOPATH: /home/pterjan/rpmbuild/BUILD/avo-0.4.0/_build:/usr/share/gocode GO111MODULE: off command: go test -buildmode pie -compiler gc -ldflags " -X github.com/mmcloughlin/avo/version=0.4.0 -extldflags '-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 '" testing: github.com/mmcloughlin/avo github.com/mmcloughlin/avo ? github.com/mmcloughlin/avo [no test files] github.com/mmcloughlin/avo/attr PASS ok github.com/mmcloughlin/avo/attr 0.039s github.com/mmcloughlin/avo/attr PASS ok github.com/mmcloughlin/avo/attr 0.053s github.com/mmcloughlin/avo/build PASS ok github.com/mmcloughlin/avo/build 0.015s github.com/mmcloughlin/avo/build PASS ok github.com/mmcloughlin/avo/build 0.056s github.com/mmcloughlin/avo/buildtags PASS ok github.com/mmcloughlin/avo/buildtags 0.025s github.com/mmcloughlin/avo/buildtags PASS ok github.com/mmcloughlin/avo/buildtags 0.054s github.com/mmcloughlin/avo/gotypes panic: runtime error: invalid memory address or nil pointer dereference [recovered] panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x55c826f764cf] goroutine 53 [running]: go/types.(*Checker).handleBailout(0xc00023fc00, 0xc00029dc60) /usr/lib/golang/src/go/types/check.go:367 +0x88 panic({0x55c8270ee880?, 0x55c8272b02c0?}) /usr/lib/golang/src/runtime/panic.go:770 +0x132 go/types.(*StdSizes).Sizeof(0x0, {0x55c827136070, 0x55c8272b3760}) /usr/lib/golang/src/go/types/sizes.go:228 +0x30f go/types.(*Config).sizeof(...) /usr/lib/golang/src/go/types/sizes.go:333 go/types.representableConst.func1({0x55c827136070?, 0x55c8272b3760?}) /usr/lib/golang/src/go/types/const.go:76 +0x9e go/types.representableConst({0x55c827137ea0, 0x55c8272a7ba0}, 0xc00023fc00, 0x55c8272b3760, 0x0) /usr/lib/golang/src/go/types/const.go:92 +0x192 go/types.(*Checker).arrayLength(0xc00023fc00, {0x55c827136f78, 0xc0002a6de0?}) /usr/lib/golang/src/go/types/typexpr.go:510 +0x2d3 go/types.(*Checker).typInternal(0xc00023fc00, {0x55c827136f48, 0xc0002a5920}, 0x0) /usr/lib/golang/src/go/types/typexpr.go:299 +0x49d go/types.(*Checker).definedType(0xc00023fc00, {0x55c827136f48, 0xc0002a5920}, 0x55c8270ec120?) /usr/lib/golang/src/go/types/typexpr.go:180 +0x37 go/types.(*Checker).varType(0xc00023fc00, {0x55c827136f48, 0xc0002a5920}) /usr/lib/golang/src/go/types/typexpr.go:145 +0x25 go/types.(*Checker).structType(0xc00023fc00, 0xc0002c2f30, 0xc0002c2f30?) /usr/lib/golang/src/go/types/struct.go:113 +0x19f go/types.(*Checker).typInternal(0xc00023fc00, {0x55c827137728, 0xc000205050}, 0xc0002c8690) /usr/lib/golang/src/go/types/typexpr.go:316 +0x1345 go/types.(*Checker).definedType(0xc00023fc00, {0x55c827137728, 0xc000205050}, 0x10?) /usr/lib/golang/src/go/types/typexpr.go:180 +0x37 go/types.(*Checker).typeDecl(0xc00023fc00, 0xc0002c8690, 0xc0002a3340, 0x0) /usr/lib/golang/src/go/types/decl.go:615 +0x44d go/types.(*Checker).objDecl(0xc00023fc00, {0x55c82713a1b0, 0xc0002c8690}, 0x0) /usr/lib/golang/src/go/types/decl.go:197 +0xa7f go/types.(*Checker).packageObjects(0xc00023fc00) /usr/lib/golang/src/go/types/resolver.go:681 +0x425 go/types.(*Checker).checkFiles(0xc00023fc00, {0xc0002166c0, 0x2, 0x2}) /usr/lib/golang/src/go/types/check.go:408 +0x1a5 go/types.(*Checker).Files(...) /usr/lib/golang/src/go/types/check.go:372 golang.org/x/tools/go/packages.(*loader).loadPackage(0xc0001cad20, 0xc000208fc0) /usr/share/gocode/src/golang.org/x/tools/go/packages/packages.go:1001 +0x76f golang.org/x/tools/go/packages.(*loader).loadRecursive.func1() /usr/share/gocode/src/golang.org/x/tools/go/packages/packages.go:838 +0x1a9 sync.(*Once).doSlow(0x0?, 0x0?) /usr/lib/golang/src/sync/once.go:74 +0xc2 sync.(*Once).Do(...) /usr/lib/golang/src/sync/once.go:65 golang.org/x/tools/go/packages.(*loader).loadRecursive(0x0?, 0x0?) /usr/share/gocode/src/golang.org/x/tools/go/packages/packages.go:826 +0x4a golang.org/x/tools/go/packages.(*loader).loadRecursive.func1.1(0x0?) /usr/share/gocode/src/golang.org/x/tools/go/packages/packages.go:833 +0x26 created by golang.org/x/tools/go/packages.(*loader).loadRecursive.func1 in goroutine 52 /usr/share/gocode/src/golang.org/x/tools/go/packages/packages.go:832 +0x94 exit status 2 FAIL github.com/mmcloughlin/avo/gotypes 0.174s error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.yoilZc (%check) RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.yoilZc (%check) I: [iurt_root_command] ERROR: chroot