[clang] [clang][driver][darwin] DarwinSDKInfo doesn't match sufficiently modified triples, doesn't warn for unsupported architectures (PR #204061)

via cfe-commits cfe-commits at lists.llvm.org
Sun Jun 21 22:24:37 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 88369 tests passed
* 1666 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### Clang
<details>
<summary>Clang.Driver/incompatible_sysroot.c</summary>

```
Exit Code: -6

Command Output (stdout):
--
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/MacOSX10.9.sdk -mios-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-OSX-IOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/MacOSX10.9.sdk -mios-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-OSX-IOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target arm64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/iPhoneOS9.2.sdk -mwatchos-version-min=2.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-WATCHOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target arm64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/iPhoneOS9.2.sdk -mwatchos-version-min=2.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-WATCHOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 7
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target arm64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/iPhoneOS9.2.sdk -mtvos-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-TVOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target arm64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/iPhoneOS9.2.sdk -mtvos-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-TVOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-driverkit19.0 -Wincompatible-sysroot -isysroot SDKs/MacOSX10.9.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-OSX-DRIVERKIT /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-driverkit19.0 -Wincompatible-sysroot -isysroot SDKs/MacOSX10.9.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-OSX-DRIVERKIT /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 9
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-driverkit19.0 -Wincompatible-sysroot -isysroot SDKs/iPhoneOS9.2.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-DRIVERKIT /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-driverkit19.0 -Wincompatible-sysroot -isysroot SDKs/iPhoneOS9.2.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-DRIVERKIT /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/iPhoneSimulator9.2.sdk -mios-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-IOSSIM /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin -Wincompatible-sysroot -isysroot SDKs/iPhoneSimulator9.2.sdk -mios-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-IOS-IOSSIM /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 11
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin -Wno-incompatible-sysroot -isysroot SDKs/MacOSX10.9.sdk -mios-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-OSX-IOS-DISABLED /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target x86_64-apple-darwin -Wno-incompatible-sysroot -isysroot SDKs/MacOSX10.9.sdk -mios-version-min=9.0 -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-OSX-IOS-DISABLED /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 13
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target armv7k-apple-watchos6.0 -Wincompatible-sysroot -isysroot /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/WatchOS6.0.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-WATCHOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target armv7k-apple-watchos6.0 -Wincompatible-sysroot -isysroot /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/WatchOS6.0.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-WATCHOS /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 14
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target armv7-apple-watchos6.0 -Wincompatible-sysroot -isysroot /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/WatchOS6.0.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-WATCHOS-ARMV7 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target armv7-apple-watchos6.0 -Wincompatible-sysroot -isysroot /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/WatchOS6.0.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-WATCHOS-ARMV7 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# RUN: at line 15
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target armv6m-apple-firmware -Wincompatible-sysroot -isysroot /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/WatchOS6.0.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-WATCHOS-ARMV6M-FIRMWARE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -target armv6m-apple-firmware -Wincompatible-sysroot -isysroot /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/Inputs/WatchOS6.0.sdk -S -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr
# error: command failed with exit status: -6
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck -check-prefix CHECK-WATCHOS-ARMV6M-FIRMWARE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/incompatible_sysroot.c
# note: command had no output on stdout or stderr

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

https://github.com/llvm/llvm-project/pull/204061


More information about the cfe-commits mailing list