Skip to content

opencode fails to run due to missing GLIBC versions #12937

Closed as not planned
Closed as not planned

Description

@chongg039

Description

When running opencode, it fails with the following error messages indicating missing GLIBC versions:

 1 opencode: /lib64/libc.so.6: version `GLIBC_2.18' not found (required by opencode)
 2 opencode: /lib64/libc.so.6: version `GLIBC_2.24' not found (required by opencode)
 3 opencode: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by opencode)

Environment:

 - OS: Enterprise Linux (RHEL 7 compatible)
 - Architecture: x86_64
 - Kernel: 4.19.91
 - GLIBC Version: 2.17

Many enterprise environments still use distributions based on RHEL 7 with GLIBC 2.17, making it difficult to run binaries compiled against newer GLIBC versions.

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

Linux v43h05406.sqa.na131 4.19.91-013

Terminal

No response

Activity

  1. added
    perfIndicates a performance issue or need for optimization
    on Feb 10, 2026
  2. github-actions commented on Feb 10, 2026

    @github-actions
    Contributor

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

    Both issues address the same underlying problem: OpenCode binaries are compiled against newer GLIBC versions that aren't available on enterprise systems running RHEL 7 or CentOS 7 with GLIBC 2.17.

    If this is a new instance or has additional context not covered in the existing issues, please clarify the difference.

  3. goniz commented on Feb 17, 2026

    @goniz
    Contributor

    Can you please check if my PR solves this for you?

    Try doing this (requires docker and qemu):

    gh pr checkout 9430
    bun install
    bun run --cwd packages/opencode build
    bun run --cwd packages/opencode build:portable
    

    Binary will be available at packages/opencode/dist/opencode-linux-x64-musl/bin/opencode

  4. chongg039 commented on Feb 27, 2026

    @chongg039
    Author

    @goniz Yes, this works for me. Thanks!
    Just for context, I also managed to get it working previously by using patchelf to modify the glibc in opencode.

  5. github-actions commented on Apr 29, 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

bugSomething isn't workingperfIndicates a performance issue or need for optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions