Merged
Conversation
The go.dev install puts Go in /usr/local/go/bin, but the PATH export only lasted for the setup script session. Subsequent shells still found the old distro Go. Now appends PATH to ~/.profile and ~/.bashrc.
The musl-gcc wrapper on Linux (musl-tools) uses musl headers/libraries but doesn't enforce static linking by default. Rust's +crt-static only controls library selection (libc.a vs libc.so) via #[link] attributes — it does NOT pass -static to the linker. Without -static, the binary still gets an ELF INTERP header (/lib/ld-musl-x86_64.so.1), making it "dynamically linked" even though code is from .a files. The guest binary runs inside a minimal VM where the musl dynamic linker doesn't exist, so it needs a truly static binary (no INTERP header). - Add -C link-arg=-static to musl target rustflags in both .cargo/config.toml files - Re-enable check_prerequisites in build-guest.sh for fail-fast on missing musl toolchain
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.