Skip to content

tools/ci_download_dendrite_stub does not work on macOS #3938

Open

Description

Per @david-crespo, this script does not run on macOS.

As a workaround, one can lie to the script about the OS version it's running on and compile the necessary packages to build and run omicron:

cat ../omicron-install-dendrite.sh
#! /usr/bin/env bash

OSTYPE=linux-gnu tools/ci_download_dendrite_stub

BIN_DIR="$(pwd)/out/dendrite-stub/root/opt/oxide/dendrite/bin"

cd ~/oxide/dendrite
cargo build -p dpd --features tofino_stub --release
cargo build -p swadm --release
cp target/release/dpd "$BIN_DIR/dpd"
cp target/release/swadm "$BIN_DIR/swadm"

echo "now add the dir to your path"
echo ""
echo "  export PATH=\"$BIN_DIR:\$PATH\""

The reason the script fails is that dendrite does not build binaries for mac: oxidecomputer/dendrite#223.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    buildBuilding the control planedevelopmentBugs, paper cuts, feature requests, or other thoughts on making omicron development better

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions