Skip to content

Same agent Smaller bill. The tools and infrastructure to get more work from your AI. Fewer tokens. Less compute. Lower cost.

ci(otel-gpu-collector): install libc6-dev-arm64-cross for cross-cgo b… (#1225)

Aman Agarwalcd5e5712a320
diff --git a/.github/workflows/otel-gpu-collector-release.yml b/.github/workflows/otel-gpu-collector-release.yml
index e752bd2d..4f0c3dae 100644
--- a/.github/workflows/otel-gpu-collector-release.yml
+++ b/.github/workflows/otel-gpu-collector-release.yml
@@ -91,12 +91,18 @@ jobs:
# NVIDIA NVML (github.com/NVIDIA/go-nvml) uses cgo+dlopen to load
# libnvidia-ml.so at runtime, so the linux release binaries must be built
# with CGO_ENABLED=1. Cross-compiling linux/arm64 from an amd64 runner
- # additionally needs an aarch64 C toolchain.
+ # additionally needs an aarch64 C toolchain plus the target libc headers.
+ #
+ # libc6-dev-arm64-cross provides /usr/aarch64-linux-gnu/include (including
+ # bits/libc-header-start.h). It is only a Recommends of gcc-aarch64-linux-gnu,
+ # so we list it explicitly to stay safe under --no-install-recommends.
- name: Install aarch64 cross-compiler (linux/arm64 only)
if: matrix.goos == 'linux' && matrix.goarch == 'arm64'
run: |
sudo apt-get update -q
- sudo apt-get install --no-install-recommends -y gcc-aarch64-linux-gnu
+ sudo apt-get install --no-install-recommends -y \
+ gcc-aarch64-linux-gnu \
+ libc6-dev-arm64-cross
- name: Generate eBPF objects (linux targets only)
if: matrix.goos == 'linux'