Repository navigation
devenv: link libghostty-vt dynamically - #567929
Merged
Merged
Conversation
The static libghostty-vt archive fails to link into devenv on staging-next. Mold reports undefined symbols from compiler_rt.o, while ld.bfd rejects overlapping FDEs. Enable the link-dynamic feature so Cargo uses the packaged shared library. Assisted-by: OpenAI Codex (GPT-6)
kriswill
added a commit
to kriswill/devenv
that referenced
this pull request
Oct 1, 2026
Zig 0.16 rebuilt on the gcc 16 stdenv emits a compiler_rt.o whose section symbols point at SHN_UNDEF. Linking the static libghostty-vt.a into devenv then fails with an empty-named undefined symbol referenced from `__memmove_chk`. Enable libghostty-vt-sys's `link-dynamic` feature to link the .so instead, as nixpkgs' devenv does (NixOS/nixpkgs#567929).
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.
Fix the
devenvbuild onstaging-nextby enabling dynamic linking forlibghostty-vt-sys.The Zig-built static Ghostty archive fails to link into
devenv: mold reports unresolved symbols fromcompiler_rt.o, and GNUld.bfdrejects overlapping FDEs. The package already provideslibghostty-vt.so, which links and runs successfully. This changes only the Cargo link mode.Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.Verification:
nix-build -A devenv --no-out-linksucceeded onstaging-next, including 281 passing nextest tests (one skipped).nix-build -A devenv.tests.version --no-out-linkpassed and reporteddevenv 2.4.0 (x86_64-linux).AI disclosure: This PR description and package fix were prepared with assistance from OpenAI Codex (GPT-6).