Skip to content

Binary doesn't work on Alpine Linux (musl) - missing glibc symbols #42

@alejandroqh

Description

@alejandroqh

Environment

  • OS: Alpine Linux 3.23 (TermOS 0.4.0 Prerelease)
  • Architecture: aarch64
  • treemd version: 0.5.4

Problem

The pre-built binary fails to run on Alpine Linux due to glibc dependencies. Alpine uses musl libc instead of glibc.

Error

$ treemd
Error relocating /usr/bin/treemd: __res_init: symbol not found

Running ldd shows multiple missing glibc-specific symbols:

Error relocating /usr/bin/treemd: __memcpy_chk: symbol not found
Error relocating /usr/bin/treemd: __snprintf_chk: symbol not found
Error relocating /usr/bin/treemd: __vsnprintf_chk: symbol not found
Error relocating /usr/bin/treemd: gnu_get_libc_version: symbol not found
Error relocating /usr/bin/treemd: __res_init: symbol not found

Even with gcompat (glibc compatibility layer) installed, these symbols are not available.

Request

Would it be possible to provide a musl-compatible binary for Alpine Linux users?

Since treemd is written in Rust, building with x86_64-unknown-linux-musl or aarch64-unknown-linux-musl target should produce a compatible binary.

Alternatively, a statically-linked binary would also work.

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions