ROSE Docker Build for Openclaw

A specialized environment for building the ROSE source-to-source compiler using Docker to ensure toolchain compatibility and dependency isolation.

chunhualiao
v0.1.1
Feb 8, 2026
0
2.2k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install rose-docker-build-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install rose-docker-build-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is ROSE Docker Build?

The rose-docker-build skill provides a robust framework for compiling the complex ROSE source-to-source infrastructure within isolated containers. Since ROSE requires specific legacy versions of GCC (typically 7-10) and has strict dependencies on Boost and CMake versions, this tool leverages Docker to create a reproducible, consistent build environment that avoids host-system conflicts.

By utilizing this resource from Openclaw Skills, developers can bypass the frustration of manual dependency management. It allows for a seamless workflow where code is edited on the host machine but compiled and tested within a containerized environment, ensuring that the ROSE compiler remains stable and portable across different development systems.

ROSE Docker Build Use Cases

  • Setting up a fresh ROSE development environment without altering the host OS toolchain.
  • Resolving build failures caused by incompatible GCC versions (GCC 11+) found on modern Linux distributions.
  • Facilitating reproducible source-to-source compiler builds across distributed development teams.
  • Testing ROSE compiler transformations and binary analysis in a safe, isolated sandbox.

How ROSE Docker Build Works

  1. Initialize the environment by cloning the ROSE source repository and checking out the recommended weekly branch.
  2. Configure the Docker development environment using provided Dockerfiles for either Autotools or CMake workflows.
  3. Build the Docker image to install all necessary system dependencies including specific GCC versions and Kitware CMake repositories.
  4. Instantiate the container while mounting the local source tree to allow real-time code editing on the host.
  5. Run the configuration and build commands inside the container using docker exec to generate the ROSE core.
  6. Verify the compiler installation by running a sample source-to-source transformation on a C++ test file.

ROSE Docker Build Setup

To get started with this skill from Openclaw Skills, follow these steps:

# 1. Clone the ROSE repository
git clone [email protected]:rose-compiler/rose.git
cd rose && git checkout weekly

# 2. Prepare the Docker workspace
mkdir ../rose-docker && cd ../rose-docker

# 3. Build the container image
docker build -t rose-dev .

# 4. Start the container with source mounting
docker run -d --name rose-dev -v $(pwd)/../rose:/rose/src rose-dev

ROSE Docker Build Data Schema & Taxonomy

The skill manages data through a specific directory structure within the container to maintain separation between source code, build artifacts, and final binaries.

Directory Path Description
/rose/src The volume-mounted source code directory from the host.
/rose/build Workspace for intermediate object files and build system metadata.
/rose/install Destination for the final rose-compiler binaries and shared libraries.
librose.so The core compiler library, optimized for size (CMake) or debugging (Autotools).

ROSE Docker Build Advanced Features

  • Automated EDG binary handling which manages the proprietary C++ frontend requirement by checking local caches or remote servers.
  • Flexible build system support allowing developers to toggle between mature Autotools stability and faster CMake incremental builds.
  • Memory-aware parallelization settings to prevent Out-of-Memory (OOM) errors on systems with limited RAM.
  • Pre-configured environment variables for DEBIAN_FRONTEND and Timezones to ensure non-interactive, headless builds.
  • Integrated source-to-source testing workflows to validate compiler integrity immediately after installation via Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*