It seems redox has not updated their build instructions causing your build an error
Make sure your files is the same with the repo, not newly created files
git clean -f -d
If it looks like the Makefile is changed, restore the copy
git checkout Makefile
Always sync and up to date and their submodules
git pull --rebase --recurse-submodules && git submodule sync && git submodule update --recursive --init
Install these needed packages
sudo apt install build-essential cmake make nasm qemu pkg-config libfuse-dev apt-transport-https bison flex fuse gosu qemu-utils sudo texinfo autopoint git automake autoconf gperf
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys AA12E97F0881517F;
sudo echo "deb https://static.redox-os.org/toolchain/apt/ /" >> /etc/apt/sources.list.d/redox.list
Make sure redox is included in the list
sudo cat /etc/apt/sources.list.d/redox.list
deb https://static.redox-os.org/toolchain/apt/ /
Install compiler support for redox
sudo apt update
sudo apt install x86-64-unknown-redox-newlib x86-64-unknown-redox-binutils x86-64-unknown-redox-gcc
sudo apt autoremove -q -y
sudo apt clean -q -y
Install this needed rust cli
cargo install -f cargo-config
cargo install -f xargo
make all