Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Bump bootstrap cc to 1.2.14 and cmake to 0.1.54 #137022

Closed
wants to merge 1 commit into from

Conversation

jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Feb 14, 2025

Summary

Bump bootstrap's cc and cmake deps:

  1. To make it easier to add new/unofficial targets. In particular, cc v1.2.4+ allows using env vars to pass target parameters to the cc crate. This was previously attempted in Repoint cc dep in bootstrap to its latest version. #134344 but ran into macos-cross-to-iOS problems with cmake (and also [EXPERIMENTAL] bootstrap: bump cc to 1.2.11 and cmake to 0.1.53 #136440, [EXPERIMENTAL] Bump cc (1.2.12) and cmake (0.1.53) for bootstrap #136720). See also discussions in Discussion: Reconsider target parsing cc-rs#1317.
  2. Fix some flag inheritance warnings. Fixes warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC #136338.

cc changelogs between 1.2.0 and 1.2.14

1.2.14 - 2025-02-14

Other

  • Regenerate target info (#1398)
  • Add support for setting -gdwarf-{version} based on RUSTFLAGS (#1395)
  • Add support for alternative network stack io-sock on QNX 7.1 aarch64 and x86_64 (#1312)

1.2.13 - 2025-02-08

Other

  • Fix cross-compiling for Apple platforms (#1389)

1.2.12 - 2025-02-04

Other

  • Split impl Build (#1382)
  • Don't specify both -target and -mtargetos= on Apple targets (#1384)

1.2.11 - 2025-01-31

Other

  • Fix more flag inheritance (#1380)
  • Include wrapper args. in stdout family heuristics to restore classifying clang --driver-mode=cl as Msvc { clang_cl: true } (#1378)
  • Constrain -Clto and -Cembed-bitcode flag inheritance to be clang-only (#1379)
  • Pass deployment target with -m*-version-min= (#1339)
  • Regenerate target info (#1376)

1.2.10 - 2025-01-17

Other

  • Fix CC_FORCE_DISABLE=0 evaluating to true (#1371)
  • Regenerate target info (#1369)
  • Make hidden lifetimes explicit. (#1366)

1.2.9 - 2025-01-12

Other

1.2.8 - 2025-01-11

Other

1.2.7 - 2025-01-03

Other

  • Regenerate target info (#1342)
  • Document new supported architecture names in windows::find
  • Make is_flag_supported_inner take an &Tool (#1337)
  • Fix is_flag_supported on msvc (#1336)
  • Allow using Visual Studio target names in find_tool (#1335)

1.2.6 - 2024-12-27

Other

  • Don't inherit the /Oy flag for 64-bit targets (#1330)

1.2.5 - 2024-12-19

Other

  • Check linking when testing if compiler flags are supported (#1322)

1.2.4 - 2024-12-13

Other

  • Add support for C/C++ compiler for Neutrino QNX: qcc (#1319)
  • use -maix64 instead of -m64 (#1307)

1.2.3 - 2024-12-06

Other

  • Improve detection of environment when compiling from msbuild or msvc (#1310)
  • Better error message when failing on unknown targets (#1313)
  • Optimize RustcCodegenFlags (#1305)

1.2.2 - 2024-11-29

Other

  • Inherit flags from rustc (#1279)
  • Add support for using sccache wrapper with cuda/nvcc (#1304)
  • Fix msvc stdout not shown on error (#1303)
  • Regenerate target info (#1301)
  • Fix compilation of C++ code for armv7-unknown-linux-gnueabihf (#1298)
  • Fetch target info from Cargo even if Build::target is manually set (#1299)
  • Fix two files with different extensions having the same object name (#1295)
  • Allow disabling cc's ability to compile via env var CC_FORCE_DISABLE (#1292)
  • Regenerate target info (#1293)

1.2.1 - 2024-11-14

Other

  • When invoking cl -?, set stdin to null (#1288)

cmake changelogs 0.1.51 to 0.1.54

0.1.54 - 2025-02-10

Other

  • Remove workaround for broken cc-rs versions (#235)
  • Be more precise in the description of register_dep (#238)

0.1.53 - 2025-01-27

Other

  • Disable broken Make jobserver support on OSX to fix parallel builds (#229)

0.1.52 - 2024-11-25

Other

  • Expose cc-rs no_default_flags for hassle-free cross-compilation (#225)
  • Add a success job to CI
  • Change --build to use an absolute path
  • Merge pull request #195 from meowtec/feat/improve-fail-hint
  • Improve hint for cmake not installed in Linux (code 127)

0.1.51 - 2024-08-15

Added

  • Add JOM generator support (#183)
  • Improve visionOS support (#209)
  • Use Generic for bare-metal systems (#187)

Fixed

  • Fix cross compilation on android armv7 and x86 (#186)

try-job: dist-apple-various

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Feb 14, 2025
@jieyouxu
Copy link
Member Author

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 14, 2025
…<try>

Bump bootstrap cc to 1.2.14 and cmake to 0.1.54

r? `@ghost`

try-job: aarch64-gnu
try-job: x86_64-msvc-1
try-job: i686-msvc-1
try-jbo: x86_64-mingw-1
try-job: i686-mingw
try-job: aarch64-apple
try-job: x86_64-apple-1
try-job: test-various
try-job: armhf-gnu
@bors
Copy link
Contributor

bors commented Feb 14, 2025

⌛ Trying commit 4a52ba1 with merge a0dcaa8...

@bors
Copy link
Contributor

bors commented Feb 14, 2025

☀️ Try build successful - checks-actions
Build commit: a0dcaa8 (a0dcaa83f56e6de2bf9b3f3e740c1b7196dba31c)

@jieyouxu jieyouxu marked this pull request as ready for review February 14, 2025 16:25
@jieyouxu
Copy link
Member Author

r? bootstrap

@jieyouxu
Copy link
Member Author

@bors try

@jieyouxu jieyouxu added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 15, 2025
@bors
Copy link
Contributor

bors commented Feb 15, 2025

⌛ Trying commit 4a52ba1 with merge b4d46e1...

bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 15, 2025
…<try>

Bump bootstrap cc to 1.2.14 and cmake to 0.1.54

## Summary

Bump bootstrap's `cc` and `cmake` deps:

1. To make it easier to add new/unofficial targets. In particular, `cc` v1.2.4+ allows using env vars to pass target parameters to the `cc` crate. This was previously attempted in rust-lang#134344 but ran into macos-cross-to-iOS problems with `cmake` (and also rust-lang#136440, rust-lang#136720). See also discussions in rust-lang/cc-rs#1317.
2. Fix some flag inheritance warnings. Fixes rust-lang#136338.

## `cc` changelogs between `1.2.0` and `1.2.14`

> ## [1.2.14](rust-lang/cc-rs@cc-v1.2.13...cc-v1.2.14) - 2025-02-14
>
> ### Other
>
> - Regenerate target info ([rust-lang#1398](rust-lang/cc-rs#1398))
> - Add support for setting `-gdwarf-{version}` based on RUSTFLAGS ([rust-lang#1395](rust-lang/cc-rs#1395))
> - Add support for alternative network stack io-sock on QNX 7.1 aarch64 and x86_64 ([rust-lang#1312](rust-lang/cc-rs#1312))
>
> ## [1.2.13](rust-lang/cc-rs@cc-v1.2.12...cc-v1.2.13) - 2025-02-08
>
> ### Other
>
> - Fix cross-compiling for Apple platforms ([rust-lang#1389](rust-lang/cc-rs#1389))
>
> ## [1.2.12](rust-lang/cc-rs@cc-v1.2.11...cc-v1.2.12) - 2025-02-04
>
> ### Other
>
> - Split impl Build ([rust-lang#1382](rust-lang/cc-rs#1382))
> - Don't specify both `-target` and `-mtargetos=` on Apple targets ([rust-lang#1384](rust-lang/cc-rs#1384))
>
> ## [1.2.11](rust-lang/cc-rs@cc-v1.2.10...cc-v1.2.11) - 2025-01-31
>
> ### Other
>
> - Fix more flag inheritance ([rust-lang#1380](rust-lang/cc-rs#1380))
> - Include wrapper args. in `stdout` family heuristics to restore classifying `clang --driver-mode=cl` as `Msvc { clang_cl: true }` ([rust-lang#1378](rust-lang/cc-rs#1378))
> - Constrain `-Clto` and `-Cembed-bitcode` flag inheritance to be `clang`-only ([rust-lang#1379](rust-lang/cc-rs#1379))
> - Pass deployment target with `-m*-version-min=` ([rust-lang#1339](rust-lang/cc-rs#1339))
> - Regenerate target info ([rust-lang#1376](rust-lang/cc-rs#1376))
>
> ## [1.2.10](rust-lang/cc-rs@cc-v1.2.9...cc-v1.2.10) - 2025-01-17
>
> ### Other
>
> - Fix CC_FORCE_DISABLE=0 evaluating to true ([rust-lang#1371](rust-lang/cc-rs#1371))
> - Regenerate target info ([rust-lang#1369](rust-lang/cc-rs#1369))
> - Make hidden lifetimes explicit. ([rust-lang#1366](rust-lang/cc-rs#1366))
>
> ## [1.2.9](rust-lang/cc-rs@cc-v1.2.8...cc-v1.2.9) - 2025-01-12
>
> ### Other
>
> - Don't pass inherited PGO flags to GNU compilers (rust-lang#1363)
> - Adjusted zig cc judgment and avoided zigbuild errors([rust-lang#1360](rust-lang/cc-rs#1360)) ([rust-lang#1361](rust-lang/cc-rs#1361))
> - Fix compilation on macOS using clang and fix compilation using zig-cc ([rust-lang#1364](rust-lang/cc-rs#1364))
>
> ## [1.2.8](rust-lang/cc-rs@cc-v1.2.7...cc-v1.2.8) - 2025-01-11
>
> ### Other
>
> - Add `is_like_clang_cl()` getter (rust-lang#1357)
> - Fix clippy error in lib.rs ([rust-lang#1356](rust-lang/cc-rs#1356))
> - Regenerate target info ([rust-lang#1352](rust-lang/cc-rs#1352))
> - Fix compiler family detection issue with clang-cl on macOS ([rust-lang#1328](rust-lang/cc-rs#1328))
> - Update `windows-bindgen` dependency ([rust-lang#1347](rust-lang/cc-rs#1347))
> - Fix clippy warnings ([rust-lang#1346](rust-lang/cc-rs#1346))
>
> ## [1.2.7](rust-lang/cc-rs@cc-v1.2.6...cc-v1.2.7) - 2025-01-03
>
> ### Other
>
> - Regenerate target info ([rust-lang#1342](rust-lang/cc-rs#1342))
> - Document new supported architecture names in windows::find
> - Make is_flag_supported_inner take an &Tool ([rust-lang#1337](rust-lang/cc-rs#1337))
> - Fix is_flag_supported on msvc ([rust-lang#1336](rust-lang/cc-rs#1336))
> - Allow using Visual Studio target names in `find_tool` ([rust-lang#1335](rust-lang/cc-rs#1335))
>
> ## [1.2.6](rust-lang/cc-rs@cc-v1.2.5...cc-v1.2.6) - 2024-12-27
>
> ### Other
>
> - Don't inherit the `/Oy` flag for 64-bit targets ([rust-lang#1330](rust-lang/cc-rs#1330))
>
> ## [1.2.5](rust-lang/cc-rs@cc-v1.2.4...cc-v1.2.5) - 2024-12-19
>
> ### Other
>
> - Check linking when testing if compiler flags are supported ([rust-lang#1322](rust-lang/cc-rs#1322))
>
> ## [1.2.4](rust-lang/cc-rs@cc-v1.2.3...cc-v1.2.4) - 2024-12-13
>
> ### Other
>
> - Add support for C/C++ compiler for Neutrino QNX: `qcc` ([rust-lang#1319](rust-lang/cc-rs#1319))
> - use -maix64 instead of -m64 ([rust-lang#1307](rust-lang/cc-rs#1307))
>
> ## [1.2.3](rust-lang/cc-rs@cc-v1.2.2...cc-v1.2.3) - 2024-12-06
>
> ### Other
>
> - Improve detection of environment when compiling from msbuild or msvc ([rust-lang#1310](rust-lang/cc-rs#1310))
> - Better error message when failing on unknown targets ([rust-lang#1313](rust-lang/cc-rs#1313))
> - Optimize RustcCodegenFlags ([rust-lang#1305](rust-lang/cc-rs#1305))
>
> ## [1.2.2](rust-lang/cc-rs@cc-v1.2.1...cc-v1.2.2) - 2024-11-29
>
> ### Other
>
> - Inherit flags from rustc ([rust-lang#1279](rust-lang/cc-rs#1279))
> - Add support for using sccache wrapper with cuda/nvcc ([rust-lang#1304](rust-lang/cc-rs#1304))
> - Fix msvc stdout not shown on error ([rust-lang#1303](rust-lang/cc-rs#1303))
> - Regenerate target info ([rust-lang#1301](rust-lang/cc-rs#1301))
> - Fix compilation of C++ code for armv7-unknown-linux-gnueabihf ([rust-lang#1298](rust-lang/cc-rs#1298))
> - Fetch target info from Cargo even if `Build::target` is manually set ([rust-lang#1299](rust-lang/cc-rs#1299))
> - Fix two files with different extensions having the same object name ([rust-lang#1295](rust-lang/cc-rs#1295))
> - Allow disabling cc's ability to compile via env var CC_FORCE_DISABLE ([rust-lang#1292](rust-lang/cc-rs#1292))
> - Regenerate target info ([rust-lang#1293](rust-lang/cc-rs#1293))
>
> ## [1.2.1](rust-lang/cc-rs@cc-v1.2.0...cc-v1.2.1) - 2024-11-14
>
> ### Other
>
> - When invoking `cl -?`, set stdin to null ([rust-lang#1288](rust-lang/cc-rs#1288))

## `cmake` changelogs `0.1.51` to `0.1.54`

> ## [0.1.54](rust-lang/cmake-rs@v0.1.53...v0.1.54) - 2025-02-10
>
> ### Other
>
> - Remove workaround for broken `cc-rs` versions ([rust-lang#235](rust-lang/cmake-rs#235))
> - Be more precise in the description of `register_dep` ([rust-lang#238](rust-lang/cmake-rs#238))
>
> ## [0.1.53](rust-lang/cmake-rs@v0.1.52...v0.1.53) - 2025-01-27
>
> ### Other
>
> - Disable broken Make jobserver support on OSX to fix parallel builds ([rust-lang#229](rust-lang/cmake-rs#229))
>
> ## [0.1.52](rust-lang/cmake-rs@v0.1.51...v0.1.52) - 2024-11-25
>
> ### Other
>
> - Expose cc-rs no_default_flags for hassle-free cross-compilation ([rust-lang#225](rust-lang/cmake-rs#225))
> - Add a `success` job to CI
> - Change `--build` to use an absolute path
> - Merge pull request [rust-lang#195](rust-lang/cmake-rs#195) from meowtec/feat/improve-fail-hint
> - Improve hint for cmake not installed in Linux (code 127)
>
> ## [0.1.51](rust-lang/cmake-rs@v0.1.50...v0.1.51) - 2024-08-15
>
> ### Added
>
> - Add JOM generator support ([rust-lang#183](rust-lang/cmake-rs#183))
> - Improve visionOS support ([rust-lang#209](rust-lang/cmake-rs#209))
> - Use `Generic` for bare-metal systems ([rust-lang#187](rust-lang/cmake-rs#187))
>
> ### Fixed
>
> - Fix cross compilation on android armv7 and x86 ([rust-lang#186](rust-lang/cmake-rs#186))

try-job: dist-apple-various
@bors
Copy link
Contributor

bors commented Feb 15, 2025

💔 Test failed - checks-actions

@rust-log-analyzer
Copy link
Collaborator

The job dist-apple-various failed! Check out the build log: (web) (plain)

Click to see the possible cause of the failure (guessed by this bot)
Updating files:  98% (50965/52005)
Updating files:  99% (51485/52005)
Updating files: 100% (52005/52005)
Updating files: 100% (52005/52005), done.
Switched to a new branch 'try'
branch 'try' set up to track 'origin/try'.
[command]/usr/local/bin/git log -1 --format=%H
b4d46e1d0a334d380f724577b37cda6b28e699c5
##[group]Run src/ci/scripts/setup-environment.sh
src/ci/scripts/setup-environment.sh
---
file:.git/config remote.origin.url=https://github.com/rust-lang-ci/rust
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config gc.auto=0
file:.git/config http.https://github.com/.extraheader=AUTHORIZATION: basic ***
file:.git/config branch.try.remote=origin
file:.git/config branch.try.merge=refs/heads/try
file:.git/config remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/*
file:.git/config submodule.library/backtrace.active=true
file:.git/config submodule.library/backtrace.url=https://github.com/rust-lang/backtrace-rs.git
file:.git/config submodule.library/stdarch.active=true
---
CMAKE_x86_64-apple-darwin = None
CMAKE_x86_64_apple_darwin = None
HOST_CMAKE = None
CMAKE = None
running: cd "/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" "cmake" "/Users/runner/work/rust/rust/src/llvm-project/llvm" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-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_TERMINFO=OFF" "-DLLVM_ENABLE_LIBEDIT=OFF" "-DLLVM_ENABLE_BINDINGS=OFF" "-DLLVM_ENABLE_Z3_SOLVER=OFF" "-DLLVM_PARALLEL_COMPILE_JOBS=4" "-DLLVM_TARGET_ARCH=x86_64" "-DLLVM_DEFAULT_TARGET_TRIPLE=x86_64-apple-darwin" "-DLLVM_ENABLE_WARNINGS=OFF" "-DLLVM_INSTALL_UTILS=ON" "-DLLVM_ENABLE_ZLIB=ON" "-DLLVM_ENABLE_LIBXML2=OFF" "-DLLVM_VERSION_SUFFIX=-rust-1.86.0-nightly" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_CXX_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang++" "-DCMAKE_ASM_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12 -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12 -stdlib=libc++ -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_SHARED_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -static-libstdc++" "-DLLVM_ENABLE_ZSTD=OFF" "-DCMAKE_INSTALL_PREFIX=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
CMAKE_x86_64-apple-darwin = None
CMAKE_x86_64_apple_darwin = None
HOST_CMAKE = None
CMAKE = None
running: cd "/Users/runner/work/rust/rust/build/x86_64-apple-darwin/lld/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" "cmake" "/Users/runner/work/rust/rust/src/llvm-project/lld" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-G" "Ninja" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_CXX_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang++" "-DCMAKE_ASM_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12 -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12 -stdlib=libc++ -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_SHARED_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -static-libstdc++" "-DLLVM_ENABLE_ZSTD=OFF" "-DLLVM_CMAKE_DIR=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/lib/cmake/llvm" "-DLLVM_INCLUDE_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/lld" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
CMAKE_x86_64-apple-darwin = None
CMAKE_x86_64_apple_darwin = None
HOST_CMAKE = None
CMAKE = None
running: cd "/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" "cmake" "/Users/runner/work/rust/rust/src/llvm-project/compiler-rt" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=x86_64-apple-darwin" "-DCOMPILER_RT_BUILD_BUILTINS=OFF" "-DCOMPILER_RT_BUILD_CRT=OFF" "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" "-DCOMPILER_RT_BUILD_PROFILE=OFF" "-DCOMPILER_RT_BUILD_SANITIZERS=ON" "-DCOMPILER_RT_BUILD_XRAY=OFF" "-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" "-DCOMPILER_RT_USE_LIBCXX=OFF" "-DLLVM_CONFIG_PATH=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/bin/llvm-config" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_CXX_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang++" "-DCMAKE_ASM_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -stdlib=libc++ -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_SHARED_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
ld: warning: '/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build/lib/ubsan/CMakeFiles/RTUbsan.osx.dir/ubsan_type_hash.cpp.o' has malformed LC_DYSYMTAB, expected 7 undefined symbols to start at index 2, found 4 undefined symbols starting at index 2
ld: warning: '/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build/lib/ubsan/CMakeFiles/RTUbsan.osx.dir/ubsan_handlers_cxx.cpp.o' has malformed LC_DYSYMTAB, expected 21 undefined symbols to start at index 5, found 18 undefined symbols starting at index 5
ld: warning: '/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build/lib/ubsan/CMakeFiles/RTUbsan.osx.dir/ubsan_type_hash_itanium.cpp.o' has malformed LC_DYSYMTAB, expected 13 undefined symbols to start at index 6, found 10 undefined symbols starting at index 6
cargo:root=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers
running: cd "/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" "cmake" "/Users/runner/work/rust/rust/src/llvm-project/compiler-rt" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=x86_64-apple-darwin" "-DCOMPILER_RT_BUILD_BUILTINS=OFF" "-DCOMPILER_RT_BUILD_CRT=OFF" "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" "-DCOMPILER_RT_BUILD_PROFILE=OFF" "-DCOMPILER_RT_BUILD_SANITIZERS=ON" "-DCOMPILER_RT_BUILD_XRAY=OFF" "-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" "-DCOMPILER_RT_USE_LIBCXX=OFF" "-DLLVM_CONFIG_PATH=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/bin/llvm-config" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_CXX_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang++" "-DCMAKE_ASM_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -stdlib=libc++ -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_SHARED_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
ld: warning: '/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build/lib/lsan/CMakeFiles/clang_rt.lsan_osx_dynamic.dir/lsan_malloc_mac.cpp.o' has malformed LC_DYSYMTAB, expected 54 undefined symbols to start at index 56, found 51 undefined symbols starting at index 56
ld: warning: '/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build/lib/lsan/CMakeFiles/clang_rt.lsan_osx_dynamic.dir/lsan_posix.cpp.o' has malformed LC_DYSYMTAB, expected 25 undefined symbols to start at index 16, found 22 undefined symbols starting at index 16
ld: warning: '/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build/lib/lsan/CMakeFiles/clang_rt.lsan_osx_dynamic.dir/lsan_thread.cpp.o' has malformed LC_DYSYMTAB, expected 31 undefined symbols to start at index 32, found 28 undefined symbols starting at index 32
cargo:root=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers
running: cd "/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" LC_ALL="C" "cmake" "/Users/runner/work/rust/rust/src/llvm-project/compiler-rt" "-DCMAKE_OSX_ARCHITECTURES=x86_64" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=x86_64-apple-darwin" "-DCOMPILER_RT_BUILD_BUILTINS=OFF" "-DCOMPILER_RT_BUILD_CRT=OFF" "-DCOMPILER_RT_BUILD_LIBFUZZER=OFF" "-DCOMPILER_RT_BUILD_PROFILE=OFF" "-DCOMPILER_RT_BUILD_SANITIZERS=ON" "-DCOMPILER_RT_BUILD_XRAY=OFF" "-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" "-DCOMPILER_RT_USE_LIBCXX=OFF" "-DLLVM_CONFIG_PATH=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/llvm/bin/llvm-config" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_C_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_CXX_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang++" "-DCMAKE_ASM_COMPILER=/Users/runner/work/rust/rust/clang+llvm-15.0.7-x86_64-apple-darwin21.0/bin/clang" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -stdlib=libc++ -fdebug-prefix-map=/Users/runner/work/rust/rust=/rustc/llvm" "-DCMAKE_SHARED_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/Users/runner/work/rust/rust/build/x86_64-apple-darwin/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64 --target=x86_64-apple-macosx -mmacosx-version-min=10.12" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all

@jieyouxu
Copy link
Member Author

2025-02-15T12:00:23.9601620Z thread 'main' panicked at /Users/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.54/src/lib.rs:1119:5:
2025-02-15T12:00:23.9603290Z 
2025-02-15T12:00:23.9604550Z environment variable `CARGO_CFG_TARGET_OS` not defined

@jieyouxu
Copy link
Member Author

Nevermind, looks like this is still a problem.

@jieyouxu jieyouxu closed this Feb 15, 2025
@jieyouxu jieyouxu deleted the bump-bootstrap-cc-cmake branch February 15, 2025 12:22
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

warning: rustc_llvm@0.0.0: Inherited flag "-flto=thin" is not supported by the currently used CC
5 participants