[clang] [llvm] [Driver] Reject -mcmodel=tiny on X86 (PR #125643)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed May 7 12:10:54 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `clang` at step 7 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/153/builds/31001
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'Flang :: Driver/mcmodel.f90' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
not /build/buildbot/premerge-monolithic-linux/build/bin/flang -### -c --target=i686 -mcmodel=medium /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90 2>&1 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=ERR-MEDIUM /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90 # RUN: at line 1
+ not /build/buildbot/premerge-monolithic-linux/build/bin/flang -### -c --target=i686 -mcmodel=medium /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=ERR-MEDIUM /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90
/build/buildbot/premerge-monolithic-linux/build/bin/flang --target=x86_64 -### -c -mcmodel=tiny /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90 2>&1 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=TINY /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90 # RUN: at line 2
+ /build/buildbot/premerge-monolithic-linux/build/bin/flang --target=x86_64 -### -c -mcmodel=tiny /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=TINY /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90
/build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90:27:9: error: TINY: expected string not found in input
! TINY: "-mcmodel=tiny"
^
<stdin>:1:1: note: scanning from here
flang version 21.0.0git (https://github.com/llvm/llvm-project.git c53e583007738f591d0c9993f06b65c4898a04f8)
^
<stdin>:6:56: note: possible intended match here
flang-21: error: unsupported argument 'tiny' to option '-mcmodel=' for target 'x86_64'
^
Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90
-dump-input=help explains the following input dump.
Input was:
<<<<<<
1: flang version 21.0.0git (https://github.com/llvm/llvm-project.git c53e583007738f591d0c9993f06b65c4898a04f8)
check:27'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
2: Target: x86_64
check:27'0 ~~~~~~~~~~~~~~~
3: Thread model: posix
check:27'0 ~~~~~~~~~~~~~~~~~~~~
4: InstalledDir: /build/buildbot/premerge-monolithic-linux/build/bin
check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5: Build config: +assertions
check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
6: flang-21: error: unsupported argument 'tiny' to option '-mcmodel=' for target 'x86_64'
check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
check:27'1 ? possible intended match
7: "/build/buildbot/premerge-monolithic-linux/build/bin/flang" "-fc1" "-triple" "x86_64" "-emit-obj" "-mrelocation-model" "static" "-target-cpu" "x86-64" "-resource-dir" "/build/buildbot/premerge-monolithic-linux/build/lib/clang/21" "-mframe-pointer=all" "-o" "mcmodel.o" "-x" "f95" "/build/buildbot/premerge-monolithic-linux/llvm-project/flang/test/Driver/mcmodel.f90"
check:27'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>>>>
--
********************
```
</details>
https://github.com/llvm/llvm-project/pull/125643
More information about the llvm-commits
mailing list