Skip to content

PlatformError when building for x86_64-linux-musl #32

@ksamlive

Description

@ksamlive

I'm trying to build a fully static Linux binary with zglfw as a dependency by running zig build -Dtarget=x86_64-linux-musl. The build completes and creates a binary, though I get this in the console:

error: warning(link): unexpected LLD stderr:
ld.lld: warning: /home/<user>/src/gb-emu-zig/.zig-cache/o/460615bf64bea4452ce77ce4a34b293d/libglfw.a: archive member '/home/<user>/.cache/zig/p/system_sdk-0.3.0-dev-alwUNnYaaAJAtIdE2fg4NQfDqEKs7QCXy_qYukAOBfmF/linux/lib/x86_64-linux-gnu/libX11.so' is neither ET_REL nor LLVM bitcode

But when running the binary, zglfw throws a error: PlatformError. I've tried individually disabling X11 and Wayland support in zglfw and running under both X11 and Wayland, and I get the same error.

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