Skip to content

Fix Linux amd64 release CPU baseline - #410

Merged
AndreyVMarkelov merged 2 commits into
dropbox:masterfrom
AndreyVMarkelov:andreymarkelov/fix-linux-amd64-baseline
Nov 23, 2026
Merged

AndreyVMarkelov merged 2 commits into
dropbox:masterfrom
AndreyVMarkelov:andreymarkelov/fix-linux-amd64-baseline

Conversation

@AndreyVMarkelov

@AndreyVMarkelov AndreyVMarkelov commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #409.

Linux amd64 releases can inherit an AVX-capable C compiler baseline and crash during cgo startup on CPUs without AVX, even with GOAMD64=v1. Pin the Linux amd64 build to GOAMD64=v1 and append -march=x86-64 to the C compiler flags while retaining cgo. Use Ubuntu 24.04 for release builds and CPU checks so the system loader and libc also support baseline amd64 CPUs.

Add a shared smoke test that extracts the release archive and runs dbxcli version under QEMU's qemu64 CPU model without AVX. Run it in PR CI and before uploading release assets. CI deliberately supplies v3 Go and C compiler flags to verify that the build restores the baseline.

@AndreyVMarkelov
AndreyVMarkelov merged commit ad2511c into dropbox:master Nov 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linux amd64 release binaries crash with SIGILL on CPUs without AVX (v3.8.0 and v3.8.2)

1 participant