[clang] [flang] [flang][Driver] Enables lto-partitions and fat-lto-object. (PR #158125)
Peter Klausler via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 20 10:33:46 PDT 2025
klausler wrote:
I'm seeing failures downstream in `flang/test/Driver/lto-lld-flags.f90` on both x86-64 and aarch64 Linux. I build with shared libraries, in case that matters.
```
FAIL: Flang :: Driver/lto-lld-flags.f90 (3831 of 3838)
******************** TEST 'Flang :: Driver/lto-lld-flags.f90' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/pklausler/llvm-project/build/x86/gcc/9.3.0/Release/shared/bin/flang -### -fuse-ld=lld -flto=full -flto-partitions=16 /home/pklausler/llvm-project/flang/te
st/Driver/lto-lld-flags.f90 2>&1 | /home/pklausler/llvm-project/build/x86/gcc/9.3.0/Release/shared/bin/FileCheck /home/pklausler/llvm-project/flang/test/Driver/
lto-lld-flags.f90 --check-prefixes=LLD-PART,FC1-PART
# executed command: /home/pklausler/llvm-project/build/x86/gcc/9.3.0/Release/shared/bin/flang '-###' -fuse-ld=lld -flto=full -flto-partitions=16 /home/pklausler
/llvm-project/flang/test/Driver/lto-lld-flags.f90
# note: command had no output on stdout or stderr
# error: command failed with exit status: 1
# executed command: /home/pklausler/llvm-project/build/x86/gcc/9.3.0/Release/shared/bin/FileCheck /home/pklausler/llvm-project/flang/test/Driver/lto-lld-flags.f
90 --check-prefixes=LLD-PART,FC1-PART
# .---command stderr------------
# | /home/pklausler/llvm-project/flang/test/Driver/lto-lld-flags.f90:8:13: error: LLD-PART: expected string not found in input
# | ! LLD-PART: ld.lld
# | ^
# | <stdin>:8:156: note: scanning from here
# | "/local/home/pklausler/build/llvm-project/x86/gcc/9.3.0/Release/shared/bin/flang" "-fc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm-bc" "-flto=full"
"-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-target-cpu" "x86-64" "-resource-dir" "/local/home/pklausler/build/llvm-project/x86/gcc/9.3.0/Release
/shared/lib/clang/22" "-mframe-pointer=all" "-o" "/tmp/lit-tmp-y0dj4a88/lto-lld-flags-5333c9.o" "-x" "f95" "/home/pklausler/llvm-project/flang/test/Driver/lto-l
ld-flags.f90"
# | ^
# | <stdin>:8:280: note: possible intended match here
# | "/local/home/pklausler/build/llvm-project/x86/gcc/9.3.0/Release/shared/bin/flang" "-fc1" "-triple" "x86_64-unknown-linux-gnu" "-emit-llvm-bc" "-flto=full"
"-mrelocation-model" "pic" "-pic-level" "2" "-pic-is-pie" "-target-cpu" "x86-64" "-resource-dir" "/local/home/pklausler/build/llvm-project/x86/gcc/9.3.0/Release
/shared/lib/clang/22" "-mframe-pointer=all" "-o" "/tmp/lit-tmp-y0dj4a88/lto-lld-flags-5333c9.o" "-x" "f95" "/home/pklausler/llvm-project/flang/test/Driver/lto-l
ld-flags.f90"
# |
```
https://github.com/llvm/llvm-project/pull/158125
More information about the cfe-commits
mailing list