Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Rollup of 10 pull requests #138006

Closed
wants to merge 40 commits into from
Closed

Conversation

jieyouxu
Copy link
Member

@jieyouxu jieyouxu commented Mar 4, 2025

Successful merges:

r? @ghost
@rustbot modify labels: rollup

Create a similar rollup

arlosi and others added 30 commits February 20, 2025 11:47
illumos has `posix_spawn`, and the very newest versions also have `_addchdir`,
so use that.

This is a nice ~4x performance improvement for process creation. My go-to as
usual is nextest against the clap repo, which acts as a stress test for process
creation -- with [this commit]:

```console
$ cargo nextest run -E 'not test(ui_tests) and not test(example_tests)'
before: Summary [   1.747s] 879 tests run: 879 passed, 2 skipped
after:  Summary [   0.445s] 879 tests run: 879 passed, 2 skipped
```

[this commit]: clap-rs/clap@fde45f9
When both width and precision flags are specified, then the character
width is counted twice. Instead, record the character width when
truncating it to the precision, so it does not need to be recomputed.
Simplify control flow so the cases are more clear.
To distribute the prebuilt libgccjit.so from CI.
- Some UEFI protocols such as TCP4, TCP6, UDP4, UDP6, etc are managed by
  service binding protocol.
- A new instance of such protocols is created and destroyed using the
  corresponding service binding protocol.
- This PR adds abstractions to make using such protocols simpler using
  Rust Drop trait.
- The reason to add these abstractions in a seperate PR from TCP4
  Protocol is to make review easier.

