AmbiML / sparrow-manifest

Project Sparrow: Repo Materials
Apache License 2.0
16 stars 3 forks source link

run “m tools” to install rust toolchain failed, when prepare the compiler environment. #11

Open jeffliuyue opened 1 year ago

jeffliuyue commented 1 year ago

following the GettingStarted.md step by step. $ repo init -u https://github.com/AmbiML/sparrow-manifest -m sparrow-manifest.xml ... ... $ export PLATFORM=rpi3 $ source build/setup.sh ROOTDIR=/home/jeff/SEL4/sparrow/cantripOS OUT=/home/jeff/SEL4/sparrow/cantripOS/out PLATFORM=sparrow

Type 'm [target]' to build.

Targets available are:

Usage: hmm [-h] [-l]

To get more information on a target, use 'hmm [target]'

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! You have missing tools. Please run 'm prereqs' followed by 'm tools' to install them. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

/home/jeff/SEL4/sparrow/cantripOS/cache/toolchain is missing /home/jeff/SEL4/sparrow/cantripOS/cache/toolchain_iree_rv32imf is missing! $ m tools ... Failed to execute 'wget --progress=dot:giga -O /home/jeff/SEL4/sparrow/cantripOS/out/rust_toolchain_latest.tar.xz https://storage.googleapis.com/sparrow-public-artifacts/rust_toolchain_latest.tar.xz': exited with return code 8 .... and Access this url(https://storage.googleapis.com/sparrow-public-artifacts/rust_toolchain_latest.tar.xz) through a browser and find that this file does not exist, so I doubt the correctness of this url. in ./scripts/fetch-rust-toolchain.sh; PUBLIC_ARTIFACTS_URL="https://storage.googleapis.com/sparrow-public-artifacts"

jeffliuyue commented 1 year ago

I think this is indeed a issue, because I found that the DOWNLOAD_URL in the script is wrong, and it need to replace sparrow-public-artifacts with shoodan-public-artifacts, because https://storage.googleapis.com/sparrow-public-artifacts does not exist. only shoodan-public-artifacts exists in Google's cloud, I think the script needs to be updated.