github / github/copilot-cli

Copilot CLI fails to start on Rocky Linux 8.10 due to GLIBC version mismatch in distributed native modules

Aperta
#3,276 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
area:installation area:platform-linux
Lingua principale
Shell
Stelle
11.2k
Fork
1.9k
Merge medio
14h 16m
PR unite (30g)
6

Descrizione

### Describe the bug

Attempting to use Copilot CLI on Rocky Linux 8.10 fails to initialize due to missing GLIBC symbols required by the distributed native module (e.g., `GLIBC_2.29`, `GLIBC_2.30`, `GLIBC_2.33`, `GLIBC_2.34`). This leads to startup errors about native bindings not being found, despite user instructions to reinstall packages. The CLI cannot operate on popular enterprise Linux distributions using GLIBC lower than 2.29.

### Affected version

1.0.46

### Steps to reproduce the behavior

1. Install Copilot CLI 1.0.46 on Rocky Linux 8.10 (or any related EL based distro)
2. Run Copilot CLI command (e.g., `copilot`)
3. Observe error about missing native bindings referencing multiple GLIBC versions
4. Check ldd results for native module: shows missing GLIBC_2.29, GLIBC_2.30, GLIBC_2.33, GLIBC_2.34

### Expected behavior

Copilot CLI should start and run on standard enterprise Linux like Rocky Linux 8.10 (with older GLIBC).

### Additional context

Logs:
```
[ERROR] Failed to initialize sidekick agents: Error: Failed to load built-in sidekick agent "github-context": Failed to read file .../github-context.yaml: Error: Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.
```
ldd command:
```
ldd ~/.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node

.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libm.so.6: version `GLIBC_2.29' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libc.so.6: version `GLIBC_2.30' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libc.so.6: version `GLIBC_2.33' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by .cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node)
```
OS: Rocky Linux 8.10 (RHEL/CentOS compatible)
Copilot CLI 1.0.46
Node.js v24.15.0

Request: Please provide Copilot CLI binaries compatible with enterprise Linux GLIBC versions as found in Rocky/CentOS/RHEL 8.x, or alternatives/workarounds for this environment.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia con il modulo nativo distribuito in ~/.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node e riproduci il problema su Rocky Linux 8.10. Esegui ldd sul modulo per verificare i simboli GLIBC mancanti, quindi determina se il binario Copilot CLI risultante si avvia nell’ambiente Linux enterprise interessato senza errori di binding nativi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
linux, node.js
Ambito
cli, operating-systems
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.