[EFI_SERVICE_BINDING_PROTCOL](https://uefi.org/specs/UEFI/2.11/11_Protocols_UEFI_Driver_Model.html#efi-service-binding-protocol)

Signed-off-by: Ayush Singh <ayush@beagleboard.org>
These constants can be useful outside of their current module. Make them
`pub(crate)` to allow for this.
Fix or elaborate existing float parsing documentation. This includes
introducing a convention that should make naming more consistent.
This module currently contains two decimal types, `Decimal` and
`Number`. These names don't provide a whole lot of insight into what
exactly they are, and `Number` is actually the one that is more like an
expected `Decimal` type.

In accordance with this, rename the existing `Decimal` to `DecimalSeq`.
This highlights that it contains a sequence of decimal digits, rather
than representing a base-10 floating point (decimal) number.

Additionally, add some tests to validate internal behavior.
The previous commit renamed `Decimal` to `DecimalSeq`. Now, rename the
type that represents a decimal floating point number to be `Decimal`.

Additionally, add some tests for internal behavior.
A lot of the magic constants can be turned into expressions. This
reduces some code duplication.

Additionally, add traits to make these operations fully generic. This
will make it easier to support `f16` and `f128`.
This is just a bit of code cleanup to make use of returning early.
jieyouxu added 6 commits March 4, 2025 23:55
Undeprecate env::home_dir

rust-lang#132515 fixed the implementation of `env::home_dir`, but didn't remove the deprecation.

Based on [this comment](rust-lang#132515 (comment)), libs-api decided to undeprecate in the next release. Let's do that!

cc rust-lang#132650
…ouxu

Compile run-make-support and run-make tests with the bootstrap compiler

It does not seem necessary to have to recompile run-make-support on changes to the local compiler/stdlib. This PR simplifies the implementation of a few tools, then switches rms to stage0 and also makes the handling of environment variables in run-make tests simpler.

Best reviewed commit-by-commit. I can split it into multiple PRs if you want.

Also tested that `COMPILETEST_FORCE_STAGE0=1 ./x test tests/run-make --stage 0` still works. Incredibly, it looks like it even passes more tests than on `master` 😆

r? `@jieyouxu`
…Mark-Simulacrum

[illumos] attempt to use posix_spawn to spawn processes

illumos has `posix_spawn`, and the very newest versions also have `_addchdir`, so use that. POSIX standardized this function so I also added a weak symbol lookup for the non `_np` version. (illumos has both.)

This probably also works on Solaris, but I don't have access to an installation to validate this so I decided to focus on illumos instead.

This is a nice ~4x performance improvement for process creation. My go-to as usual is nextest against the clap repo, which acts as a stress test for process creation -- with [this commit]:

```console
$ cargo nextest run -E 'not test(ui_tests) and not test(example_tests)'
before: Summary [   1.747s] 879 tests run: 879 passed, 2 skipped
after:  Summary [   0.445s] 879 tests run: 879 passed, 2 skipped
```

[this commit]: clap-rs/clap@fde45f9
…Noratrieb

uefi: Add Service Binding Protocol abstraction

- Some UEFI protocols such as TCP4, TCP6, UDP4, UDP6, etc are managed by service binding protocol.
- A new instance of such protocols is created and destroyed using the corresponding service binding protocol.
- This PR adds abstractions to make using such protocols simpler using Rust Drop trait.
- The reason to add these abstractions in a seperate PR from TCP4 Protocol is to make review easier.

[EFI_SERVICE_BINDING_PROTCOL](https://uefi.org/specs/UEFI/2.11/11_Protocols_UEFI_Driver_Model.html#efi-service-binding-protocol)

cc ``@nicholasbishop``
Add `dist::Gcc` build step

This PR adds a `dist:Gcc` bootstrap step to distribute a prebuilt `libgccjit.so` from CI on x64 Linux.

With primed sccache, the build takes ~4 minutes on CI, and produces a 50 MiB archive.

I want to land this before adding something akin to `[gcc] download-ci-gcc = true`, to already have the artifacts available on CI, to make it easier to setup the download merge-base logic.

r? `@ghost`
@rustbot rustbot added A-compiletest Area: The compiletest test runner A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc O-unix Operating system: Unix-like 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) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue. rollup A PR which is a rollup labels Mar 4, 2025
@jieyouxu
Copy link
Member Author

jieyouxu commented Mar 4, 2025

Includes 2 iffys.
@bors r+ rollup=never p=5

@bors
Copy link
Contributor

bors commented Mar 4, 2025

📌 Commit 41b6c76 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Mar 4, 2025
@bors
Copy link
Contributor

bors commented Mar 4, 2025

⌛ Testing commit 41b6c76 with merge 3c361f7...

bors added a commit to rust-lang-ci/rust that referenced this pull request Mar 4, 2025
Rollup of 10 pull requests

Successful merges:

 - rust-lang#134063 (dec2flt: Clean up float parsing modules)
 - rust-lang#136662 (Count char width at most once in `Formatter::pad`)
 - rust-lang#137011 (Promote ohos targets to tier2 with host tools.)
 - rust-lang#137077 (Postprocess bootstrap metrics into GitHub job summary)
 - rust-lang#137327 (Undeprecate env::home_dir)
 - rust-lang#137373 (Compile run-make-support and run-make tests with the bootstrap compiler)
 - rust-lang#137463 ([illumos] attempt to use posix_spawn to spawn processes)
 - rust-lang#137477 (uefi: Add Service Binding Protocol abstraction)
 - rust-lang#137569 (Stablize `string_extend_from_within`)
 - rust-lang#137667 (Add `dist::Gcc` build step)

r? `@ghost`
`@rustbot` modify labels: rollup
@rust-log-analyzer
Copy link
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
COPY scripts/ohos/x86_64-unknown-linux-ohos-clang.sh /usr/local/bin/
COPY scripts/ohos/x86_64-unknown-linux-ohos-clang++.sh /usr/local/bin/

# env
ENV AARCH64_UNKNOWN_LINUX_OHOS_OPENSSL_DIR=/opt/ohos-openssl/prelude/arm64-v8a
ENV ARMV7_UNKNOWN_LINUX_OHOS_OPENSSL_DIR=/opt/ohos-openssl/prelude/armeabi-v7a
ENV X86_64_UNKNOWN_LINUX_OHOS_OPENSSL_DIR=/opt/ohos-openssl/prelude/x86_64

ENV AARCH64_UNKNOWN_LINUX_OHOS_OPENSSL_NO_VENDOR=1
ENV ARMV7_UNKNOWN_LINUX_OHOS_OPENSSL_NO_VENDOR=1
ENV X86_64_UNKNOWN_LINUX_OHOS_OPENSSL_NO_VENDOR=1
ENV TARGETS=aarch64-unknown-linux-ohos
ENV TARGETS=$TARGETS,armv7-unknown-linux-ohos
ENV TARGETS=$TARGETS,x86_64-unknown-linux-ohos

---

ENV RUST_CONFIGURE_ARGS \
    --enable-profiler \
    --disable-docs \
    --tools=cargo,clippy,rustdocs,rustfmt,rust-analyzer,rust-analyzer-proc-macro-srv,analysis,src,wasm-component-ld \
    --enable-sanitizers

ENV SCRIPT python3 ../x.py dist --host=$TARGETS --target $TARGETS


COPY scripts/sccache.sh /scripts/
RUN sh /scripts/sccache.sh
#!/bin/sh
set -ex

URL=https://github.com/ohos-rs/ohos-openssl/archive/refs/tags/0.1.0.tar.gz
mkdir -p /opt/ohos-openssl
mkdir -p /opt/ohos-openssl
curl -fL $URL | tar xz -C /opt/ohos-openssl --strip-components=1
set -ex

URL=https://repo.huaweicloud.com/openharmony/os/5.0.0-Release/ohos-sdk-windows_linux-public.tar.gz

---

#13 [ 5/14] COPY scripts/ohos-openssl.sh /scripts/
#13 DONE 0.2s

#14 [ 6/14] RUN sh /scripts/ohos-openssl.sh
#14 0.048 + URL=https://github.com/ohos-rs/ohos-openssl/archive/refs/tags/0.1.0.tar.gz
#14 0.048 + mkdir -p /opt/ohos-openssl
#14 0.049 + curl -fL https://github.com/ohos-rs/ohos-openssl/archive/refs/tags/0.1.0.tar.gz
#14 0.049 + tar xz -C /opt/ohos-openssl --strip-components=1
#14 0.055                                  Dload  Upload   Total   Spent    Left  Speed
#14 0.055 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
---
sccache: Listening on address 127.0.0.1:4226
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--enable-profiler', '--disable-docs', '--tools=cargo,clippy,rustdocs,rustfmt,rust-analyzer,rust-analyzer-proc-macro-srv,analysis,src,wasm-component-ld', '--enable-extended', '--enable-sanitizers', '--set', 'build.print-step-timings', '--enable-verbose-tests', '--set', 'build.metrics', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'build.optimized-compiler-builtins', '--disable-dist-src', '--release-channel=nightly', '--enable-llvm-static-stdcpp', '--set', 'rust.remap-debuginfo', '--debuginfo-level-std=1', '--set', 'rust.codegen-backends=llvm']
configure: build.docs           := False
configure: build.docs           := False
configure: build.tools          := ['cargo', 'clippy', 'rustdocs', 'rustfmt', 'rust-analyzer', 'rust-analyzer-proc-macro-srv', 'analysis', 'src', 'wasm-component-ld']
configure: build.sanitizers     := True
configure: build.print-step-timings := True
configure: build.metrics        := True
configure: rust.codegen-units-std := 1
---
CMAKE_aarch64-unknown-linux-ohos = None
CMAKE_aarch64_unknown_linux_ohos = None
TARGET_CMAKE = None
CMAKE = None
running: cd "/checkout/obj/build/aarch64-unknown-linux-ohos/llvm/build" && CMAKE_PREFIX_PATH="" DESTDIR="" "cmake" "/checkout/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_TERMINFO=OFF" "-DLLVM_ENABLE_LIBEDIT=OFF" "-DLLVM_ENABLE_BINDINGS=OFF" "-DLLVM_ENABLE_Z3_SOLVER=OFF" "-DLLVM_PARALLEL_COMPILE_JOBS=4" "-DLLVM_TARGET_ARCH=aarch64" "-DLLVM_DEFAULT_TARGET_TRIPLE=aarch64-unknown-linux-ohos" "-DLLVM_ENABLE_WARNINGS=OFF" "-DLLVM_INSTALL_UTILS=ON" "-DLLVM_ENABLE_ZLIB=ON" "-DLLVM_ENABLE_LIBXML2=OFF" "-DLLVM_TABLEGEN=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-tblgen" "-DLLVM_NM=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-nm" "-DLLVM_CONFIG_PATH=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "-DLLVM_VERSION_SUFFIX=-rust-1.87.0-nightly" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_CROSSCOMPILING=True" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_CXX_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang++.sh" "-DCMAKE_ASM_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_AR=/opt/ohos-sdk/native/llvm/bin/llvm-ar" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DLLVM_ENABLE_ZSTD=OFF" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/aarch64-unknown-linux-ohos/llvm" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
CMAKE_aarch64-unknown-linux-ohos = None
CMAKE_aarch64_unknown_linux_ohos = None
TARGET_CMAKE = None
CMAKE = None
running: cd "/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" "cmake" "/checkout/src/llvm-project/compiler-rt" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-ohos" "-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=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_CROSSCOMPILING=True" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_CXX_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang++.sh" "-DCMAKE_ASM_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_AR=/opt/ohos-sdk/native/llvm/bin/llvm-ar" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
  static const int SECCOMP_MODE_FILTER = 2;
                   ^
2 warnings generated.
[122/122] Linking CXX static library lib/linux/libclang_rt.asan-aarch64.a
cargo:root=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers
running: cd "/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" "cmake" "/checkout/src/llvm-project/compiler-rt" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-ohos" "-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=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_CROSSCOMPILING=True" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_CXX_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang++.sh" "-DCMAKE_ASM_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_AR=/opt/ohos-sdk/native/llvm/bin/llvm-ar" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
[8/11] Building CXX object lib/lsan/CMakeFiles/clang_rt.lsan-aarch64.dir/lsan_preinit.cpp.o
[9/11] Building CXX object lib/lsan/CMakeFiles/clang_rt.lsan-aarch64.dir/lsan_posix.cpp.o
[10/11] Building CXX object lib/lsan/CMakeFiles/clang_rt.lsan-aarch64.dir/lsan_thread.cpp.o
[11/11] Linking CXX static library lib/linux/libclang_rt.lsan-aarch64.a
cargo:root=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers
running: cd "/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" "cmake" "/checkout/src/llvm-project/compiler-rt" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-ohos" "-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=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_CROSSCOMPILING=True" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_CXX_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang++.sh" "-DCMAKE_ASM_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_AR=/opt/ohos-sdk/native/llvm/bin/llvm-ar" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
  static const int SECCOMP_MODE_FILTER = 2;
                   ^
2 warnings generated.
[10/10] Linking CXX static library lib/linux/libclang_rt.msan-aarch64.a
cargo:root=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers
running: cd "/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" "cmake" "/checkout/src/llvm-project/compiler-rt" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-ohos" "-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=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_CROSSCOMPILING=True" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_CXX_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang++.sh" "-DCMAKE_ASM_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_AR=/opt/ohos-sdk/native/llvm/bin/llvm-ar" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
  static const int PR_SET_SECCOMP = 22;
                   ^
2 warnings generated.
[32/32] Linking CXX static library lib/linux/libclang_rt.tsan-aarch64.a
cargo:root=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers
running: cd "/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers/build" && CMAKE_PREFIX_PATH="" DESTDIR="" "cmake" "/checkout/src/llvm-project/compiler-rt" "-G" "Ninja" "-DCMAKE_C_COMPILER_TARGET=aarch64-unknown-linux-ohos" "-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=/checkout/obj/build/x86_64-unknown-linux-gnu/llvm/bin/llvm-config" "-DCOMPILER_RT_USE_BUILTINS_LIBRARY=ON" "-DCMAKE_INSTALL_MESSAGE=LAZY" "-DCMAKE_CROSSCOMPILING=True" "-DCMAKE_SYSTEM_NAME=Linux" "-DCMAKE_C_COMPILER_LAUNCHER=sccache" "-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" "-DCMAKE_C_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_CXX_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang++.sh" "-DCMAKE_ASM_COMPILER=/usr/local/bin/aarch64-unknown-linux-ohos-clang.sh" "-DCMAKE_C_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_CXX_FLAGS=-ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos -D_LINUX_SYSINFO_H" "-DCMAKE_AR=/opt/ohos-sdk/native/llvm/bin/llvm-ar" "-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_MODULE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_EXE_LINKER_FLAGS= -Wl,-Bsymbolic -static-libstdc++" "-DCMAKE_INSTALL_PREFIX=/checkout/obj/build/aarch64-unknown-linux-ohos/native/sanitizers" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=aarch64-unknown-linux-ohos" "-DCMAKE_BUILD_TYPE=Release"
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
---
    inlined from ‘void __tsan::TraceTime(ThreadState*)’ at /checkout/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_rtl_access.cpp:145:13:
/checkout/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_rtl.h:736:11: note: ‘evp’ was declared here
  736 |   EventT *evp;
      |           ^~~
/checkout/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_rtl_access.cpp: In function ‘void __tsan::DoReportRaceV(ThreadState*, RawShadow*, Shadow, __sanitizer::u32, m128, AccessType)’:
  279 |   u32 old;
      |       ^~~
/checkout/src/llvm-project/compiler-rt/lib/tsan/rtl/tsan_rtl_access.cpp:279:7: note: ‘old’ was declared here
  279 |   u32 old;
---
[RUSTC-TIMING] unicase test:false 0.391
[RUSTC-TIMING] rustc_trait_selection test:false 190.918
   Compiling tracing-subscriber v0.3.18
[RUSTC-TIMING] rustc_incremental test:false 22.989
error: empty search path given via `-L`
[RUSTC-TIMING] rustc_llvm test:false 0.021
error: could not compile `rustc_llvm` (lib) due to 1 previous error
warning: build failed, waiting for other jobs to finish...
[RUSTC-TIMING] pulldown_cmark test:false 5.130

@bors
Copy link
Contributor

bors commented Mar 4, 2025

💔 Test failed - checks-actions

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Mar 4, 2025
@jieyouxu jieyouxu deleted the rollup-av2viwz branch March 4, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: The compiletest test runner A-query-system Area: The rustc query system (https://rustc-dev-guide.rust-lang.org/query.html) A-run-make Area: port run-make Makefiles to rmake.rs A-testsuite Area: The testsuite used to check the correctness of rustc O-unix Operating system: Unix-like rollup A PR which is a rollup 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) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.