:: 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: elvish 0.21.0-1.0 (Sun May 11 10:58:50 2025) ==> Retrieving sources... -> Updating elvish git repo... ==> Validating source files with sha256sums... elvish ... 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-06-16 ==> Making package: elvish 0.21.0-1.0 (Sun May 11 10:58:59 2025) ==> 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 (5) perl-error-0.17029-7.0 perl-mailtools-2.22-1.0 perl-timedate-2.33-7.0 gcc-go-14.2.1+r753+g1cd744a6828f-1.0 git-2.47.0-1.0 Total Installed Size: 146.78 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing perl-error... installing perl-timedate... installing perl-mailtools... installing git... Optional dependencies for git tk: gitk and git gui openssh: ssh transport and crypto perl-libwww: git svn perl-term-readkey: git svn and interactive.singlekey setting perl-io-socket-ssl: git send-email TLS support perl-authen-sasl: git send-email TLS support perl-mediawiki-api: git mediawiki support perl-datetime-format-iso8601: git mediawiki support perl-lwp-protocol-https: git mediawiki https support perl-cgi: gitweb (web interface) support python: git svn & git p4 subversion: git svn org.freedesktop.secrets: keyring credential helper libsecret: libsecret credential helper [installed] installing gcc-go... :: Running post-transaction hooks... (1/5) Creating system user accounts... /usr/lib/sysusers.d/uuidd.conf:1: Unknown modifier 'u!'. Creating group 'git' with GID 972. Creating user 'git' (git daemon user) with UID 972 and GID 972. (2/5) Reloading system manager configuration... Skipped: Current root is not booted. (3/5) Arming ConditionNeedsUpdate... (4/5) Checking for old perl modules... (5/5) Updating the info directory file... ==> Retrieving sources... ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Creating working copy of elvish git repo... Cloning into 'elvish'... done. Switched to a new branch 'makepkg' ==> Starting prepare()... ==> Starting build()... go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags src.elv.sh/pkg/must # src.elv.sh/pkg/must pkg/must/must.go:23:9: error: expected ‘(’ 23 | func OK1[T any](v T, err error) T { | ^ pkg/must/must.go:23:12: error: expected ‘]’ 23 | func OK1[T any](v T, err error) T { | ^ pkg/must/must.go:23:12: error: expected ‘;’ or newline after top level declaration pkg/must/must.go:26:9: error: expected declaration 26 | } | ^ pkg/must/must.go:27:9: error: expected declaration 27 | return v | ^ pkg/must/must.go:28:1: error: expected declaration 28 | } | ^ pkg/must/must.go:32:9: error: expected ‘(’ 32 | func OK2[T1, T2 any](v1 T1, v2 T2, err error) (T1, T2) { | ^ pkg/must/must.go:32:12: error: expected ‘]’ 32 | func OK2[T1, T2 any](v1 T1, v2 T2, err error) (T1, T2) { | ^ pkg/must/must.go:32:12: error: expected ‘;’ or newline after top level declaration pkg/must/must.go:35:9: error: expected declaration 35 | } | ^ pkg/must/must.go:36:9: error: expected declaration 36 | return v1, v2 | ^ pkg/must/must.go:37:1: error: expected declaration 37 | } | ^ pkg/must/must.go:41:9: error: not enough arguments to return 41 | return OK2(os.Pipe()) | ^ note: module requires Go 1.21 src.elv.sh/pkg/logutil src.elv.sh/pkg/prog src.elv.sh/pkg/store/storedefs src.elv.sh/pkg/daemon/daemondefs src.elv.sh/pkg/daemon/internal/api src.elv.sh/pkg/env src.elv.sh/pkg/fsutil # src.elv.sh/pkg/fsutil pkg/fsutil/search.go:23:16: error: reference to undefined name ‘isExecutable’ 23 | return isExecutable(stat) | ^ note: module requires Go 1.21 src.elv.sh/pkg/rpc golang.org/x/sys/unix go.etcd.io/bbolt # go.etcd.io/bbolt /build/go/pkg/mod/go.etcd.io/bbolt@v1.3.9/db.go:1380:34: error: array bound is not constant 1380 | _, _ = h.Write((*[unsafe.Offsetof(meta{}.checksum)]byte)(unsafe.Pointer(m))[:]) | ^ /build/go/pkg/mod/go.etcd.io/bbolt@v1.3.9/db.go:1380:84: error: argument 1 has incompatible type (cannot use type *[]byte as type []byte) 1380 | _, _ = h.Write((*[unsafe.Offsetof(meta{}.checksum)]byte)(unsafe.Pointer(m))[:]) | ^ (null):0: confused by earlier errors, bailing out github.com/sourcegraph/jsonrpc2 pkg.nimblebun.works/go-lsp src.elv.sh/pkg/strutil src.elv.sh/pkg/diag # src.elv.sh/pkg/diag pkg/diag/error.go:11:14: error: expected ‘]’ 11 | type Error[T ErrorTag] struct { | ^ pkg/diag/error.go:13:9: error: expected declaration 13 | Context Context | ^ pkg/diag/error.go:17:9: error: expected declaration 17 | Partial bool | ^ pkg/diag/error.go:18:1: error: expected declaration 18 | } | ^ pkg/diag/error.go:34:15: error: expected ‘)’ 34 | func (e *Error[T]) Error() string { | ^ pkg/diag/error.go:34:15: error: expected function name pkg/diag/error.go:34:15: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:36:1: error: expected declaration 36 | } | ^ pkg/diag/error.go:38:15: error: expected ‘)’ 38 | func (e *Error[T]) errorNoType() string { | ^ pkg/diag/error.go:38:15: error: expected function name pkg/diag/error.go:38:15: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:40:1: error: expected declaration 40 | } | ^ pkg/diag/error.go:43:15: error: expected ‘)’ 43 | func (e *Error[T]) Range() Ranging { | ^ pkg/diag/error.go:43:15: error: expected function name pkg/diag/error.go:43:15: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:45:1: error: expected declaration 45 | } | ^ pkg/diag/error.go:53:15: error: expected ‘)’ 53 | func (e *Error[T]) Show(indent string) string { | ^ pkg/diag/error.go:53:15: error: expected function name pkg/diag/error.go:53:15: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:55:1: error: expected declaration 55 | } | ^ pkg/diag/error.go:57:15: error: expected ‘)’ 57 | func (e *Error[T]) showNoType(indent string) string { | ^ pkg/diag/error.go:57:15: error: expected function name pkg/diag/error.go:57:15: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:59:9: error: expected declaration 59 | return messageStart + e.Message + messageEnd + | ^ pkg/diag/error.go:61:1: error: expected declaration 61 | } | ^ pkg/diag/error.go:73:16: error: expected ‘(’ 73 | func PackErrors[T ErrorTag](errs []*Error[T]) error { | ^ pkg/diag/error.go:73:19: error: expected ‘]’ 73 | func PackErrors[T ErrorTag](errs []*Error[T]) error { | ^ pkg/diag/error.go:73:19: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:77:9: error: expected declaration 77 | case 1: | ^ pkg/diag/error.go:79:9: error: expected declaration 79 | default: | ^ pkg/diag/error.go:81:9: error: expected declaration 81 | } | ^ pkg/diag/error.go:82:1: error: expected declaration 82 | } | ^ pkg/diag/error.go:86:18: error: expected ‘(’ 86 | func UnpackErrors[T ErrorTag](err error) []*Error[T] { | ^ pkg/diag/error.go:86:21: error: expected ‘]’ 86 | func UnpackErrors[T ErrorTag](err error) []*Error[T] { | ^ pkg/diag/error.go:86:21: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:90:9: error: expected declaration 90 | case multiError[T]: | ^ pkg/diag/error.go:92:9: error: expected declaration 92 | default: | ^ pkg/diag/error.go:94:9: error: expected declaration 94 | } | ^ pkg/diag/error.go:95:1: error: expected declaration 95 | } | ^ pkg/diag/error.go:97:19: error: expected ‘]’ 97 | type multiError[T ErrorTag] []*Error[T] | ^ pkg/diag/error.go:99:21: error: expected ‘)’ 99 | func (err multiError[T]) Error() string { | ^ pkg/diag/error.go:99:21: error: expected function name pkg/diag/error.go:99:21: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:101:9: error: expected declaration 101 | fmt.Fprintf(&sb, "multiple %s: ", errorTagPlural[T]()) | ^ pkg/diag/error.go:102:9: error: expected declaration 102 | for i, e := range err { | ^ pkg/diag/error.go:105:17: error: expected declaration 105 | } | ^ pkg/diag/error.go:106:17: error: expected declaration 106 | sb.WriteString(e.errorNoType()) | ^ pkg/diag/error.go:107:9: error: expected declaration 107 | } | ^ pkg/diag/error.go:108:9: error: expected declaration 108 | return sb.String() | ^ pkg/diag/error.go:109:1: error: expected declaration 109 | } | ^ pkg/diag/error.go:111:21: error: expected ‘)’ 111 | func (err multiError[T]) Show(indent string) string { | ^ pkg/diag/error.go:111:21: error: expected function name pkg/diag/error.go:111:21: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:113:9: error: expected declaration 113 | fmt.Fprintf(&sb, "Multiple %s:", errorTagPlural[T]()) | ^ pkg/diag/error.go:114:9: error: expected declaration 114 | indent += " " | ^ pkg/diag/error.go:115:9: error: expected declaration 115 | for _, e := range err { | ^ pkg/diag/error.go:117:17: error: expected declaration 117 | sb.WriteString(e.showNoType(indent)) | ^ pkg/diag/error.go:118:9: error: expected declaration 118 | } | ^ pkg/diag/error.go:119:9: error: expected declaration 119 | return sb.String() | ^ pkg/diag/error.go:120:1: error: expected declaration 120 | } | ^ pkg/diag/error.go:122:14: error: expected ‘(’ 122 | func errorTag[T ErrorTag]() string { | ^ pkg/diag/error.go:122:17: error: expected ‘]’ 122 | func errorTag[T ErrorTag]() string { | ^ pkg/diag/error.go:122:17: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:124:9: error: expected declaration 124 | return t.ErrorTag() | ^ pkg/diag/error.go:125:1: error: expected declaration 125 | } | ^ pkg/diag/error.go:130:20: error: expected ‘(’ 130 | func errorTagPlural[T ErrorTag]() string { return errorTag[T]() + "s" } | ^ pkg/diag/error.go:130:23: error: expected ‘]’ 130 | func errorTagPlural[T ErrorTag]() string { return errorTag[T]() + "s" } | ^ pkg/diag/error.go:130:23: error: expected ‘;’ or newline after top level declaration pkg/diag/error.go:132:19: error: expected ‘(’ 132 | func errorTagTitle[T ErrorTag]() string { return strutil.Title(errorTag[T]()) } | ^ pkg/diag/error.go:132:22: error: expected ‘]’ 132 | func errorTagTitle[T ErrorTag]() string { return strutil.Title(errorTag[T]()) } | ^ pkg/diag/error.go:132:22: error: expected ‘;’ or newline after top level declaration note: module requires Go 1.21 github.com/mattn/go-isatty src.elv.sh/pkg/sys # src.elv.sh/pkg/sys pkg/sys/sys.go:15:46: error: reference to undefined name ‘notifySignals’ 15 | func NotifySignals() chan os.Signal { return notifySignals() } | ^ pkg/sys/sys.go:18:18: error: reference to undefined name ‘sigWINCH’ 18 | const SIGWINCH = sigWINCH | ^ pkg/sys/sys.go:21:53: error: reference to undefined name ‘winSize’ 21 | func WinSize(file *os.File) (row, col int) { return winSize(file) } | ^ note: module requires Go 1.21 src.elv.sh/pkg/persistent/hash src.elv.sh/pkg/persistent/hashmap src.elv.sh/pkg/persistent/vector src.elv.sh/pkg/wcwidth src.elv.sh/pkg/cli/histutil golang.org/x/sync/semaphore src.elv.sh/pkg/errutil src.elv.sh/pkg/glob src.elv.sh/pkg src.elv.sh/pkg/getopt src.elv.sh/pkg/mods/epm src.elv.sh/pkg/mods/readline-binding src.elv.sh/pkg/diff src.elv.sh/pkg/pprof ==> 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