Skip to content

devenv: link libghostty-vt dynamically - #567929

Merged
vcunat merged 1 commit into
NixOS:staging-nextfrom
domenkozar:fix-devenv-staging-next
Sep 28, 2026
Merged

vcunat merged 1 commit into
NixOS:staging-nextfrom
domenkozar:fix-devenv-staging-next

Conversation

@domenkozar

Copy link
Copy Markdown
Member

Fix the devenv build on staging-next by enabling dynamic linking for libghostty-vt-sys.

The Zig-built static Ghostty archive fails to link into devenv: mold reports unresolved symbols from compiler_rt.o, and GNU ld.bfd rejects overlapping FDEs. The package already provides libghostty-vt.so, which links and runs successfully. This changes only the Cargo link mode.

Things done

Verification: nix-build -A devenv --no-out-link succeeded on staging-next, including 281 passing nextest tests (one skipped). nix-build -A devenv.tests.version --no-out-link passed and reported devenv 2.4.0 (x86_64-linux).

AI disclosure: This PR description and package fix were prepared with assistance from OpenAI Codex (GPT-6).

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)
@nixpkgs-ci
nixpkgs-ci Bot requested a review from sandydoo September 28, 2026 16:17
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. llm-assisted Contributions that include code generation with LLMs labels Sep 28, 2026
@vcunat
vcunat added this pull request to the merge queue Sep 28, 2026
Merged via the queue into NixOS:staging-next with commit bfefd3b Sep 28, 2026
33 checks passed
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).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants