Skip to content

Segmentation fault on Chimera Linux (musl libc) due to glibc dependency #17440

Closed as not planned

Description

@gemedevel-droid

Description

I'm trying to run OpenCode on Chimera Linux, which uses musl libc instead of glibc. The binary installs correctly, but it immediately crashes with a segmentation fault when executed.

System information:

OS: Chimera Linux
Kernel: 6.19.2
Architecture: x86_64
Terminal: kitty (xterm-kitty)

Steps to reproduce:

  1. Install OpenCode using the official install script:

curl -fsSL https://opencode.ai/install | bash

  1. Run the CLI:

opencode --help

Result:

Segmentation fault

The crash happens even with basic commands like:

opencode --version
opencode run "hello"

It appears the binary expects glibc symbols that are not available on musl systems.

ldd output:

ldd ~/.opencode/bin/opencode

/lib64/ld-linux-x86-64.so.2
libc.so.6 => /lib64/ld-linux-x86-64.so.2
ld-linux-x86-64.so.2 => /lib/ld-linux-x86-64.so.2
libpthread.so.0 => /lib64/ld-linux-x86-64.so.2
libdl.so.2 => /lib64/ld-linux-x86-64.so.2
libm.so.6 => /lib64/ld-linux-x86-64.so.2

Error relocating opencode: gnu_get_libc_version: symbol not found
Error relocating opencode: backtrace: symbol not found
Error relocating opencode: backtrace_symbols: symbol not found
Error relocating opencode: malloc_trim: symbol not found
Error relocating opencode: __cxa_thread_atexit_impl: symbol not found
Error relocating opencode: __cxa_at_quick_exit: symbol not found
Error relocating opencode: __register_atfork: symbol not found
Error relocating opencode: __fprintf_chk: symbol not found
Error relocating opencode: __sprintf_chk: symbol not found
Error relocating opencode: __strftime_l: symbol not found

This seems to indicate the binary is built against glibc and therefore incompatible with musl-based distributions like:

  • Chimera Linux
  • Alpine Linux
  • postmarketOS

Feature request:

It would be very helpful if a musl-compatible build could be provided, for example:

x86_64-unknown-linux-musl

Many modern CLI tools provide both glibc and musl builds to support Alpine/musl ecosystems.

Thanks for the great project!

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

chimera linux

Terminal

kitty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 14, 2026
  2. github-actions commented on Mar 14, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    If your issue is the same, please consider adding a "+1" or additional context there instead of opening a new report.

  3. removed
    bugSomething isn't working
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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