Build fails on amd ryzen threadripper
Description
When compiling from source the build fails after when building drivers.
Environment info
Stock Fedora 30 installed today. followed manual build instructions in the readme
-
Operating system: Ubuntu 18.04
-
uname -a
:Linux Marvin 4.18.0-20-generic #21~18.04.1-Ubuntu SMP Wed May 8 08:43:37 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
-
rustc -V
:rustc 1.32.0
-
git rev-parse HEAD
:3e847cd43a9091b8e948a29ae9b863a61e1e86cd
Steps to reproduce
-
download source
-
bootstrap
-
rustup
-
cargo install xargo
-
git submodule
-
make all
Behavior
-
Expected behavior: Compilation succeeds
-
Actual behavior: compilation fails
Here's the error message when i try to compile redox with Ubuntu 18.04, on AMD RYZEN 1950x threadripper.
Any suggestions/clues as to what's causing the issue?
oracle@Marvin:~/Downloads/OSImages/redox/redox$ export RUST_BACKTRACE=1
oracle@Marvin:~/Downloads/OSImages/redox/redox$ make all
rm -f build/libkernel.a
rm -rf build/initfs
mkdir -p build/initfs
export PATH="/home/oracle/Downloads/OSImages/redox/redox/prefix/x86_64-unknown-redox/relibc-install/bin:$PATH" && \
cargo run --manifest-path installer/Cargo.toml -- --cookbook=cookbook -c initfs.toml build/initfs/
Finished dev [unoptimized + debuginfo] target(s) in 0.14s
Running `installer/target/debug/redox_installer --cookbook=cookbook -c initfs.toml build/initfs/`
Install Config {
general: GeneralConfig {
prompt: false,
},
packages: {
"drivers": PackageConfig {
version: None,
git: None,
path: None,
},
"init": PackageConfig {
version: None,
git: None,
path: None,
},
"redoxfs": PackageConfig {
version: None,
git: None,
path: None,
},
},
files: [
FileConfig {
path: "/etc/init.rc",
data: "export PATH /bin\nexport TMPDIR /tmp\nvesad T T G\nstdio display:1\nps2d us\npcid /etc/pcid/initfs.toml\nredoxfs --uuid $REDOXFS_UUID file\ncd file:\nexport PATH file:/bin\nrun.d /etc/init.d\n",
symlink: false,
directory: false,
mode: None,
uid: None,
gid: None,
},
],
users: {},
} to build/initfs/
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 libc v0.2.54 (https://gitlab.redox-os.org/redox-os/liblibc.git?branch=redox#e26b93f2)
Compiling core v0.0.0 (/home/oracle/Downloads/OSImages/redox/redox/rust/src/libcore)
Compiling unwind v0.0.0 (/home/oracle/Downloads/OSImages/redox/redox/rust/src/libunwind)
Compiling compiler_builtins v0.1.15
Compiling std v0.0.0 (/home/oracle/Downloads/OSImages/redox/redox/rust/src/libstd)
error: failed to run custom build command for `compiler_builtins v0.1.15`
process didn't exit successfully: `/tmp/xargo.JiKkDuRhTGBm/target/release/build/compiler_builtins-27084e789580f8a1/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=build.rs
cargo:compiler-rt=/home/oracle/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.15/compiler-rt
--- stderr
thread 'main' panicked at 'RUST_COMPILER_RT_ROOT is not set', /home/oracle/.cargo/registry/src/github.com-1ecc6299db9ec823/compiler_builtins-0.1.15/build.rs:420:21
stack backtrace:
0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace
1: std::sys_common::backtrace::print
2: std::panicking::default_hook::{{closure}}
3: std::panicking::default_hook
4: std::panicking::rust_panic_with_hook
5: std::panicking::begin_panic
6: build_script_build::c::compile
7: build_script_build::main
8: std::rt::lang_start::{{closure}}
9: std::panicking::try::do_call
10: __rust_maybe_catch_panic
11: std::rt::lang_start_internal
12: main
13: __libc_start_main
14: _start
warning: build failed, waiting for other jobs to finish...
error: build failed
error: `"cargo" "build" "--release" "--manifest-path" "/tmp/xargo.JiKkDuRhTGBm/Cargo.toml" "--target" "x86_64-unknown-redox" "-p" "std"` failed with exit code: Some(101)
stack backtrace:
0: error_chain::make_backtrace::he04abbb2470a8fa6 (0x556bf65cc307)
1: <error_chain::State as core::default::Default>::default::h1c211366ae551399 (0x556bf65cc395)
2: <std::process::Command as xargo::extensions::CommandExt>::run::h394390101558ba1e (0x556bf6596d1f)
3: xargo::sysroot::build::hea71205886db3679 (0x556bf658d3c2)
4: xargo::sysroot::update::h52be25bdfe70e3c5 (0x556bf658f2f4)
5: xargo::main::he8bb031e05c872c4 (0x556bf6580d09)
6: std::rt::lang_start::{{closure}}::he855e745e556a7da (0x556bf657d2c2)
7: std::panicking::try::do_call::hbfef2ca7875c6284 (0x556bf65f4c92)
8: __rust_maybe_catch_panic (0x556bf66037c9)
9: std::rt::lang_start_internal::h1046fd32b686a071 (0x556bf65e17ea)
10: main (0x556bf65817f4)
11: __libc_start_main (0x7fe799bd9b96)
12: _start (0x556bf6572dd9)
13: <unknown> (0x0)
./repo.sh failed.mk/initfs.mk:2: recipe for target 'build/initfs.tag' failed
make: *** [build/initfs.tag] Error 1