-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Description
Summary
warning: `base64` (lib) generated 8 warnings
Fresh minifier v0.3.6
Fresh rustdoc v0.0.0 (/buildstream-build/src/librustdoc)
Fresh rustdoc-tool v0.0.0 (/buildstream-build/src/tools/rustdoc)
Finished `release` profile [optimized] target(s) in 0.72s
Copy/Link "/buildstream-build/build/aarch64-unknown-linux-gnu/stage1-tools/aarch64-unknown-linux-gnu/release/rustdoc_tool_binary" to "/buildstream-build/build/aarch64-unknown-linux-gnu/stage1-tools-bin/rustdoc_tool_binary"
< ToolBuild { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu, tool: "rustdoc_tool_binary", path: "src/tools/rustdoc", mode: ToolRustc, source_type: InTree, extra_features: [], allow_features: "", cargo_args: [], artifact_kind: Binary }
c Sysroot { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, force_recompile: false }
Copy/Link "/buildstream-build/build/aarch64-unknown-linux-gnu/stage1-tools-bin/rustdoc_tool_binary" to "/buildstream-build/build/aarch64-unknown-linux-gnu/stage2/bin/rustdoc"
< Rustdoc { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false } }
Install "/buildstream-build/build/aarch64-unknown-linux-gnu/stage2/bin/rustdoc" to "/buildstream-build/build/tmp/tarball/rustc/aarch64-unknown-linux-gnu/image/bin/rustdoc"
Copy/Link "/buildstream-build/build/aarch64-unknown-linux-gnu/stage2/bin/rustdoc" to "/buildstream-build/build/tmp/tarball/rustc/aarch64-unknown-linux-gnu/image/bin/rustdoc"
c Assemble { target_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: false } }
c Rustc { target: aarch64-unknown-linux-gnu, build_compiler: Compiler { stage: 1, host: aarch64-unknown-linux-gnu, forced_compiler: true }, crates: [] }
c Sysroot { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, force_recompile: false }
Install "/buildstream-build/build/aarch64-unknown-linux-gnu/stage2/lib/librustc_driver-ef8dcb811aaf21d8.so" to "/buildstream-build/build/tmp/tarball/rustc/aarch64-unknown-linux-gnu/image/lib/librustc_driver-ef8dcb811aaf21d8.so"
Copy/Link "/buildstream-build/build/aarch64-unknown-linux-gnu/stage2/lib/librustc_driver-ef8dcb811aaf21d8.so" to "/buildstream-build/build/tmp/tarball/rustc/aarch64-unknown-linux-gnu/image/lib/librustc_driver-ef8dcb811aaf21d8.so"
c Libdir { compiler: Compiler { stage: 2, host: aarch64-unknown-linux-gnu, forced_compiler: false }, target: aarch64-unknown-linux-gnu }
Copy/Link "/buildstream-build/build/aarch64-unknown-linux-gnu/stage2/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-lld" to "/buildstream-build/build/tmp/tarball/rustc/aarch64-unknown-linux-gnu/image/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-lld"
thread 'main' panicked at src/bootstrap/src/lib.rs:1707:28:
src.symlink_metadata() failed with No such file or directory (os error 2) ("src = /buildstream-build/build/aarch64-unknown-linux-gnu/stage2/lib/rustlib/aarch64-unknown-linux-gnu/bin/rust-lld")
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Panic was initiated from src/bootstrap/src/lib.rs:1707:28
Traceback (most recent call last):
File "/buildstream-build/x.py", line 53, in <module>
bootstrap.main()
~~~~~~~~~~~~~~^^
File "/buildstream-build/src/bootstrap/bootstrap.py", line 1372, in main
bootstrap(args)
~~~~~~~~~^^^^^^
File "/buildstream-build/src/bootstrap/bootstrap.py", line 1347, in bootstrap
run(args, env=env, verbose=build.verbose, is_bootstrap=True)
~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/buildstream-build/src/bootstrap/bootstrap.py", line 236, in run
raise RuntimeError(err)
RuntimeError: failed to run: /buildstream-build/build/bootstrap/debug/bootstrap -j1 install
Command 'DESTDIR="/buildstream-install" python3 x.py -j1 install' failed with exitcode 1
Command used
See below
Expected behaviour
Builds
Actual behaviour
Does not build
Bootstrap configuration (bootstrap.toml)
configure-commands:
- |
cat <<EOF >config.toml
[llvm]
download-ci-llvm = false
link-shared = true
targets = "%{llvm-targets}"
# disable experimental targets, we certainly don't want them (only AVR at the moment)
experimental-targets = ""
[build]
build = "%{rust-target}"
host = ["%{rust-target}"]
target = ["%{rust-target}"]
cargo = "/usr/bin/cargo"
rustc = "/usr/bin/rustc"
docs = %{build-docs}
submodules = false
python = "/usr/bin/python3"
locked-deps = true
vendor = true
verbose = 2
extended = true
tools = ["cargo", "rustdoc", "rustfmt", "analysis"]
[install]
prefix = "%{prefix}"
sysconfdir = "%{sysconfdir}"
bindir = "%{bindir}"
libdir = "%{indep-libdir}"
datadir = "%{datadir}"
mandir = "%{mandir}"
docdir = "%{datadir}/doc/rust"
[rust]
optimize = true
channel = "stable"
debuginfo-level-std = %{debuginfo-level-std}
backtrace = true
rpath = false
lto = "off"
use-lld = true
default-linker = "/usr/bin/gcc"
[target.%{rust-target}]
cc = "/usr/bin/%{host-triplet}-gcc"
cxx = "/usr/bin/%{host-triplet}-g++"
linker = "/usr/bin/%{host-triplet}-gcc"
ar = "/usr/bin/%{host-triplet}-gcc-ar"
llvm-config = "/usr/bin/llvm-config"
EOF
build-commands:
- |
python3 x.py build -j${MAXJOBS}
install-commands:
- |
DESTDIR="%{install-root}" python3 x.py -j1 install
Operating system
Freedesktop SDK
HEAD
N/A
Additional context
N/A
Build log is 45 MB cannot be attached.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)