:: Synchronizing package databases... build-support-manual downloading... build-support downloading... core-staging downloading... extra-staging downloading... core-testing downloading... core downloading... extra-testing downloading... extra downloading... :: Starting full system upgrade... there is nothing to do ==> Building in chroot for [extra-staging-with-build-support] (i486)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-staging-with-build-support-i486/root] -> [build]...done ==> Making package: cni-plugins 1.6.1-1.0 (Mon Dec 30 15:09:41 2024) ==> Retrieving sources... -> Found plugins-v1.6.1.tar.gz ==> Validating source files with sha512sums... plugins-v1.6.1.tar.gz ... Passed ==> Validating source files with b2sums... plugins-v1.6.1.tar.gz ... Passed gpg: Warning: using insecure memory! ==> Appending keys from archlinux32.gpg... gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! ==> Updating trust database... gpg: Warning: using insecure memory! gpg: next trustdb check due at 2025-01-01 ==> Making package: cni-plugins 1.6.1-1.0 (Mon Dec 30 15:09:50 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... :: There are 2 providers available for go: :: Repository core-staging 1) gcc-go :: Repository core 2) gcc-go Enter a number (default=1): resolving dependencies... looking for conflicting packages... Packages (1) gcc-go-14.2.1+r134+gab884fffe3fc-2.0 Total Installed Size: 105.99 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing gcc-go... :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Updating the info directory file... ==> Retrieving sources... -> Found plugins-v1.6.1.tar.gz ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting plugins-v1.6.1.tar.gz with bsdtar ==> Starting prepare()... mkdir: created directory 'plugins-1.6.1/bin' ==> Starting build()... Building plugin: bandwidth go: downloading github.com/containernetworking/cni v1.2.3 go: downloading github.com/vishvananda/netlink v1.3.0 go: downloading github.com/coreos/go-iptables v0.8.0 go: downloading github.com/safchain/ethtool v0.5.9 go: downloading sigs.k8s.io/knftables v0.0.18 go: downloading golang.org/x/sys v0.27.0 go: downloading github.com/vishvananda/netns v0.0.4 go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags # sigs.k8s.io/knftables ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:658:14: error: expected ‘(’ 658 | func sortKeys[K ~string, V any](m map[K]V) []K { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:658:17: error: invalid character 0x7e in input file 658 | func sortKeys[K ~string, V any](m map[K]V) []K { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:659:9: error: expected ‘]’ 659 | keys := make([]K, 0, len(m)) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:659:9: error: expected ‘;’ or newline after top level declaration ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:660:9: error: expected declaration 660 | for key := range m { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:662:9: error: expected declaration 662 | } | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:663:9: error: expected declaration 663 | sort.Slice(keys, func(i, j int) bool { return keys[i] < keys[j] }) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:663:74: error: expected ‘;’ or newline after top level declaration 663 | sort.Slice(keys, func(i, j int) bool { return keys[i] < keys[j] }) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:664:9: error: expected declaration 664 | return keys | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:665:1: error: expected declaration 665 | } | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:186:13: error: expected ‘(’ 186 | func jsonVal[T any](json map[string]interface{}, key string) (T, bool) { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:186:16: error: expected ‘]’ 186 | func jsonVal[T any](json map[string]interface{}, key string) (T, bool) { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:186:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:187:40: error: expected declaration 187 | if ifVal, exists := json[key]; exists { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:189:17: error: expected declaration 189 | return tVal, ok | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:190:9: error: expected declaration 190 | } | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:192:9: error: expected declaration 192 | return zero, false | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:193:1: error: expected declaration 193 | } | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/util.go:26:11: error: expected ‘(’ 26 | func PtrTo[T any](val T) *T { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/util.go:26:14: error: expected ‘]’ 26 | func PtrTo[T any](val T) *T { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/util.go:26:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/util.go:28:1: error: expected declaration 28 | } | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:249:48: error: reference to undefined name ‘PtrTo’ 249 | table.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:275:52: error: reference to undefined name ‘PtrTo’ 275 | flowtable.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:298:48: error: reference to undefined name ‘PtrTo’ 298 | chain.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:350:47: error: reference to undefined name ‘PtrTo’ 350 | rule.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:357:47: error: reference to undefined name ‘PtrTo’ 357 | rule.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:376:46: error: reference to undefined name ‘PtrTo’ 376 | set.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:400:49: error: reference to undefined name ‘PtrTo’ 400 | mapObj.Handle = PtrTo(fake.nextHandle) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:550:23: error: reference to undefined name ‘sortKeys’ 550 | flowtables := sortKeys(table.Flowtables) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:551:19: error: reference to undefined name ‘sortKeys’ 551 | chains := sortKeys(table.Chains) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:552:17: error: reference to undefined name ‘sortKeys’ 552 | sets := sortKeys(table.Sets) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:553:17: error: reference to undefined name ‘sortKeys’ 553 | maps := sortKeys(table.Maps) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:115:26: error: reference to undefined name ‘PtrTo’ 115 | Comment: PtrTo("test"), | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:348:39: error: reference to undefined name ‘PtrTo’ 348 | rule.Handle = PtrTo(int(handle)) | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:186:14: error: use of undefined type ‘T’ 186 | func jsonVal[T any](json map[string]interface{}, key string) (T, bool) { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:558:9: error: range clause must have array, slice, string, map, or channel type 558 | for _, fname := range flowtables { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:562:9: error: range clause must have array, slice, string, map, or channel type 562 | for _, cname := range chains { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:566:9: error: range clause must have array, slice, string, map, or channel type 566 | for _, sname := range sets { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:570:9: error: range clause must have array, slice, string, map, or channel type 570 | for _, mname := range maps { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:577:9: error: range clause must have array, slice, string, map, or channel type 577 | for _, cname := range chains { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:587:9: error: range clause must have array, slice, string, map, or channel type 587 | for _, sname := range sets { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/fake.go:593:9: error: range clause must have array, slice, string, map, or channel type 593 | for _, mname := range maps { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:377:9: error: range clause must have array, slice, string, map, or channel type 377 | for _, jsonElement := range jsonElements { | ^ ../pkg/mod/sigs.k8s.io/knftables@v0.0.18/nftables.go:477:25: error: range clause must have array, slice, string, map, or channel type 477 | for i := range concat { | ^ (null):0: confused by earlier errors, bailing out note: module requires Go 1.20 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-staging-with-build-support-i486/build/build used straw: :with_build_support:haskell_without_check: build@euronuc-i486