[llvm-branch-commits] [clang] clang: Check -Xarch compatibility using Triple parsed architecture. (PR #189651)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Mar 31 06:16:48 PDT 2026


github-actions[bot] wrote:

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

* 87202 tests passed
* 1351 tests skipped
* 1 test failed

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

### Clang
<details>
<summary>Clang.Driver/darwin-xarch.c</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=x86_64-apple-darwin10 -###    -arch i386 -Xarch_i386 -mmacos-version-min=10.4    -arch x86_64 -Xarch_x86_64 -mmacos-version-min=10.5    -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=x86_64-apple-darwin10 '-###' -arch i386 -Xarch_i386 -mmacos-version-min=10.4 -arch x86_64 -Xarch_x86_64 -mmacos-version-min=10.5 -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# note: command had no output on stdout or stderr
# RUN: at line 5
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-COMPILE < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-COMPILE /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.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-darwin10 -###    -arch i386 -Xarch_i386 -Wl,-some-linker-arg -filelist X 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=x86_64-apple-darwin10 '-###' -arch i386 -Xarch_i386 -Wl,-some-linker-arg -filelist X
# note: command had no output on stdout or stderr
# RUN: at line 12
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-LINK < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-LINK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# note: command had no output on stdout or stderr
# RUN: at line 16
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=x86_64-apple-darwin10 -###    -arch armv7 -Xarch_armv7 -Wl,-some-linker-arg -filelist X 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=x86_64-apple-darwin10 '-###' -arch armv7 -Xarch_armv7 -Wl,-some-linker-arg -filelist X
# note: command had no output on stdout or stderr
# RUN: at line 18
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-ARMV7-LINK < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-ARMV7-LINK /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# note: command had no output on stdout or stderr
# RUN: at line 23
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=armv7s-apple-ios7 -###    -arch armv7  -Xarch_armv7  -DARMV7=1    -arch armv7s -Xarch_armv7s -DARMV7S=1    -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c 2> /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang --target=armv7s-apple-ios7 '-###' -arch armv7 -Xarch_armv7 -DARMV7=1 -arch armv7s -Xarch_armv7s -DARMV7S=1 -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# note: command had no output on stdout or stderr
# RUN: at line 27
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-ARMV7S < /home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver/Output/darwin-xarch.c.tmp /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=CHECK-ARMV7S /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c:34:22: error: CHECK-ARMV7S-NOT: excluded string found in input
# | // CHECK-ARMV7S-NOT: "-D" "ARMV7=1"
# |                      ^
# | <stdin>:7:1721: note: found here
# |  "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" "-cc1" "-triple" "thumbv7s-apple-ios7.0.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "darwin-xarch.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf-no-reserve" "-ffp-contract=on" "-fno-rounding-math" "-faligned-alloc-unavailable" "-fno-sized-deallocation" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fbuiltin-headers-in-system-modules" "-fdefine-target-os-macros" "-target-cpu" "swift" "-target-feature" "+soft-float-abi" "-target-feature" "+read-tp-tpidruro" "-target-feature" "+vfp2" "-target-feature" "+vfp2sp" "-target-feature" "+vfp3" "-target-feature" "+vfp3d16" "-target-feature" "+vfp3d16sp" "-target-feature" "+vfp3sp" "-target-feature" "+fp16" "-target-feature" "+vfp4" "-target-feature" "+vfp4d16" "-target-feature" "+vfp4d16sp" "-target-feature" "+vfp4sp" "-target-feature" "-fp-armv8" "-target-feature" "-fp-armv8d16" "-target-feature" "-fp-armv8d16sp" "-target-feature" "-fp-armv8sp" "-target-feature" "-fullfp16" "-target-feature" "+fp64" "-target-feature" "+d32" "-target-feature" "+neon" "-target-feature" "-sha2" "-target-feature" "-aes" "-target-feature" "-fp16fml" "-target-abi" "apcs-gnu" "-mfloat-abi" "soft" "-debugger-tuning=lldb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23" "-D" "ARMV7=1" "-D" "ARMV7S=1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include" "-internal-externc-isystem" "/usr/include" "-internal-iframework" "/System/Library/Frameworks" "-internal-iframework" "/System/Library/SubFrameworks" "-internal-iframework" "/Library/Frameworks" "-ferror-limit" "19" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-exception-model=sjlj" "-fmax-type-align=16" "-o" "/tmp/lit-tmp-atdnhai_/darwin-xarch-579f74/darwin-xarch-armv7s.o" "-x" "c" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c"
# |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         ^~~~~~~~~~~~~~
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |         1: clang version 23.0.0git (https://github.com/llvm/llvm-project a8efbb826b93acb45098c21150401e3b6e1d84f7) 
# |         2: Target: armv7s-apple-ios7 
# |         3: Thread model: posix 
# |         4: InstalledDir: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin 
# |         5: Build config: +assertions 
# |         6:  "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" "-cc1" "-triple" "thumbv7-apple-ios7.0.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "darwin-xarch.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf-no-reserve" "-ffp-contract=on" "-fno-rounding-math" "-faligned-alloc-unavailable" "-fno-sized-deallocation" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fbuiltin-headers-in-system-modules" "-fdefine-target-os-macros" "-target-cpu" "generic" "-target-feature" "+soft-float-abi" "-target-feature" "+read-tp-tpidruro" "-target-feature" "+vfp2" "-target-feature" "+vfp2sp" "-target-feature" "+vfp3" "-target-feature" "+vfp3d16" "-target-feature" "+vfp3d16sp" "-target-feature" "+vfp3sp" "-target-feature" "-fp16" "-target-feature" "-vfp4" "-target-feature" "-vfp4d16" "-target-feature" "-vfp4d16sp" "-target-feature" "-vfp4sp" "-target-feature" "-fp-armv8" "-target-feature" "-fp-armv8d16" "-target-feature" "-fp-armv8d16sp" "-target-feature" "-fp-armv8sp" "-target-feature" "-fullfp16" "-target-feature" "+fp64" "-target-feature" "+d32" "-target-feature" "+neon" "-target-feature" "-sha2" "-target-feature" "-aes" "-target-feature" "-fp16fml" "-target-abi" "apcs-gnu" "-mfloat-abi" "soft" "-debugger-tuning=lldb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23" "-D" "ARMV7=1" "-D" "ARMV7S=1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include" "-internal-externc-isystem" "/usr/include" "-internal-iframework" "/System/Library/Frameworks" "-internal-iframework" "/System/Library/SubFrameworks" "-internal-iframework" "/Library/Frameworks" "-ferror-limit" "19" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-exception-model=sjlj" "-fmax-type-align=16" "-o" "/tmp/lit-tmp-atdnhai_/darwin-xarch-f03e94/darwin-xarch-armv7.o" "-x" "c" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c" 
# |         7:  "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang-23" "-cc1" "-triple" "thumbv7s-apple-ios7.0.0" "-Wundef-prefix=TARGET_OS_" "-Werror=undef-prefix" "-emit-obj" "-disable-free" "-clear-ast-before-backend" "-main-file-name" "darwin-xarch.c" "-mrelocation-model" "pic" "-pic-level" "2" "-mframe-pointer=non-leaf-no-reserve" "-ffp-contract=on" "-fno-rounding-math" "-faligned-alloc-unavailable" "-fno-sized-deallocation" "-fcompatibility-qualified-id-block-type-checking" "-fvisibility-inlines-hidden-static-local-var" "-fbuiltin-headers-in-system-modules" "-fdefine-target-os-macros" "-target-cpu" "swift" "-target-feature" "+soft-float-abi" "-target-feature" "+read-tp-tpidruro" "-target-feature" "+vfp2" "-target-feature" "+vfp2sp" "-target-feature" "+vfp3" "-target-feature" "+vfp3d16" "-target-feature" "+vfp3d16sp" "-target-feature" "+vfp3sp" "-target-feature" "+fp16" "-target-feature" "+vfp4" "-target-feature" "+vfp4d16" "-target-feature" "+vfp4d16sp" "-target-feature" "+vfp4sp" "-target-feature" "-fp-armv8" "-target-feature" "-fp-armv8d16" "-target-feature" "-fp-armv8d16sp" "-target-feature" "-fp-armv8sp" "-target-feature" "-fullfp16" "-target-feature" "+fp64" "-target-feature" "+d32" "-target-feature" "+neon" "-target-feature" "-sha2" "-target-feature" "-aes" "-target-feature" "-fp16fml" "-target-abi" "apcs-gnu" "-mfloat-abi" "soft" "-debugger-tuning=lldb" "-fdebug-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-fcoverage-compilation-dir=/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/test/Driver" "-resource-dir" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23" "-D" "ARMV7=1" "-D" "ARMV7S=1" "-internal-isystem" "/usr/local/include" "-internal-isystem" "/home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/23/include" "-internal-externc-isystem" "/usr/include" "-internal-iframework" "/System/Library/Frameworks" "-internal-iframework" "/System/Library/SubFrameworks" "-internal-iframework" "/Library/Frameworks" "-ferror-limit" "19" "-stack-protector" "1" "-fblocks" "-fencode-extended-block-signature" "-fregister-global-dtors-with-atexit" "-fgnuc-version=4.2.1" "-fskip-odr-check-in-gmf" "-exception-model=sjlj" "-fmax-type-align=16" "-o" "/tmp/lit-tmp-atdnhai_/darwin-xarch-579f74/darwin-xarch-armv7s.o" "-x" "c" "/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/Driver/darwin-xarch.c" 
# | not:34                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             !~~~~~~~~~~~~~                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    error: no match expected
# |         8:  "lipo" "-create" "-output" "darwin-xarch.o" "/tmp/lit-tmp-atdnhai_/darwin-xarch-f03e94/darwin-xarch-armv7.o" "/tmp/lit-tmp-atdnhai_/darwin-xarch-579f74/darwin-xarch-armv7s.o" 
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</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/189651


More information about the llvm-branch-commits mailing list