Skip to content

Build broken on musl #21

Closed
Closed
@min4builder

Description

@min4builder

I am building from a musl system. When building with -Dtarget=x86_64-linux-gnu, it works normally. When building for x86_64-linux-musl, it's missing the <dbus/dbus-arch-deps.h> include. I was able to trace it to the following lines in the build.zig:

if (target.result.cpu.arch == .x86_64 and target.result.abi.isGnu()) {
    sdl_mod.addSystemIncludePath(deps_values.dependency.path("include/x86_64-linux-gnu"));
}

It turns out these files are identical between linux-gnu and linux-musl (at least on x86_64), so the check for specifically gnu makes the header go missing. Removing it from my local copy fixed my build.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions