1.95.0: Unable to build with vendored soures: cannot update the lock file --frozen was passed to prevent this
Open
Nobody has claimed this yet.
C-bug
S-needs-repro
T-bootstrap
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Summary
Trying to build Rust 1.95.0 using Rust 1.94.1, using vendored sources, fails due to:
+ python ./x.py dist
Building bootstrap
Finished `dev` profile [unoptimized] target(s) in 0.43s
fatal: not a git repository (or any of the parent directories): .git
WARNING: The `change-id` is missing in the `bootstrap.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 = 148671` or `change-id = "ignore"` at the top of `bootstrap.toml`
Building stage1 compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu)
error: cannot update the lock file /build/rustc-1.95.0-src/Cargo.lock because --frozen was passed to prevent this
help: to generate the lock file without accessing the network, remove the --frozen flag and use --offline instead.
Build completed unsuccessfully in 0:00:01
Command used
ARGS=()
if [[ -n "$FROM" ]]; then
ARGS+=(--local-rust-root="/install/$FROM")
export PATH="/install/$FROM/bin:$PATH"
fi
./configure --enable-local-rust --prefix=/install/$TO --enable-vendor --disable-compiler-docs --disable-docs --disable-dist-src --release-channel=stable "${ARGS[@]}"
cat << EOF > .cargo/config.toml
[source.crates-io]
replace-with = "vendored-sources"
[source."git+https://github.com/rust-lang/team"]
git = "https://github.com/rust-lang/team"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF
python ./x.py dist
Expected behaviour
This works with versions prior to 1.95.0, but stopped worked with this release.
Actual behaviour
See error above.
Bootstrap configuration (bootstrap.toml)
# Use different pre-set defaults than the global defaults.
#
# See `src/bootstrap/defaults` for more information.
# Note that this has no default value (x.py uses the defaults in `bootstrap.example.toml`).
profile = 'dist'
[llvm]
[gcc]
[build]
# Instead of downloading the src/stage0 version of Cargo specified, use
# this Cargo binary instead to build all Rust code
# If you set this, you likely want to set `rustc` as well.
cargo = '/install/1.94.1/bin/cargo'
# Instead of downloading the src/stage0 version of the compiler
# specified, use this rustc binary instead as the stage0 snapshot compiler.
# If you set this, you likely want to set `cargo` as well.
rustc = '/install/1.94.1/bin/rustc'
# Whether to build documentation by default. If false, rustdoc and
# friends will still be compiled but they will not be used to generate any
# documentation.
#
# You can still build documentation when this is disabled by explicitly passing paths,
# e.g. `x doc library`.
docs = false
# Indicate whether to build compiler documentation by default.
# You can still build documentation when this is disabled by explicitly passing a path: `x doc compiler`.
compiler-docs = false
# Indicate whether the vendored sources are used for Rust dependencies or not.
#
# Vendoring requires additional setup. We recommend using the pre-generated source tarballs if you
# want to use vendoring. See https://forge.rust-lang.org/infra/other-installation-methods.html#source-code.
vendor = true
# Arguments passed to the `./configure` script, used during distcheck. You
# probably won't fill this in but rather it's filled in by the `./configure`
# script. Useful for debugging.
configure-args = ['--enable-local-rust', '--prefix=/install/1.95.0', '--enable-vendor', '--disable-compiler-docs', '--disable-docs', '--disable-dist-src', '--release-channel=stable', '--local-rust-root=/install/1.94.1']
[install]
# Where to install the generated toolchain. Must be an absolute path.
prefix = '/install/1.95.0'
[rust]
# The "channel" for the Rust build to produce. The stable/beta channels only
# allow using stable features, whereas the nightly and dev channels allow using
# nightly features.
#
# You can set the channel to "auto-detect" to load the channel name from `src/ci/channel`.
#
# If using tarball sources, default value is "auto-detect", otherwise, it's "dev".
channel = 'stable'
# Whether to create a source tarball by default when running `x dist`.
#
# You can still build a source tarball when this is disabled by explicitly passing `x dist rustc-src`.
dist-src = false
[dist]
[target.x86_64-unknown-linux-gnu]
Operating system
RHEL 9, registry.access.redhat.com/ubi9/ubi:latest
HEAD
This is using the tarball. Not git.
Additional context
Build Log
[1/2] STEP 1/15: FROM registry.access.redhat.com/ubi9/ubi:latest AS builder
[1/2] STEP 2/15: RUN dnf install --setop install_weak_deps=false --nodocs -y git python gcc g++ cmake rust cargo ninja-build openssl-devel xz
--> Using cache 4fc2e7f4f2b9004f3961cee455113a68b2870cbffe08a7faae69119920165f2f
--> 4fc2e7f4f2b9
[1/2] STEP 3/15: RUN mkdir /build
--> Using cache 16d5d040dde98ad9b978e299167b09eaf860373d4f0edd74a7847997ec75e8f5
--> 16d5d040dde9
[1/2] STEP 4/15: RUN mkdir /install
--> Using cache ed9be0e929cdb1da96e52cb4a96c5758a3efdaf6cd405ceb32da593f94b7e306
--> ed9be0e929cd
[1/2] STEP 5/15: RUN mkdir /licenses
--> Using cache 087369e99a79ffc2df5ca51a42d87ad3c657f9acd92a5e9165938a10e9175ce7
--> 087369e99a79
[1/2] STEP 6/15: COPY build.sh /build/
--> Using cache 3522f43727b653cd199216254eb46fa1f2eb2f80ab9f93aa00a4d000ed0425a8
--> 3522f43727b6
[1/2] STEP 7/15: WORKDIR /build
--> Using cache 758af8937e75dbece4714827fd0047a4564ca5536ba0a5d73b9875ba7cd8e061
--> 758af8937e75
[1/2] STEP 8/15: RUN ./build.sh 1.89.0
--> Using cache bd7cc64009161a59ce47960e5b6c5b01072bb7205d88fafd470e756015657ea1
--> bd7cc6400916
[1/2] STEP 9/15: RUN ./build.sh 1.89.0 1.90.0
--> Using cache 167853aa4b5466431af54fed6cfb5325f96272d622f57e1a79d310e0882ec669
--> 167853aa4b54
[1/2] STEP 10/15: RUN ./build.sh 1.90.0 1.91.0
--> Using cache 87ceff9376beca1708fde62d98aefd1fb74bb3475c481ec874a2214e61c0207f
--> 87ceff9376be
[1/2] STEP 11/15: RUN ./build.sh 1.91.0 1.92.0
--> Using cache bc1c98697e64f0967d864afd50c2492893b692adfbdccf63f5a5d4fb9ecea18f
--> bc1c98697e64
[1/2] STEP 12/15: RUN ./build.sh 1.92.0 1.93.1
--> Using cache ab2d301ab01be251e908824f82a47f1a02364b62e26276aab9c39c128066ce48
--> ab2d301ab01b
[1/2] STEP 13/15: RUN ./build.sh 1.93.1 1.94.1
--> Using cache 4466902cf2873ebbbc7b7c8d5e8c7bd7ab853cecd17dd06719fa078bb9442693
--> 4466902cf287
[1/2] STEP 14/15: COPY build2.sh /build/
--> Using cache 3f4af5d302bb57e2fd2858973b6799074528960fd3f1035e486bb7c35c33f6c8
--> 3f4af5d302bb
[1/2] STEP 15/15: RUN ./build2.sh 1.94.1 1.95.0
+ [[ 2 -eq 1 ]]
+ [[ 2 -eq 2 ]]
+ FROM=1.94.1
+ TO=1.95.0
+ tar xaf /cachi2/output/deps/generic/rustc-1.95.0-src.tar.xz
+ find . -type f '(' -iname license -o -iname 'license.*' -o -iname copying -o -iname 'copying.*' ')' -exec cp --parents '{}' /licenses/ ';'
+ pushd rustc-1.95.0-src
+ ARGS=()
/build/rustc-1.95.0-src /build
+ [[ -n 1.94.1 ]]
+ ARGS+=(--local-rust-root="/install/$FROM")
+ export PATH=/install/1.94.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ PATH=/install/1.94.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
+ ./configure --enable-local-rust --prefix=/install/1.95.0 --enable-vendor --disable-compiler-docs --disable-docs --disable-dist-src --release-channel=stable --local-rust-root=/install/1.94.1
configure: processing command line
configure:
configure: build.configure-args := ['--enable-local-rust', '--prefix=/install/1.9 ...
configure: build.rustc := /install/1.94.1/bin/rustc
configure: build.cargo := /install/1.94.1/bin/cargo
configure: install.prefix := /install/1.95.0
configure: build.vendor := True
configure: build.compiler-docs := False
configure: build.docs := False
configure: rust.dist-src := False
configure: rust.channel := stable
configure: build.rustc := /install/1.94.1/bin/rustc
configure: build.cargo := /install/1.94.1/bin/cargo
configure: profile := dist
configure:
configure: writing `bootstrap.toml` in current directory
configure:
configure: run `python3 /build/rustc-1.95.0-src/x.py --help`
+ cat
+ export RUST_BACKTRACE=1
+ RUST_BACKTRACE=1
+ python ./x.py dist
Building bootstrap
Compiling memchr v2.7.6
Compiling proc-macro2 v1.0.89
Compiling version_check v0.9.5
Compiling typenum v1.17.0
Compiling unicode-ident v1.0.13
Compiling shlex v1.3.0
Compiling libc v0.2.174
Compiling crossbeam-utils v0.8.20
Compiling regex-syntax v0.8.5
Compiling serde v1.0.215
Compiling pkg-config v0.3.31
Compiling cfg-if v1.0.0
Compiling heck v0.5.0
Compiling anstyle v1.0.10
Compiling clap_lex v0.7.2
Compiling same-file v1.0.6
Compiling object v0.37.3
Compiling serde_json v1.0.132
Compiling log v0.4.22
Compiling semver v1.0.23
Compiling itoa v1.0.11
Compiling bootstrap v0.0.0 (/build/rustc-1.95.0-src/src/bootstrap)
Compiling ryu v1.0.18
Compiling cpufeatures v0.2.15
Compiling build_helper v0.1.0 (/build/rustc-1.95.0-src/src/build_helper)
Compiling home v0.5.11
Compiling cc v1.2.28
Compiling walkdir v2.5.0
Compiling termcolor v1.4.1
Compiling clap_builder v4.5.20
Compiling generic-array v0.14.7
Compiling aho-corasick v1.1.3
Compiling crossbeam-epoch v0.9.18
Compiling cmake v0.1.54
Compiling crossbeam-deque v0.8.5
Compiling quote v1.0.37
Compiling lzma-sys v0.1.20
Compiling filetime v0.2.26
Compiling tar v0.4.44
Compiling syn v2.0.87
Compiling regex-automata v0.4.9
Compiling crypto-common v0.1.6
Compiling block-buffer v0.10.4
Compiling digest v0.10.7
Compiling sha2 v0.10.8
Compiling toml v0.5.11
Compiling bstr v1.10.0
Compiling clap_derive v4.5.18
Compiling serde_derive v1.0.215
Compiling globset v0.4.15
Compiling opener v0.8.2
Compiling ignore v0.4.23
Compiling xz2 v0.1.7
Compiling clap v4.5.20
Compiling clap_complete v4.5.37
Finished `dev` profile [unoptimized] target(s) in 20.27s
fatal: not a git repository (or any of the parent directories): .git
WARNING: The `change-id` is missing in the `bootstrap.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 = 148671` or `change-id = "ignore"` at the top of `bootstrap.toml`
Building LLVM for x86_64-unknown-linux-gnu
CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-unknown-linux-gnu = None
CMAKE_x86_64_unknown_linux_gnu = None
HOST_CMAKE = None
CMAKE = None
running: cd "/build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" "cmake" "/build/rustc-1.95.0-src/src/llvm-project/llvm" "-G" "Ninja" "-DLLVM_ENABLE_ASSERTIONS=OFF" "-DLLVM_UNREACHABLE_OPTIMIZE=OFF" "-DLLVM_ENABLE_PLUGINS=OFF" "-DLLVM_TARGETS_TO_BUILD=AArch64;AMDGPU;ARM;BPF;Hexagon;LoongArch;MSP430;Mips;NVPTX;PowerPC;RISCV;Sparc;SystemZ;WebAssembly;X86" "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=AVR;M68k;CSKY;Xtensa" "-DLLVM_INCLUDE_EXAMPLES=OFF" "-DLLVM_INCLUDE_DOCS=OFF" "-DLLVM_INCLUDE_BENCHMARKS=OFF" "-DLLVM_INCLUDE_TESTS=OFF" "-DLLVM_ENABLE_LIBEDIT=OFF" "-DLLVM_ENABLE_BINDINGS=OFF" "-DLLVM_ENABLE_Z3_SOLVER=OFF" "-DLLVM_PARALLEL_COMPILE_JOBS=24" "-DLLVM_TARGET_ARCH=x86_64" "-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-unknown-linux-gnu" "-DLLVM_ENABLE_WARNINGS=OFF" "-DLLVM_INSTALL_UTILS=ON" "-DLLVM_ENABLE_ZLIB=ON" "-DLLVM_ENABLE_LIBXML2=OFF" "-DLLVM_VERSION_SUFFIX=-rust-1.95.0-stable" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=cc" "-DCMAKE_CXX_COMPILER=c++" "-DCMAKE_ASM_COMPILER=cc" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_SHARED_LINKER_FLAGS=" "-DCMAKE_MODULE_LINKER_FLAGS=" "-DCMAKE_EXE_LINKER_FLAGS=" "-DLLVM_ENABLE_ZSTD=OFF" "-DCMAKE_INSTALL_PREFIX=/build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_BUILD_TYPE=Release"
-- The C compiler identification is GNU 11.5.0
-- The CXX compiler identification is GNU 11.5.0
-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Python3: /usr/bin/python3.9 (found suitable version "3.9.25", minimum required is "3.0") found components: Interpreter
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Looking for valgrind/valgrind.h
-- Looking for valgrind/valgrind.h - not found
-- Looking for FE_ALL_EXCEPT
-- Looking for FE_ALL_EXCEPT - found
-- Looking for FE_INEXACT
-- Looking for FE_INEXACT - found
-- Performing Test HAVE_BUILTIN_THREAD_POINTER
-- Performing Test HAVE_BUILTIN_THREAD_POINTER - Success
-- Looking for CrashReporterClient.h
-- Looking for CrashReporterClient.h - not found
-- Looking for linux/magic.h
-- Looking for linux/magic.h - found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Looking for pthread_rwlock_init in pthread
-- Looking for pthread_rwlock_init in pthread - found
-- Looking for pthread_mutex_lock in pthread
-- Looking for pthread_mutex_lock in pthread - found
-- Looking for dlopen in dl
-- Looking for dlopen in dl - found
-- Looking for shm_open in rt
-- Looking for shm_open in rt - found
-- Looking for pfm_initialize in pfm
-- Looking for pfm_initialize in pfm - not found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Looking for arc4random
-- Looking for arc4random - not found
-- Looking for backtrace
-- Looking for backtrace - found
-- backtrace facility detected in default set of libraries
-- Found Backtrace: /usr/include
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW
-- Performing Test C_SUPPORTS_WERROR_UNGUARDED_AVAILABILITY_NEW - Failed
-- Looking for __register_frame
-- Looking for __register_frame - found
-- Looking for __deregister_frame
-- Looking for __deregister_frame - found
-- Looking for __unw_add_dynamic_fde
-- Looking for __unw_add_dynamic_fde - not found
-- Looking for _Unwind_Backtrace
-- Looking for _Unwind_Backtrace - found
-- Looking for getpagesize
-- Looking for getpagesize - found
-- Looking for sysconf
-- Looking for sysconf - found
-- Looking for getrusage
-- Looking for getrusage - found
-- Looking for isatty
-- Looking for isatty - found
-- Looking for futimens
-- Looking for futimens - found
-- Looking for futimes
-- Looking for futimes - found
-- Looking for getauxval
-- Looking for getauxval - found
-- Looking for sigaltstack
-- Looking for sigaltstack - found
-- Looking for mallctl
-- Looking for mallctl - not found
-- Looking for mallinfo
-- Looking for mallinfo - found
-- Looking for mallinfo2
-- Looking for mallinfo2 - found
-- Looking for malloc_zone_statistics
-- Looking for malloc_zone_statistics - not found
-- Looking for posix_spawn
-- Looking for posix_spawn - found
-- Looking for pread
-- Looking for pread - found
-- Looking for sbrk
-- Looking for sbrk - found
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Looking for strerror_s
-- Looking for strerror_s - not found
-- Looking for setenv
-- Looking for setenv - found
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC - Failed
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC
-- Performing Test HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC - Success
-- Looking for pthread_getname_np
-- Looking for pthread_getname_np - found
-- Looking for pthread_setname_np
-- Looking for pthread_setname_np - found
-- Looking for pthread_get_name_np
-- Looking for pthread_get_name_np - not found
-- Looking for pthread_set_name_np
-- Looking for pthread_set_name_np - not found
-- Looking for dlopen
-- Looking for dlopen - found
-- Looking for proc_pid_rusage
-- Looking for proc_pid_rusage - not found
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Performing Test LLVM_HAS_ATOMICS
-- Performing Test LLVM_HAS_ATOMICS - Success
-- LLVM host triple: x86_64-unknown-linux-gnu
-- Native target architecture is X86
-- Threads enabled.
-- Doxygen disabled.
-- Ninja version: 1.10.2
-- Could NOT find OCaml (missing: OCAMLFIND OCAML_VERSION OCAML_STDLIB_PATH)
-- OCaml bindings disabled.
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- LLVM default target triple: x86_64-unknown-linux-gnu
-- Performing Test LLVM_USES_LIBSTDCXX
-- Performing Test LLVM_USES_LIBSTDCXX - Success
-- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI
-- Performing Test LLVM_DEFAULT_TO_GLIBCXX_USE_CXX11_ABI - Success
-- Performing Test C_SUPPORTS_FPIC
-- Performing Test C_SUPPORTS_FPIC - Success
-- Performing Test CXX_SUPPORTS_FPIC
-- Performing Test CXX_SUPPORTS_FPIC - Success
-- Building with -fPIC
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test C_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION
-- Performing Test CXX_SUPPORTS_FNO_SEMANTIC_INTERPOSITION - Success
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG
-- Performing Test SUPPORTS_FVISIBILITY_INLINES_HIDDEN_FLAG - Success
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS
-- Performing Test LINKER_SUPPORTS_COLOR_DIAGNOSTICS - Failed
-- Looking for os_signpost_interval_begin
-- Looking for os_signpost_interval_begin - not found
-- Looking for flock
-- Looking for flock - found
-- Linker detection: GNU ld
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS
-- Performing Test LLVM_LINKER_SUPPORTS_B_SYMBOLIC_FUNCTIONS - Success
-- Performing Test HAS_WERROR_GLOBAL_CTORS
-- Performing Test HAS_WERROR_GLOBAL_CTORS - Failed
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Found Git: /usr/bin/git (found version "2.47.3")
-- Looking for logf128
-- Looking for logf128 - found
-- Targeting AArch64
-- Targeting AMDGPU
-- Targeting ARM
-- Targeting BPF
-- Targeting Hexagon
-- Targeting LoongArch
-- Targeting MSP430
-- Targeting Mips
-- Targeting NVPTX
-- Targeting PowerPC
-- Targeting RISCV
-- Targeting Sparc
-- Targeting SystemZ
-- Targeting WebAssembly
-- Targeting X86
-- Targeting AVR
-- Targeting M68k
-- Targeting CSKY
-- Targeting Xtensa
-- BugpointPasses ignored -- Loadable modules not supported on this platform.
-- Not building llvm-mt because libxml2 is not available
-- Configuring done (5.7s)
-- Generating done (0.8s)
-- Build files have been written to: /build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/build
running: cd "/build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/build" && DESTDIR="" LC_ALL="C" "cmake" "--build" "/build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/build" "--target" "install" "--config" "Release" "--" "-j" "24"
[1/3898] Building CXX object lib/Support/CMakeFiles/LLVMSupport.dir/ABIBreak.cpp.o
[2/3898] Building ASM object lib/Support/BLAKE3/CMakeFiles/LLVMSupportBlake3.dir/blake3_sse2_x86-64_unix.S.o
[…]
-- Installing: /build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/include/llvm/TargetParser/RISCVTargetParserDef.inc
-- Installing: /build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/include/llvm/TargetParser/ARMTargetParserDef.inc
-- Installing: /build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/include/llvm/TargetParser/PPCGenTargetFeatures.inc
-- Installing: /build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm/lib/cmake/llvm/LLVMConfigExtensions.cmake
cargo:root=/build/rustc-1.95.0-src/build/x86_64-unknown-linux-gnu/llvm
finished in 789.824 seconds
Building stage1 compiler artifacts (stage0 -> stage1, x86_64-unknown-linux-gnu)
error: cannot update the lock file /build/rustc-1.95.0-src/Cargo.lock because --frozen was passed to prevent this
help: to generate the lock file without accessing the network, remove the --frozen flag and use --offline instead.
Build completed unsuccessfully in 0:13:35
Error: building at STEP "RUN ./build2.sh 1.94.1 1.95.0": while running runtime: exit status 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with python ./x.py dist using the vendored sources and the shown configure options. Start by inspecting x.py, bootstrap.toml, .cargo/config.toml, and the handling of Cargo.lock; done means the Rust 1.95.0 tarball builds successfully with --enable-vendor without trying to update the lock file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100