build: release script fails at linux-s390x (aead/chacha20 assembly rejected by current Go toolchain) and windows/arm no longer supported

Aperta
#536 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start in make/release_flags.mk, where BUILD_SYSTEM lists the platforms, and in go.mod to trace how github.com/aead/chacha20 reaches the build through lndclient/aperture. Reproduce with make release or env GOOS=linux GOARCH=s390x go build ./... to see the assembler error. Done means either the two platforms are removed from the list with a note, or the s390x build passes. The maintainers still need to decide which of those two paths to take.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Problem

make release on master fails partway through:

  1. linux-s390x: the legacy github.com/aead/chacha20 module (pinned at v0.0.0-20180709150244-8b13a72661da, pulled in via lndclient/aperture) contains big-endian assembly that the current Go assembler rejects:

    chacha_ref.go:32:18: illegal combination MOVWBR ADDR NONE NONE NONE NONE REG
    

    Confirmed pre-existing at 561c94b (before the v0.7.3-beta dependency bumps), so this is not a regression from #531 — the toolchain moved, the ancient module did not. v0.6.4-beta still shipped a s390x archive; v0.7.3-beta could not.

  2. windows-arm: env GOOS=windows GOARCH=arm go build now fails with unsupported GOOS/GOARCH pair windows/arm. windows-arm64 was built instead.

Suggested fix

  • Replace aead/chacha20 (abandoned) with golang.org/x/crypto/chacha20poly1305 in the dependency chain — the module is only reachable via lndclient/aperture, so it likely needs upstream fixes or a replace directive.
  • Remove linux-s390x and windows-arm from BUILD_SYSTEM in make/release_flags.mk if the platforms are being dropped intentionally, or fix the chacha20 issue if s390x support is retained.

Context

v0.7.3-beta was published without a s390x archive and with windows-arm64 instead of windows-arm; both gaps are documented in the release notes at https://github.com/lightninglabs/pool/releases/tag/v0.7.3-beta

Lingua principale
Go
Stelle
256
Fork
53
Merge medio
20h 22m
PR unite (30g)
5

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lightninglabs/pool

Tutte le issue di lightninglabs/pool

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.