Hi! I'm trying to build a package for elvish, and I'm having trouble getting to build on aarch64 platform:
=========================================================================================================== (define-public go-pkg-nimblebun-works-go-lsp (package (name "go-pkg-nimblebun-works-go-lsp") (version "1.1.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/nimblebun/go-lsp") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "14hdbk0h85930phnsih5k33dj2qx9b3j4vvsf24g6v3qqjvbp54q")))) (build-system go-build-system) (arguments (list #:import-path "pkg.nimblebun.works/go-lsp")) (home-page "https://pkg.nimblebun.works/go-lsp") (synopsis "Language Server Protocol types for Go") (description "Package lsp contains type definitions and documentation for the Language Server Protocol.") (license license:expat))) (define-public elvish (package (name "elvish") (version "0.21.0") (source (origin (method git-fetch) (uri (git-reference (url "https://github.com/elves/elvish") (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 (base32 "1yrah4xbm8jsmr578676bd0yq1n3dc6ahs0hav6csnl7739jpags")))) (build-system go-build-system) (arguments (list #:import-path "src.elv.sh/cmd/elvish" #:unpack-path "src.elv.sh")) (propagated-inputs `(("go-pkg-nimblebun-works-go-lsp" ,go-pkg-nimblebun-works-go-lsp) ("go-golang-org-x-sys" ,go-golang-org-x-sys) ("go-golang-org-x-sync" ,go-golang-org-x-sync) ("go-go-etcd-io-bbolt" ,go-go-etcd-io-bbolt) ("go-github-com-sourcegraph-jsonrpc2" ,go-github-com-sourcegraph-jsonrpc2) ("go-github-com-mattn-go-isatty" ,go-github-com-mattn-go-isatty) ("go-github-com-google-go-cmp" ,go-github-com-google-go-cmp) ("go-github-com-creack-pty" ,go-github-com-creack-pty))) (home-page "https://src.elv.sh") (synopsis "Elvish") (description "(Chat rooms are all bridged together thanks to @@url{https://matrix.org,Matrix}.).") (license license:bsd-2))) =========================================================================================================== Following is an excerpt from the build log: =========================================================================================================== # Pastebin G1MXL8SL mkdir -p $WORK/b001/exe/ cd . GOROOT_FINAL='$GOROOT' /gnu/store/cfmhca8297apjsxsarfaqhf5ggj7ccdw-go-1.21.5/lib/go/pkg/tool/linux_arm64/link -o $WORK/b001/exe/a.out -importcfg $WORK/b001/importcfg.link -X=runtime.godebu gDefault=panicnil=1 -buildmode=exe -buildid=kOP6rejBgsARnjFs_qC0/U_i2dTAsWPzJinPeg3O1/730Z1N6kOVs2-6sBT8Ll/kOP6rejBgsARnjFs_qC0 -s -w -extld=gcc -r /gnu/store/vwkiblwq7y8xiflg51cnk2a3x1wwi ysj-gcc-11.3.0-lib/lib $WORK/b001/_pkg_.a # src.elv.sh/cmd/elvish /gnu/store/cfmhca8297apjsxsarfaqhf5ggj7ccdw-go-1.21.5/lib/go/pkg/tool/linux_arm64/link: running gcc failed: exit status 1 collect2: fatal error: cannot find ‘ld’ compilation terminated. Building 'src.elv.sh/cmd/elvish' failed. Here are the results of `go env`: GO111MODULE='off' GOARCH='arm64' GOBIN='/gnu/store/4rd2c5r5lbqkyg0hmivy4awc3kb5h9fh-elvish-0.21.0/bin' GOCACHE='/tmp/guix-build-elvish-0.21.0.drv-0/go-build' GOENV='/homeless-shelter/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='arm64' GOHOSTOS='linux' GOINSECURE='' GOMODCACHE='/tmp/guix-build-elvish-0.21.0.drv-0/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='linux' GOPATH='/tmp/guix-build-elvish-0.21.0.drv-0' GOPRIVATE='' GOPROXY='https://proxy.golang.org,direct' GOROOT='/gnu/store/cfmhca8297apjsxsarfaqhf5ggj7ccdw-go-1.21.5/lib/go' GOSUMDB='sum.golang.org' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/gnu/store/cfmhca8297apjsxsarfaqhf5ggj7ccdw-go-1.21.5/lib/go/pkg/tool/linux_arm64' GOVCS='' GOVERSION='go1.21.5' GCCGO='gccgo' AR='ar' CC='gcc' CXX='g++' CGO_ENABLED='1' GOMOD='' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/guix-build-elvish-0.21.0.drv-0/go-build434645731=/tmp/go-build -gno-record-gcc-switches' error: in phase 'build': uncaught exception: %exception #<&invoke-error program: "go" arguments: ("install" "-v" "-x" "-ldflags=-s -w" "-trimpath" "src.elv.sh/cmd/elvish") exit-status: 1 term-signal: #f stop-signal: #f> phase `build' failed after 3.6 seconds command "go" "install" "-v" "-x" "-ldflags=-s -w" "-trimpath" "src.elv.sh/cmd/elvish" failed with status 1 Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. builder for `/gnu/store/lg3b7z5qhdm6aybw6cr2h4m0psmfh32v-elvish-0.21.0.drv' failed with exit code 1 build of /gnu/store/lg3b7z5qhdm6aybw6cr2h4m0psmfh32v-elvish-0.21.0.drv failed View build log at '/var/log/guix/drvs/lg/3b7z5qhdm6aybw6cr2h4m0psmfh32v-elvish-0.21.0.drv.gz'. guix build: error: build of `/gnu/store/lg3b7z5qhdm6aybw6cr2h4m0psmfh32v-elvish-0.21.0.drv' failed =========================================================================================================== In the definition of go-build-system, I see that binutils-gold is included in native-inputs for aarch64 platform, yet this packages fails to build on aarch64 platform unless I add binutils-gold in native-inputs. Does this ring any bells ? Thanks in advance for any help -- Abbé
signature.asc
Description: OpenPGP digital signature