Skip to content

[Bug] MacOS Failure due to bad linking. #1544

Closed

Description

@Geramy

Git commit

Latest.

Root cause: the prebuilt sd-server binary in .cache/bin/sd-cpp/metal/ was linked on the CI runner with a hardcoded LC_RPATH of
/Users/runner/work/stable-diffusion.cpp/.../build/bin and no @executable_path rpath, so it can't find the libstable-diffusion.dylib sitting right next to it.
Lemonade's SDServer does try to compensate by exporting LD_LIBRARY_PATH — but that's the Linux env var; macOS's dyld uses DYLD_LIBRARY_PATH, so the workaround
never fires (and would be stripped by SIP for system binaries anyway).

Ps. I fixed these on the lemonade ci pipeline process.

Operating System & Version

MacOS 26.5

GGML backends

Metal

Command-line arguments used

/Library/Application Support/lemonade/.cache/bin/sd-cpp/metal/sd-server" --listen-port 8001 --diffusion-model "xxxxx"

Steps to reproduce

run the binary on mac / metal.

What you expected to happen

to work.

What actually happened

it broke.

Logs / error messages / stack trace

No response

Additional context / environment details

No response

Activity

  1. added
    bug
    on May 22, 2026
  2. Geramy commented on May 22, 2026

    @Geramy
    Author

    @leejet could you fix this and do a new release? We jsut released 10.6 of lemonade on mac with it "working" but this problem is causing sd to crash. If you want to check out the lemonade branch we had the same issue there until I fixed it earlier. I would greatly appreciate the fix, thank you!

  3. leejet commented on May 23, 2026

    @leejet
    Owner

    This should be resolved now. Feel free to reopen if it still happens.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions