Skip to content

Linux C package link failures need actionable system-library diagnostics #1165

Closed

Description

@ehartford

The floating raylib UAT fails on Linux with missing GL/X11 linker libraries. Package installation records opengl/system and xorg/system without checking availability; linking reports raw unable to find library -lGL ... errors without explaining the required development packages.

Repro: on a Linux host without GL/X11 development packages, run with init ., with get c.raylib, then the release spiral fixture. The release run 35143254857 demonstrates the x86_64 failure. An offline with get c.opengl@system probe on Linux arm64 also claims success while /usr/lib/aarch64-linux-gnu/libGL.so is absent.

Native GDB proof on compiler 0a0ff13: conan_write_known_system_package+1092 (0x224fa18) compares the metadata writer's zero status; +1100 sets success from that comparison. The function returns w0=1 and prints using system package opengl/system. Current source has the same final conan_write_metadata(...) == 0 condition. Evidence: local linux-system-package-success-gdb.log and linux-system-package-gdb.log.

Expected under §18.8 package management and the floating-UAT acceptance requirement: report the missing system dependencies with an actionable installation instruction, or supply them. Respect actual linker search paths and sysroots. A separately reimplemented library search must not reject valid custom -L paths.

Work in progress: capture the actual linker verdict, identify missing libraries for both GNU and LLVM diagnostics, explain development-library requirements and known Debian/Ubuntu package names, and provision the CI and Docker rendering hosts. No package pins or UAT waivers.

Activity

  1. ehartford commented on Oct 25, 2026

    @ehartford
    ContributorAuthor

    Triage 2026-10-25, with v0.15.3.0 (main a261b65): does not reproduce in source. src/compiler/LinkDiagnostics.w (667c6d1, #1191) recognizes unable to find library -l and cannot find -l and adds: "Install the development packages providing these files, or add their directory to the project's library search paths." Its test passes:

    $ with test test/internals/link_diagnostics_test.w
    ok: 1 test passed
    

    Not run on a Linux host without GL/X11 development packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions