Skip to content

Added libzstd-dev to system dependencies#110

Merged
mawad-amd merged 2 commits intomainfrom
fix/add-libzstd-dep
Apr 1, 2026
Merged

Added libzstd-dev to system dependencies#110
mawad-amd merged 2 commits intomainfrom
fix/add-libzstd-dep

Conversation

@mawad-amd
Copy link
Copy Markdown
Member

Summary

  • KernelDB's src/CMakeLists.txt links against zstd, making libzstd-dev a required system package for building accordo and nexus
  • Updated install script to check for and error on missing libzstd-dev/libzstd-devel
  • Updated Dockerfile and Apptainer def to install libzstd-dev
  • Updated all docs and READMEs that list system prerequisites

Test plan

  • Verified KernelDB src/CMakeLists.txt links zstd via gh search code
  • Updated all 8 files that reference libdwarf-dev to also include libzstd-dev

🤖 Generated with Claude Code

KernelDB links against libzstd (src/CMakeLists.txt), so libzstd-dev
is required at build time. Updated install script, Dockerfile,
Apptainer def, docs, and READMEs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 1, 2026 07:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates system dependency prerequisites to include Zstandard development headers, aligning the install flow and container images with KernelDB’s zstd linkage requirements for building accordo and nexus.

Changes:

  • Add libzstd-dev / libzstd-devel to prerequisite lists across top-level docs and tool docs.
  • Update install/tools/install.sh to check for libzstd-dev/libzstd-devel and fail early when missing.
  • Install libzstd-dev in the Dockerfile and Apptainer definition.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
README.md Adds libzstd-dev to accordo/nexus prerequisites and updates the explanatory note.
install/tools/install.sh Extends native dependency checks to include libzstd dev packages.
docs/src/content/docs/tools/nexus.mdx Updates Nexus install prerequisites to include libzstd-dev.
docs/src/content/docs/tools/accordo.mdx Updates Accordo install prerequisites to include libzstd-dev.
docs/src/content/docs/getting-started/installation.mdx Adds libzstd packages to prerequisites and install commands.
docker/Dockerfile Installs libzstd-dev in the base image.
apptainer/intellikit.def Installs libzstd-dev in the Apptainer image definition.
accordo/README.md Updates Accordo README prerequisite commands for Debian/Fedora families.
Comments suppressed due to low confidence (1)

docs/src/content/docs/getting-started/installation.mdx:44

  • The docs say the install script “will warn” if these system packages are missing, but install/tools/install.sh currently prints an error and exits (unless --dry-run). Please update this sentence to reflect the actual behavior (e.g., “errors and exits” / “fails fast”).
The install script (`install/tools/install.sh`) will warn if these are missing. The
[IntelliKit Docker image](https://github.com/AMDResearch/intellikit/blob/main/docker/Dockerfile) includes them already.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| GPU | MI300+ for the full GPU experience; some tools vary — see each tool's page |
| uProf | AMD uProf on x86 for `uprof_mcp` only |
| cmake, libdwarf-dev | Required by **accordo** and **nexus** (C++ build via KernelDB). See below. |
| cmake, libdwarf-dev, libzstd-dev | Required by **accordo** and **nexus** (C++ build via KernelDB). See below. |

This comment was marked as resolved.

README.md Outdated
| uProf | **AMD uProf** on **x86** for `uprof_mcp` only — see that README |

> **System packages for accordo / nexus:** These tools compile C++ code (via [KernelDB](https://github.com/AMDResearch/KernelDB)) during `pip install`. Install `cmake` and `libdwarf-dev` (`libdwarf-devel` on Fedora/RHEL) first, or the build will fail. The [IntelliKit Docker image](docker/Dockerfile) and `install.sh` already handle this. See [docs](https://amdresearch.github.io/intellikit/getting-started/installation/) for details.
> **System packages for accordo / nexus:** These tools compile C++ code (via [KernelDB](https://github.com/AMDResearch/KernelDB)) during `pip install`. Install `cmake`, `libdwarf-dev`, and `libzstd-dev` (`libdwarf-devel`/`libzstd-devel` on Fedora/RHEL) first, or the build will fail. The [IntelliKit Docker image](docker/Dockerfile) and `install.sh` already handle this. See [docs](https://amdresearch.github.io/intellikit/getting-started/installation/) for details.

This comment was marked as resolved.

…rding

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mawad-amd mawad-amd merged commit 00d08e1 into main Apr 1, 2026
40 checks passed
@mawad-amd mawad-amd deleted the fix/add-libzstd-dep branch April 1, 2026 08:27
@mawad-amd mawad-amd mentioned this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants