Skip to content

Instantly share code, notes, and snippets.

@artemist
Created June 3, 2024 22:45
Show Gist options
  • Save artemist/55b4acb21b529dabc56347decc1e8685 to your computer and use it in GitHub Desktop.
Save artemist/55b4acb21b529dabc56347decc1e8685 to your computer and use it in GitHub Desktop.
Rust cross build
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/0q5b8pmfjybwn6ws18agqhgjyqpjg6vz-rustc-1.78.0-src.tar.gz
source root is rustc-1.78.0-src
setting SOURCE_DATE_EPOCH to timestamp 1714405523 of file rustc-1.78.0-src/vendor/zip/tests/zip_crypto.rs
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
patching script interpreter paths in src/etc
src/etc/installer/pkg/postinstall: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
src/etc/test-float-parse/runtests.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python3"
src/etc/rust-gdb: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
src/etc/rust-lldb: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
src/etc/pre-push.sh: interpreter directive changed from "#!/usr/bin/env bash" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/bash"
src/etc/cat-and-grep.sh: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
src/etc/cpu-usage-over-time-plot.sh: interpreter directive changed from "#!/bin/bash" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/bash"
src/etc/rust-gdbgui: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
src/etc/indenter: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python"
src/etc/dec2flt_table.py: interpreter directive changed from "#!/usr/bin/env python3" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python3"
src/etc/htmldocck.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python"
src/etc/generate-keyword-tests.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python"
src/etc/generate-deriving-span-tests.py: interpreter directive changed from "#!/usr/bin/env python" to "/nix/store/h0acdwisihd9kg7adymqmyrnbwb8bmyj-python3-3.11.9/bin/python"
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
patching script interpreter paths in ./configure
./configure: interpreter directive changed from "#!/bin/sh" to "/nix/store/f9ql5mvb7bzwkk8lfnw9wn80a09scif7-bash-5.2p26/bin/sh"
configure flags: --prefix=/nix/store/gnl00r5g752fs9nxmh4i028mlygi9fqa-aarch64-unknown-linux-gnu-rustc-1.78.0 --sysconfdir=/nix/store/gnl00r5g752fs9nxmh4i028mlygi9fqa-aarch64-unknown-linux-gnu-rustc-1.78.0/etc --release-channel=stable --set=build.rustc=/nix/store/fd46ypp4p6fyqkw215c0dy4d214hmx5y-rustc-wrapper-1.78.0/bin/rustc --set=build.cargo=/nix/store/4gk2r0gyhghhsxgd3z0ah691ndb4zc4w-cargo-1.78.0/bin/cargo --tools=rustc\,rustdoc\,rust-analyzer-proc-macro-srv --enable-rpath --enable-vendor --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=aarch64-unknown-linux-gnu --set=target.x86_64-unknown-linux-gnu.cc=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc --set=target.x86_64-unknown-linux-gnu.cc=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc --set=target.aarch64-unknown-linux-gnu.cc=/nix/store/hhzyddx20vkj1g1xa3wsar3jbjh54x84-aarch64-unknown-linux-gnu-gcc-wrapper-13.3.0/bin/aarch64-unknown-linux-gnu-cc --set=target.x86_64-unknown-linux-gnu.linker=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc --set=target.x86_64-unknown-linux-gnu.linker=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc --set=target.aarch64-unknown-linux-gnu.linker=/nix/store/hhzyddx20vkj1g1xa3wsar3jbjh54x84-aarch64-unknown-linux-gnu-gcc-wrapper-13.3.0/bin/aarch64-unknown-linux-gnu-cc --set=target.x86_64-unknown-linux-gnu.cxx=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/c++ --set=target.x86_64-unknown-linux-gnu.cxx=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/c++ --set=target.aarch64-unknown-linux-gnu.cxx=/nix/store/hhzyddx20vkj1g1xa3wsar3jbjh54x84-aarch64-unknown-linux-gnu-gcc-wrapper-13.3.0/bin/aarch64-unknown-linux-gnu-c++ --set=target.x86_64-unknown-linux-gnu.crt-static=false --set=target.x86_64-unknown-linux-gnu.crt-static=false --set=target.aarch64-unknown-linux-gnu.crt-static=false --enable-llvm-link-shared --set=target.x86_64-unknown-linux-gnu.llvm-config=/nix/store/zkjbkzqdnx0h5jrbz00q8b94xb7rzg2n-llvm-18.1.6-dev/bin/llvm-config --set=target.x86_64-unknown-linux-gnu.llvm-config=/nix/store/zkjbkzqdnx0h5jrbz00q8b94xb7rzg2n-llvm-18.1.6-dev/bin/llvm-config --set=target.aarch64-unknown-linux-gnu.llvm-config=/nix/store/5yvdhhabiqz2l1viqpnzca67hxlcilps-llvm-18.1.6-dev/bin/llvm-config --enable-profiler
configure: processing command line
configure:
configure: build.configure-args := ['--prefix=/nix/store/gnl00r5g752fs9nxmh4i028m ...
configure: install.prefix := /nix/store/gnl00r5g752fs9nxmh4i028mlygi9fqa-aa ...
configure: install.sysconfdir := /nix/store/gnl00r5g752fs9nxmh4i028mlygi9fqa-aa ...
configure: rust.channel := stable
configure: build.rustc := /nix/store/fd46ypp4p6fyqkw215c0dy4d214hmx5y-ru ...
configure: build.cargo := /nix/store/4gk2r0gyhghhsxgd3z0ah691ndb4zc4w-ca ...
configure: target.x86_64-unknown-linux-gnu.cc := /nix/store/v1zzmiim680wky6r82q5x ...
configure: target.x86_64-unknown-linux-gnu.cc := /nix/store/v1zzmiim680wky6r82q5x ...
configure: target.aarch64-unknown-linux-gnu.cc := /nix/store/hhzyddx20vkj1g1xa3ws ...
configure: target.x86_64-unknown-linux-gnu.linker := /nix/store/v1zzmiim680wky6r8 ...
configure: target.x86_64-unknown-linux-gnu.linker := /nix/store/v1zzmiim680wky6r8 ...
configure: target.aarch64-unknown-linux-gnu.linker := /nix/store/hhzyddx20vkj1g1x ...
configure: target.x86_64-unknown-linux-gnu.cxx := /nix/store/v1zzmiim680wky6r82q5 ...
configure: target.x86_64-unknown-linux-gnu.cxx := /nix/store/v1zzmiim680wky6r82q5 ...
configure: target.aarch64-unknown-linux-gnu.cxx := /nix/store/hhzyddx20vkj1g1xa3w ...
configure: target.x86_64-unknown-linux-gnu.crt-static := False
configure: target.x86_64-unknown-linux-gnu.crt-static := False
configure: target.aarch64-unknown-linux-gnu.crt-static := False
configure: target.x86_64-unknown-linux-gnu.llvm-config := /nix/store/zkjbkzqdnx0h ...
configure: target.x86_64-unknown-linux-gnu.llvm-config := /nix/store/zkjbkzqdnx0h ...
configure: target.aarch64-unknown-linux-gnu.llvm-config := /nix/store/5yvdhhabiqz ...
configure: build.tools := ['rustc', 'rustdoc', 'rust-analyzer-proc-macro ...
configure: rust.rpath := True
configure: build.vendor := True
configure: build.build := x86_64-unknown-linux-gnu
configure: build.host := ['x86_64-unknown-linux-gnu']
configure: build.target := ['aarch64-unknown-linux-gnu']
configure: llvm.link-shared := True
configure: build.profiler := True
configure: profile := dist
configure:
configure: writing `config.toml` in current directory
configure:
configure: run `python /build/rustc-1.78.0-src/x.py --help`
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
Building bootstrap
 Compiling proc-macro2 v1.0.76
 Compiling cfg-if v1.0.0
 Compiling unicode-ident v1.0.12
 Compiling typenum v1.17.0
 Compiling memchr v2.7.1
 Compiling version_check v0.9.4
 Compiling libc v0.2.151
 Compiling crossbeam-utils v0.8.18
 Compiling rustix v0.38.28
 Compiling regex-syntax v0.8.2
 Compiling serde v1.0.195
 Compiling cc v1.0.73
 Compiling linux-raw-sys v0.4.12
 Compiling bitflags v2.4.1
 Compiling pkg-config v0.3.28
 Compiling heck v0.4.1
 Compiling clap_lex v0.6.0
 Compiling anstyle v1.0.4
 Compiling semver v1.0.21
 Compiling serde_json v1.0.111
 Compiling same-file v1.0.6
 Compiling log v0.4.20
 Compiling ryu v1.0.16
 Compiling itoa v1.0.10
 Compiling bootstrap v0.0.0 (/build/rustc-1.78.0-src/src/bootstrap)
 Compiling cpufeatures v0.2.12
 Compiling termcolor v1.4.0
 Compiling home v0.5.9
 Compiling once_cell v1.19.0
 Compiling walkdir v2.4.0
 Compiling clap_builder v4.4.12
 Compiling generic-array v0.14.7
 Compiling cmake v0.1.48
 Compiling aho-corasick v1.1.2
 Compiling object v0.32.2
 Compiling lzma-sys v0.1.20
 Compiling crossbeam-epoch v0.9.17
 Compiling quote v1.0.35
 Compiling crossbeam-deque v0.8.4
 Compiling syn v2.0.48
 Compiling filetime v0.2.23
 Compiling xz2 v0.1.7
 Compiling regex-automata v0.4.3
 Compiling block-buffer v0.10.4
 Compiling crypto-common v0.1.6
 Compiling digest v0.10.7
 Compiling sha2 v0.10.8
 Compiling xattr v1.2.0
 Compiling fd-lock v4.0.2
 Compiling tar v0.4.40
 Compiling toml v0.5.11
 Compiling clap_derive v4.4.7
 Compiling serde_derive v1.0.195
 Compiling bstr v1.9.0
 Compiling globset v0.4.14
 Compiling opener v0.5.2
 Compiling ignore v0.4.21
 Compiling clap v4.4.13
 Compiling clap_complete v4.4.6
 Compiling build_helper v0.1.0 (/build/rustc-1.78.0-src/src/tools/build_helper)
 Finished `dev` profile [unoptimized] target(s) in 15.74s
WARNING: The `change-id` is missing in the `config.toml`. This means that you will not be able to track the major changes made to the bootstrap configurations.
NOTE: to silence this warning, add `change-id = 121754` at the top of `config.toml`
WARNING: Using a potentially old libstd. This may not behave well.
WARNING: Using a potentially old librustc. This may not behave well.
WARNING: Use `--keep-stage-std` if you want to rebuild the compiler when it changes
Creating a sysroot for stage1 compiler (use `rustup toolchain link 'name' build/host/stage1`)
Building tool llvm-bitcode-linker (stage0 -> stage1, x86_64-unknown-linux-gnu)
 Compiling proc-macro2 v1.0.78
 Compiling unicode-ident v1.0.12
 Compiling once_cell v1.19.0
 Compiling utf8parse v0.2.1
 Compiling colorchoice v1.0.0
 Compiling anstyle-query v1.0.2
 Compiling anstyle v1.0.6
 Compiling cfg-if v1.0.0
 Compiling anyhow v1.0.80
 Compiling thiserror v1.0.57
 Compiling clap_lex v0.7.0
 Compiling lazy_static v1.4.0
 Compiling heck v0.4.1
 Compiling log v0.4.21
 Compiling overload v0.1.1
 Compiling strsim v0.11.0
 Compiling pin-project-lite v0.2.13
 Compiling smallvec v1.13.1
error[E0463]: can't find crate for `core`
For more information about this error, try `rustc --explain E0463`.
error[E0463]: can't find crate for `std`
error: could not compile `utf8parse` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
error: could not compile `colorchoice` (lib) due to 1 previous error
error: could not compile `once_cell` (lib) due to 1 previous error
error: could not compile `anstyle-query` (lib) due to 1 previous error
error: could not compile `anstyle` (lib) due to 1 previous error
error: could not compile `cfg-if` (lib) due to 1 previous error
error: could not compile `clap_lex` (lib) due to 1 previous error
error: could not compile `lazy_static` (lib) due to 1 previous error
error: could not compile `overload` (lib) due to 1 previous error
error: could not compile `strsim` (lib) due to 1 previous error
error: could not compile `pin-project-lite` (lib) due to 1 previous error
error: could not compile `log` (lib) due to 1 previous error
error: could not compile `smallvec` (lib) due to 1 previous error
command did not execute successfully: cd "/build/rustc-1.78.0-src" && env -u MAKEFLAGS -u MFLAGS AR_x86_64_unknown_linux_gnu="ar" CARGO_INCREMENTAL="0" CARGO_PROFILE_RELEASE_DEBUG="0" CARGO_PROFILE_RELEASE_DEBUG_ASSERTIONS="false" CARGO_PROFILE_RELEASE_OVERFLOW_CHECKS="false" CARGO_PROFILE_RELEASE_STRIP="false" CARGO_TARGET_DIR="/build/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-tools" CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER="/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc" CC_x86_64_unknown_linux_gnu="/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc" CFG_COMPILER_BUILD_TRIPLE="x86_64-unknown-linux-gnu" CFG_COMPILER_HOST_TRIPLE="x86_64-unknown-linux-gnu" CFG_RELEASE="1.78.0" CFG_RELEASE_CHANNEL="stable" CFG_RELEASE_NUM="1.78.0" CFG_VERSION="1.78.0 (9b00956e5 2024-04-29) (built from a source tarball)" CFG_VER_DATE="2024-04-29" CFG_VER_HASH="9b00956e56009bab2aa15d7bff10916599e3d6d6" CFLAGS_x86_64_unknown_linux_gnu="-ffunction-sections -fdata-sections -fPIC -m64" CXXFLAGS_x86_64_unknown_linux_gnu="-ffunction-sections -fdata-sections -fPIC -m64" CXX_x86_64_unknown_linux_gnu="/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/c++" DOC_RUST_LANG_ORG_CHANNEL="https://doc.rust-lang.org/1.78.0" LIBC_CHECK_CFG="1" LIBRARY_PATH="/nix/store/qppzhniwdkn02bg89b8xgd6r69f6yznf-llvm-18.1.6-lib/lib" LZMA_API_STATIC="1" RANLIB_x86_64_unknown_linux_gnu="ar s" REAL_LIBRARY_PATH_VAR="LD_LIBRARY_PATH" RUSTBUILD_NATIVE_DIR="/build/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/native" RUSTC="/build/rustc-1.78.0-src/build/bootstrap/debug/rustc" RUSTC_BOOTSTRAP="1" RUSTC_BREAK_ON_ICE="1" RUSTC_ERROR_METADATA_DST="/build/rustc-1.78.0-src/build/tmp/extended-error-metadata" RUSTC_HOST_FLAGS="-Zunstable-options --check-cfg=cfg(bootstrap) -Ctarget-feature=-crt-static -Clinker=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc" RUSTC_INSTALL_BINDIR="bin" RUSTC_LIBDIR="/nix/store/m07a586xqsbnh1c3z1lydrvndswhryc0-rustc-1.78.0/lib" RUSTC_LINT_FLAGS="-Wrust_2018_idioms -Wunused_lifetimes -Dwarnings" RUSTC_REAL="/nix/store/fd46ypp4p6fyqkw215c0dy4d214hmx5y-rustc-wrapper-1.78.0/bin/rustc" RUSTC_SNAPSHOT="/nix/store/fd46ypp4p6fyqkw215c0dy4d214hmx5y-rustc-wrapper-1.78.0/bin/rustc" RUSTC_SNAPSHOT_LIBDIR="/nix/store/m07a586xqsbnh1c3z1lydrvndswhryc0-rustc-1.78.0/lib" RUSTC_STAGE="1" RUSTC_SYSROOT="/build/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-sysroot" RUSTC_TLS_MODEL_INITIAL_EXEC="1" RUSTC_VERBOSE="0" RUSTC_WRAPPER="/build/rustc-1.78.0-src/build/bootstrap/debug/rustc" RUSTDOC="/build/rustc-1.78.0-src/build/bootstrap/debug/rustdoc" RUSTDOCFLAGS="-Ccodegen-units=10 --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=cfg(bootstrap) --check-cfg=cfg(parallel_compiler) --check-cfg=cfg(rust_analyzer) --check-cfg=cfg(no_btreemap_remove_entry) --check-cfg=cfg(crossbeam_loom) --check-cfg=cfg(span_locations) --check-cfg=cfg(rustix_use_libc) --check-cfg=cfg(emulate_second_only_system) --check-cfg=cfg(windows_raw_dylib) -A rustdoc::broken-intra-doc-links -Dwarnings -Wrustdoc::invalid_codeblock_attributes --crate-version 1.78.0\t(9b00956e5\t2024-04-29)\t(built\tfrom\ta\tsource\ttarball) -Clinker=/nix/store/v1zzmiim680wky6r82q5x20pai85l5hz-gcc-wrapper-13.3.0/bin/cc" RUSTDOC_REAL="/path/to/nowhere/rustdoc/not/required" RUSTFLAGS="-Ccodegen-units=10 --cfg=windows_raw_dylib -Csymbol-mangling-version=v0 -Zunstable-options --check-cfg=cfg(bootstrap) --check-cfg=cfg(parallel_compiler) --check-cfg=cfg(rust_analyzer) --check-cfg=cfg(no_btreemap_remove_entry) --check-cfg=cfg(crossbeam_loom) --check-cfg=cfg(span_locations) --check-cfg=cfg(rustix_use_libc) --check-cfg=cfg(emulate_second_only_system) --check-cfg=cfg(windows_raw_dylib) -Zmacro-backtrace -Csplit-debuginfo=off -Ctarget-feature=-crt-static -Clink-args=-Wl,-z,origin -Clink-args=-Wl,-rpath,$ORIGIN/../lib -Zunstable-options" RUST_TEST_THREADS="32" SYSROOT="/build/rustc-1.78.0-src/build/x86_64-unknown-linux-gnu/stage0-sysroot" __CARGO_DEFAULT_LIB_METADATA="bootstraptool-rustc" "/nix/store/4gk2r0gyhghhsxgd3z0ah691ndb4zc4w-cargo-1.78.0/bin/cargo" "build" "--target" "x86_64-unknown-linux-gnu" "--release" "-Zcheck-cfg" "-Zbinary-dep-depinfo" "-j" "32" "--frozen" "--manifest-path" "/build/rustc-1.78.0-src/src/tools/llvm-bitcode-linker/Cargo.toml"
expected success, got: exit status: 101
stdout ----
stderr ----
Build completed unsuccessfully in 0:00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment