Skip to content

Error when running "make serve" #95

Closed

Description

@case

It looks like I may need to have the Rust Nightly installed, and maybe wasm-tools as well? Maybe we need a bin/setup (or make deps, etc) script to install dependencies?

        --- stderr
        error: toolchain 'nightly-aarch64-apple-darwin' is not installed
        help: run `rustup toolchain install nightly-aarch64-apple-darwin` to install it

        --- stderr
        Error: Failed to run wasm-tools

Error output:

$ make serve

mkdir -p build
Building bottle-app example with fastly-compute-py...
cd examples/bottle-app && uv run cargo run --release --manifest-path /path/to/fastly/compute-sdk-python/crates/fastly-compute-py/Cargo.toml --no-default-features --features binary -- build --output ../../build/bottle-app.composed.wasm
Using CPython 3.13.0
Creating virtual environment at: .venv
  × Failed to build `fastly-compute @ file:///path/to/fastly/compute-sdk-python`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `maturin.build_editable` failed (exit status: 1)

      [stdout]
      Running `maturin pep517 build-wheel -i path/to/.cache/uv/builds-v0/.tmp4tcIjx/bin/python --compatibility off --editable`

      [stderr]
      📦 Including license file `LICENSE`
      🍹 Building a mixed python/rust project
      🐍 Found CPython 3.13 at path/to/.cache/uv/builds-v0/.tmp4tcIjx/bin/python
      🔗 Found pyo3 bindings
         Compiling pyo3-build-config v0.27.2
         Compiling componentize-py v0.22.1 (https://github.com/bytecodealliance/componentize-py#81d582a2)
         Compiling fastly-compute-py v0.1.0 (/path/to/fastly/compute-sdk-python/crates/fastly-compute-py)
      error: failed to run custom build command for `componentize-py v0.22.1 (https://github.com/bytecodealliance/componentize-py#81d582a2)`

      Caused by:
        process didn't exit successfully: `/path/to/fastly/compute-sdk-python/target/release/build/componentize-py-7de865321a4ffe80/build-script-build`
      (exit status: 101)
        --- stdout
        cargo:rerun-if-changed=build.rs
        cargo:rerun-if-changed=pyo3-config.txt

        --- stderr
        error: toolchain 'nightly-aarch64-apple-darwin' is not installed
        help: run `rustup toolchain install nightly-aarch64-apple-darwin` to install it

        thread 'main' (11943543) panicked at path/to/.cargo/git/checkouts/componentize-py-9eb37bc759a5523e/81d582a/build.rs:526:5:
        assertion failed: status.success()
        note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
      warning: build failed, waiting for other jobs to finish...
      error: failed to run custom build command for `fastly-compute-py v0.1.0 (/path/to/fastly/compute-sdk-python/crates/fastly-compute-py)`

      Caused by:
        process didn't exit successfully: `/path/to/fastly/compute-sdk-python/target/release/build/fastly-compute-py-443e8748e21e7628/build-script-build`
      (exit status: 1)
        --- stdout
        cargo:rerun-if-changed=../../wit
        cargo:rerun-if-changed=../../crates/wasiless
        cargo:rerun-if-changed=../../wrap_app_in_wasiless.wac
        cargo:rerun-if-changed=../../Cargo.lock

        --- stderr
        Error: Failed to run wasm-tools

        Caused by:
            No such file or directory (os error 2)
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status: 101": `env -u CARGO
      CARGO_ENCODED_RUSTFLAGS="-C\u{1f}link-arg=-undefined\u{1f}-C\u{1f}link-arg=dynamic_lookup" PYO3_BUILD_EXTENSION_MODULE="1"
      PYO3_ENVIRONMENT_SIGNATURE="cpython-3.13-64bit" PYO3_PYTHON="path/to/.cache/uv/builds-v0/.tmp4tcIjx/bin/python"
      PYTHON_SYS_EXECUTABLE="path/to/.cache/uv/builds-v0/.tmp4tcIjx/bin/python" "cargo" "rustc" "--profile" "release" "--message-format"
      "json-render-diagnostics" "--manifest-path" "/path/to/fastly/compute-sdk-python/crates/fastly-compute-py/Cargo.toml" "--lib" "--crate-type"
      "cdylib" "--" "-C" "link-args=-Wl,-install_name,@rpath/fastly_compute._fastly_compute_py.cpython-313-darwin.so"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'path/to/.cache/uv/builds-v0/.tmp4tcIjx/bin/python', '--compatibility', 'off', '--editable']
      returned non-zero exit status 1

      hint: This usually indicates a problem with the package or the build environment.
  help: `fastly-compute` was included because `bottle-app-example` (v0.1.0) depends on `fastly-compute`
make: *** [build/bottle-app.composed.wasm] Error 1

Activity

  1. case-fastly commented on May 14, 2026

    @case-fastly

    It sounds like this is what's needed:

    rustup install 1.92.0
    rustup toolchain install nightly --component rust-src
    rustup target add wasm32-wasip1 --toolchain nightly
    
  2. erikrose commented on May 27, 2026

    @erikrose
    Member

    In #97, I clean up the readmes, making sure you hit the list of prereqs before getting to any make serve stuff. Hopefully that improves matters.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions