Open
Description
Summary
I was building rustc to work on batching which is based on autodiff, and followed the process mentioned here: https://rustc-dev-guide.rust-lang.org/autodiff/installation.html. However, the build ended up failing.
Command used
./x.py build --stage 1 library
Expected behaviour
rustc to build
Actual behaviour
The build failed when attempting to install gas
Bootstrap configuration (bootstrap.toml)
Operating system
macOS 14.5
HEAD
Additional context
This is from the enzyme fork of the rust compiler (https://github.com/EnzymeAD/rust), as when I clone the normal rust repository it says that I do not have certain submodules to build the library.
Build Log
FAILED: BCLoad/gsl64/src/gsl64-stamp/gsl64-build /Users/saidivvela/rust/build/aarch64-apple-darwin/enzyme/build/BCLoad/gsl64/src/gsl64-stamp/gsl64-build
cd /Users/saidivvela/rust/build/aarch64-apple-darwin/enzyme/build/BCLoad/gsl64/src/gsl64 && sh -c "rm cblas/xerbla.c && /Users/saidivvela/rust/build/aarch64-apple-darwin/llvm/bin/clang-19 cblas/*.c --sysroot= -I . -I .. -S -emit-llvm -O1" && /opt/homebrew/bin/cmake -E touch /Users/saidivvela/rust/build/aarch64-apple-darwin/enzyme/build/BCLoad/gsl64/src/gsl64-stamp/gsl64-build
rm: cblas/xerbla.c: No such file or directory
[16/116] Building CXX object Enzyme/CM...es/LLVMEnzyme-19.dir/EnzymeLogic.cpp.o
ninja: build stopped: subcommand failed.
thread 'main' panicked at /Users/saidivvela/.cargo/registry/src/index.crates.io-6f17d22bba15001f/cmake-0.1.48/src/lib.rs:975:5:
command did not execute successfully, got: exit status: 1
build script failed, must exit now
stack backtrace:
0: rust_begin_unwind
at /rustc/0125edf41b8ce32db5c2cce0c83e32ad2e4dde17/library/std/src/panicking.rs:665:5
1: core::panicking::panic_fmt
at /rustc/0125edf41b8ce32db5c2cce0c83e32ad2e4dde17/library/core/src/panicking.rs:74:14
2: cmake::fail
3: cmake::run
4: cmake::Config::build
5: <bootstrap::core::build_steps::llvm::Enzyme as bootstrap::core::builder::Step>::run
at ./src/bootstrap/src/core/build_steps/llvm.rs:955:9
6: bootstrap::core::builder::Builder::ensure
at ./src/bootstrap/src/core/builder/mod.rs:1443:23
7: <bootstrap::core::build_steps::compile::Assemble as bootstrap::core::builder::Step>::run
at ./src/bootstrap/src/core/build_steps/compile.rs:1857:18
8: bootstrap::core::builder::Builder::ensure
at ./src/bootstrap/src/core/builder/mod.rs:1443:23
9: bootstrap::core::builder::Builder::compiler
at ./src/bootstrap/src/core/builder/mod.rs:1131:9
10: <bootstrap::core::build_steps::compile::Std as bootstrap::core::builder::Step>::make_run
at ./src/bootstrap/src/core/build_steps/compile.rs:147:23
11: bootstrap::core::builder::StepDescription::maybe_run
at ./src/bootstrap/src/core/builder/mod.rs:388:13
12: bootstrap::core::builder::StepDescription::run
at ./src/bootstrap/src/core/builder/mod.rs:517:17
13: bootstrap::core::builder::Builder::run_step_descriptions
at ./src/bootstrap/src/core/builder/mod.rs:1117:9
14: bootstrap::core::builder::Builder::execute_cli
at ./src/bootstrap/src/core/builder/mod.rs:1097:9
15: bootstrap::Build::build
at ./src/bootstrap/src/lib.rs:611:13
16: bootstrap::main
at ./src/bootstrap/src/bin/main.rs:82:5
17: core::ops::function::FnOnce::call_once
at /rustc/0125edf41b8ce32db5c2cce0c83e32ad2e4dde17/library/core/src/ops/function.rs:250:5