Skip to content

PTY spawn fails on Ubuntu 22.04: bun-pty requires GLIBC 2.39, system has 2.35 #1

@carlesoctav

Description

@carlesoctav

The opencode-pty plugin fails to spawn PTY sessions on Ubuntu 22.04 LTS with the error:

TypeError: undefined is not an object (evaluating 'lib.symbols')

The underlying bun-pty@0.4.2 dependency ships a prebuilt librust_pty.so that was compiled against GLIBC 2.39, which is not available on Ubuntu 22.04 (ships with GLIBC 2.35).

$ ldd ~/.bun/install/cache/bun-pty@0.4.2@@@1/rust-pty/target/release/librust_pty.so
/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by librust_pty.so)

Environment

Component Version
OS Ubuntu 22.04.5 LTS (Jammy)
Kernel 5.19.0-1022-gcp
Bun 1.3.5
Node v22.21.1
GLIBC 2.35
opencode-pty 0.1.0
bun-pty 0.4.2

I guess this is from bun-pty, also wdyt about moving to bun native pty, i'm not really sure if all the api is there yet,
https://bun.com/blog/bun-v1.3.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions