Skip to content

[BUG] v2.1.63 crashes on Alpine Linux (musl): posix_getdents symbol not found #29559

@H3CATE

Description

@H3CATE

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Claude Code v2.1.63 crashes immediately on Alpine Linux (musl libc) with:
Error relocating /home/claude/.local/bin/claude: posix_getdents: symbol not found
Every command fails, including claude --version.

What Should Happen?

Claude Code should start normally on Alpine Linux, as it did with v2.1.62.

Error Messages/Logs

Error relocating /home/claude/.local/bin/claude: posix_getdents: symbol not found

Steps to Reproduce

  1. Have Claude Code installed on Alpine Linux (musl-based)
  2. Auto-update to v2.1.63
  3. Run any command, e.g. claude --version
  4. Observe the posix_getdents: symbol not found error

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

2.1.62

Claude Code Version

2.1.63 (broken) / 2.1.62 (Claude Code) (rollback)

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

Installing gcompat (glibc compatibility shim) does not resolve the issue.
posix_getdents is not provided by gcompat either.

The 2.1.63 binary is ~6MB larger than 2.1.62 (225MB vs 219MB), suggesting a
dependency change. posix_getdents is a glibc-specific symbol absent from musl libc.

Workaround: roll back the symlink:
ln -sf ~/.local/share/claude/versions/2.1.62 ~/.local/bin/claude

Metadata

Metadata

Assignees

No one assigned

    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