[GH-ISSUE #612] Test compilation: missing libc linkage for extern "c" functions #168

Closed
opened 2026-03-02 23:45:01 +03:00 by kerem · 0 comments
Owner

Originally created by @simonklee on GitHub (Feb 1, 2026).
Original GitHub issue: https://github.com/anomalyco/opentui/issues/612

Originally assigned to: @simonklee on GitHub.

Tests fail to compile on one of my linux machines. Dependency on libc must be explicitly specified in the build command. I think the we're missing to link to libc in the test binary.

const test_mod = b.createModule(.{
    .root_source_file = b.path("test.zig"),
    .target = native_target,
    .optimize = .Debug,
    .link_libc = true,
});

Regressed in: #546

Originally created by @simonklee on GitHub (Feb 1, 2026). Original GitHub issue: https://github.com/anomalyco/opentui/issues/612 Originally assigned to: @simonklee on GitHub. Tests fail to compile on one of my linux machines. `Dependency on libc must be explicitly specified in the build command`. I think the we're missing to link to libc in the test binary. ``` const test_mod = b.createModule(.{ .root_source_file = b.path("test.zig"), .target = native_target, .optimize = .Debug, .link_libc = true, }); ``` Regressed in: #546
kerem 2026-03-02 23:45:01 +03:00
  • closed this issue
  • added the
    core
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/opentui#168
No description provided.