Is cargo make failing to substitute ${BUILD_TARGET} or is it something else?

I'm following RusPiRo Tutorial Corner to try to do bare-metal stuff on a Pi 3.

When I run cargo make pi3 --profile a64 I get:

[cargo-make] INFO - cargo make 0.37.22
[cargo-make] INFO -
[cargo-make] INFO - Project: hello_led
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: pi3
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Execute Command: "cargo" "xbuild" "--target" "${BUILD_TARGET}" "--release" "--bin" "kernel" "--features" "ruspiro_pi3"
error: failed to run `rustc` to learn about target-specific information

Caused by:
  process didn't exit successfully: `C:\Users\simon\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\bin\rustc.exe - --crate-name ___ --print=file-names --target ${BUILD_TARGET} --crate-type bin --crate-type rlib --crate-type dylib --crate-type cdylib --crate-type staticlib --crate-type proc-macro --print=sysroot --print=split-debuginfo --print=crate-name --print=cfg` (exit code: 1)
  --- stderr
  error: Error loading target specification: Could not find specification for target "${BUILD_TARGET}". Run `rustc --print target-list` for a list of built-in targets

Error while executing command, exit code: 101

I don't know much about cargo make. Are these lines:

[cargo-make] INFO - Execute Command: "cargo" "xbuild" "--target" "${BUILD_TARGET}" "--release" "--bin" "kernel" "--features" "ruspiro_pi3"

and

error: Error loading target specification: Could not find specification for target "${BUILD_TARGET}". [...]

telling me that it couldn't substitute BUILD_TARGET or does it normally display like that?

I don't know that makefile but can you try

cargo make --profile a64 pi3

instead?

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.