LaunchKit · 2026
Back to Skills

rose-docker-build-skill

Build the ROSE compiler in a Docker container using autotools or CMake.

0
1.0k downloads
by @chunhualiao

Setup & Installation

openclaw skills install @chunhualiao/rose-docker-build-skill

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install rose-docker-build-skill

Version History

v0.1.1Feb 7, 2026 - Version note by skill developer:

- Added full support and documentation for both Autotools and CMake-based Docker builds of ROSE, including step-by-step instructions and troubleshooting. - Introduced a new Dockerfile.cmake with instructions to install CMake 4.x required for CMake builds. - Expanded Quick Start section to separately detail build and usage steps for Autotools and CMake. - Added comparison table between Autotools and CMake workflows, clarifying key differences. - Improved guidance on EDG binary handling and troubleshooting for both build systems. - Removed legacy script references (references/build-rose.sh, references/docker-compose.yml) from the project.

What This Skill Does

Builds the ROSE source-to-source compiler inside a Docker container using either autotools or CMake. ROSE requires GCC 7-10, which conflicts with GCC 11+ on modern hosts, making Docker the practical build environment. Supports editing source on the host while compiling inside the container.

Avoids GCC version conflicts by isolating the build in a container, so users don't need to downgrade or maintain a separate toolchain on their host system.

When to use it

  • Setting up a ROSE development environment on a machine with GCC 11+
  • Building ROSE from the weekly branch with EDG C++ frontend binaries
  • Running source-to-source transformations on C/C++ programs
  • Comparing autotools and CMake build times for ROSE
  • Troubleshooting EDG binary linking or ROSETTA generation failures

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: build ROSE using CMake inside Docker

AGENT
  1. 1Clones rose-compiler/rose and checks out the weekly branch
  2. 2Creates a Dockerfile.cmake with Ubuntu 20.04, required build dependencies, and CMake 4.x from Kitware
  3. 3Builds and starts the container with the ROSE source mounted as a read-only volume
  4. 4Runs cmake inside the container with C/C++ analysis enabled and tests disabled
  5. 5Runs make -j4 and verifies the build with rose-compiler --version
OUTPUT

Working ROSE compiler binary at /rose/build/bin/rose-compiler inside the container, ready for source-to-source transformations

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

Docker installed on the host machine