Skip to content

Instantly share code, notes, and snippets.

@InfRandomness
Last active June 22, 2021 13:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save InfRandomness/24642f40374f271e5407f81e28f9cad9 to your computer and use it in GitHub Desktop.
Save InfRandomness/24642f40374f271e5407f81e28f9cad9 to your computer and use it in GitHub Desktop.
rm -rf "prefix/x86_64-unknown-redox/relibc-install.partial" "prefix/x86_64-unknown-redox/relibc-install"
cp -r "prefix/x86_64-unknown-redox/rust-install" "prefix/x86_64-unknown-redox/relibc-install.partial"
rm -rf "prefix/x86_64-unknown-redox/relibc-install.partial/x86_64-unknown-redox/include/"*
cp -r "prefix/x86_64-unknown-redox/rust-install/x86_64-unknown-redox/include/c++" "prefix/x86_64-unknown-redox/relibc-install.partial/x86_64-unknown-redox/include/c++"
cp -r "prefix/x86_64-unknown-redox/rust-install/lib/rustlib/x86_64-unknown-linux-gnu/lib/" "prefix/x86_64-unknown-redox/relibc-install.partial/lib/rustlib/x86_64-unknown-linux-gnu/"
rm -rf prefix/x86_64-unknown-redox/relibc-install.partial/lib/rustlib/src
mkdir prefix/x86_64-unknown-redox/relibc-install.partial/lib/rustlib/src
ln -s /root/redox/rust prefix/x86_64-unknown-redox/relibc-install.partial/lib/rustlib/src
cd "/root/redox/relibc" && \
export PATH="/root/redox/prefix/x86_64-unknown-redox/relibc-install.partial/bin:$PATH" && \
export RUSTUP_TOOLCHAIN="/root/redox/prefix/x86_64-unknown-redox/relibc-install.partial" && \
export CARGO="env -u CARGO cargo" && \
make -j `nproc` all && \
make -j `nproc` install DESTDIR="/root/redox/prefix/x86_64-unknown-redox/relibc-install.partial/x86_64-unknown-redox"
make[1]: Entering directory '/root/redox/relibc'
CARGO_INCREMENTAL=0 env -u CARGO cargo rustc --release -Z build-std=core,alloc,compiler_builtins "--target=x86_64-unknown-redox" -- --emit link="target/x86_64-unknown-redox"/release/librelibc.a
rm -rf "target/x86_64-unknown-redox"/pthreads-emb "target/x86_64-unknown-redox"/pthreads-emb.partial
rm -rf "target/x86_64-unknown-redox"/openlibm "target/x86_64-unknown-redox"/openlibm.partial
CARGO_INCREMENTAL=0 env -u CARGO cargo rustc --release --manifest-path src/crt0/Cargo.toml -Z build-std=core,alloc,compiler_builtins "--target=x86_64-unknown-redox" -- --emit obj="target/x86_64-unknown-redox"/release/crt0.o -C panic=abort
CARGO_INCREMENTAL=0 env -u CARGO cargo rustc --release --manifest-path src/crti/Cargo.toml -Z build-std=core,alloc,compiler_builtins "--target=x86_64-unknown-redox" -- --emit obj="target/x86_64-unknown-redox"/release/crti.o -C panic=abort
error: command failed: 'cargo': No such file or directory (os error 2)
make[1]: *** [Makefile:173: "target/x86_64-unknown-redox"/release/librelibc.a] Error 1
make[1]: *** Waiting for unfinished jobs....
error: command failed: 'cargo': No such file or directory (os error 2)
make[1]: *** [Makefile:178: "target/x86_64-unknown-redox"/release/crt0.o] Error 1
error: command failed: 'cargo': No such file or directory (os error 2)
make[1]: *** [Makefile:182: "target/x86_64-unknown-redox"/release/crti.o] Error 1
mkdir -p "target/x86_64-unknown-redox"
cp -r pthreads-emb "target/x86_64-unknown-redox"/pthreads-emb.partial
mkdir -p "target/x86_64-unknown-redox"
cp -r openlibm "target/x86_64-unknown-redox"/openlibm.partial
mv "target/x86_64-unknown-redox"/pthreads-emb.partial "target/x86_64-unknown-redox"/pthreads-emb
touch "target/x86_64-unknown-redox"/pthreads-emb
mv "target/x86_64-unknown-redox"/openlibm.partial "target/x86_64-unknown-redox"/openlibm
touch "target/x86_64-unknown-redox"/openlibm
make[1]: Leaving directory '/root/redox/relibc'
make: *** [mk/prefix.mk:27: prefix/x86_64-unknown-redox/relibc-install] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment