Copilot CLI fails to start on Rocky Linux 8.10 due to GLIBC version mismatch in distributed native modules
- Linguagem predominante
- Shell
- Estrelas
- 11.2k
- Forks
- 1.9k
- Merge médio
- 14h 16min
- PRs com merge (30d)
- 6
Descrição
### 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.
Guia de contribuição
Direção de pesquisa
Comece com o módulo nativo distribuído em ~/.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node e reproduza a falha no Rocky Linux 8.10. Execute ldd no módulo para verificar os símbolos GLIBC ausentes e, em seguida, determine se o binário resultante do Copilot CLI é iniciado no ambiente Linux empresarial afetado sem erros de binding nativo.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- linux, node.js
- Domínio
- cli, operating-systems
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Pouca atividade
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 45/100