Error while compiling on Ubuntu 18.04 and Pop!_Os
When building on an Ubuntu 18.04 and Pop!_Os 18.04 I get a SIGABRT: process abort signal
while compiling panic_abort
. (It is quite ironic)
Both happened on a fresh install on a virtual machine. I did update the operating system after installation and I did install build-essential and rust but nothing else. After this I followed the Getting Started guide.
Here is the last few lines of make all
.
repo - fetching drivers
cook - drivers fetch
Cloning into 'source'...
remote: Enumerating objects: 2069, done.
remote: Counting objects: 100% (2069/2069), done.
remote: Compressing objects: 100% (1195/1195), done.
remote: Total 2069 (delta 901), reused 1967 (delta 854)
Receiving objects: 100% (2069/2069), 552.00 KiB | 789.00 KiB/s, done.
Resolving deltas: 100% (901/901), done.
Already up to date.
repo - preparing drivers
cook - drivers prepare
repo - building drivers
cook - drivers build
Updating crates.io index
Updating git repository `https://gitlab.redox-os.org/redox-os/liblibc.git`
Compiling cc v1.0.37
Compiling core v0.0.0 (/home/aert/Documents/software/redox/rust/src/libcore)
Compiling libc v0.2.54 (https://gitlab.redox-os.org/redox-os/liblibc.git?branch=redox#e26b93f2)
Compiling unwind v0.0.0 (/home/aert/Documents/software/redox/rust/src/libunwind)
Compiling compiler_builtins v0.1.15
Compiling std v0.0.0 (/home/aert/Documents/software/redox/rust/src/libstd)
Compiling rustc-std-workspace-core v1.0.0 (/home/aert/Documents/software/redox/rust/src/tools/rustc-std-workspace-core)
Compiling alloc v0.0.0 (/home/aert/Documents/software/redox/rust/src/liballoc)
Compiling panic_abort v0.0.0 (/home/aert/Documents/software/redox/rust/src/libpanic_abort)
rustc: /mnt/build/redox/rust/src/llvm-project/llvm/include/llvm/Support/Casting.h:255: typename llvm::cast_retty<X, Y*>::ret_type llvm::cast(Y*) [with X = llvm::Function; Y = llvm::Value; typename llvm::cast_retty<X, Y*>::ret_type = llvm::Function*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
error: Could not compile `panic_abort`.
Caused by:
process didn't exit successfully: `rustc --edition=2018 --crate-name panic_abort /home/aert/Documents/software/redox/rust/src/libpanic_abort/lib.rs --color always --crate-type lib --emit=dep-info,metadata,link -C opt-level=3 -C metadata=6bed04f146c879b6 -C extra-filename=-6bed04f146c879b6 --out-dir /tmp/xargo.DG5zg18MVUsQ/target/x86_64-unknown-redox/release/deps --target x86_64-unknown-redox -C linker=x86_64-unknown-redox-gcc -L dependency=/tmp/xargo.DG5zg18MVUsQ/target/x86_64-unknown-redox/release/deps -L dependency=/tmp/xargo.DG5zg18MVUsQ/target/release/deps --extern compiler_builtins=/tmp/xargo.DG5zg18MVUsQ/target/x86_64-unknown-redox/release/deps/libcompiler_builtins-2e6e30a7ed891a3f.rlib --extern core=/tmp/xargo.DG5zg18MVUsQ/target/x86_64-unknown-redox/release/deps/libcore-e8871951dc179544.rlib --extern libc=/tmp/xargo.DG5zg18MVUsQ/target/x86_64-unknown-redox/release/deps/liblibc-bef514465428e65c.rlib -L /home/aert/Documents/software/redox/prefix/x86_64-unknown-redox/relibc-install/x86_64-unknown-redox/lib --sysroot /home/aert/Documents/software/redox/cookbook/xargo -Z force-unstable-if-unmarked -L native=/tmp/xargo.DG5zg18MVUsQ/target/x86_64-unknown-redox/release/build/compiler_builtins-8ce39310e6c94e40/out` (signal: 6, SIGABRT: process abort signal)
warning: build failed, waiting for other jobs to finish...
error: build failed
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.DG5zg18MVUsQ/Cargo.toml" "--target" "x86_64-unknown-redox" "-p" "std"` failed with exit code: Some(101)
note: run with `RUST_BACKTRACE=1` for a backtrace
./repo.sh failed.mk/initfs.mk:2: recipe for target 'build/initfs.tag' failed
make: *** [build/initfs.tag] Error 1