Skip to content

Instantly share code, notes, and snippets.

@ivanceras
Last active May 18, 2018 03:22
Show Gist options
  • Save ivanceras/612bb8cba3004eb98d86376d14c0062d to your computer and use it in GitHub Desktop.
Save ivanceras/612bb8cba3004eb98d86376d14c0062d to your computer and use it in GitHub Desktop.
Issue this command when your encounter error building redox

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

Add redox keyserver

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

Compile and run redox

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