Copilot CLI fails to start on Rocky Linux 8.10 due to GLIBC version mismatch in distributed native modules
- Ngôn ngữ chính
- Shell
- Star
- 11.2k
- Fork
- 1.9k
- Merge trung bình
- 14 giờ 16 phút
- Pull request đã merge (30 ngày)
- 6
Mô tả
### 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.
Hướng dẫn đóng góp
Hướng nghiên cứu
Start with the distributed native module at ~/.cache/copilot/pkg/linux-x64/1.0.46/native/runtime/runtime.linux-x64-gnu.node and reproduce the failure on Rocky Linux 8.10. Run ldd on the module to verify the missing GLIBC symbols, then determine whether the resulting Copilot CLI binary starts on the affected enterprise Linux environment without native binding errors.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- linux, node.js
- Lĩnh vực
- cli, operating-systems
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100