luporl wrote:

`flang/test/Driver/lto-lld-flags.f90` fails on macOS too, when lld is not 
enabled:

```
FAIL: Flang :: Driver/lto-lld-flags.f90 (1 of 1)
******************** TEST 'Flang :: Driver/lto-lld-flags.f90' FAILED 
********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 3
/Users/leandro.lupori/home/git/flang/build/bin/flang -### -fuse-ld=lld 
-flto=full -flto-partitions=16 
/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90
 2>&1 | /Users/leandro.lupori/home/git/flang/build/bin/FileCheck 
/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90
 --check-prefixes=LLD-PART,FC1-PART
# executed command: /Users/leandro.lupori/home/git/flang/build/bin/flang '-###' 
-fuse-ld=lld -flto=full -flto-partitions=16 
/Users/leandro.lupori/home/git/flang/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: /Users/leandro.lupori/home/git/flang/build/bin/FileCheck 
/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90
 --check-prefixes=LLD-PART,FC1-PART
# .---command stderr------------
# | 
/Users/leandro.lupori/home/git/flang/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>:7:129: note: scanning from here
# |  "/Users/leandro.lupori/home/git/flang/build/bin/flang" "-fc1" "-triple" 
"arm64-apple-macosx15.0.0" "-emit-llvm-bc" "-flto=full" "-mrelocation-model" 
"pic" "-pic-level" "2" "-target-cpu" "apple-m1" "-target-feature" "+v8.4a" 
"-target-feature" "+aes" "-target-feature" "+altnzcv" "-target-feature" "+ccdp" 
"-target-feature" "+ccpp" "-target-feature" "+complxnum" "-target-feature" 
"+crc" "-target-feature" "+dotprod" "-target-feature" "+flagm" 
"-target-feature" "+fp-armv8" "-target-feature" "+fp16fml" "-target-feature" 
"+fptoint" "-target-feature" "+fullfp16" "-target-feature" "+jsconv" 
"-target-feature" "+lse" "-target-feature" "+neon" "-target-feature" "+pauth" 
"-target-feature" "+perfmon" "-target-feature" "+predres" "-target-feature" 
"+ras" "-target-feature" "+rcpc" "-target-feature" "+rdm" "-target-feature" 
"+sb" "-target-feature" "+sha2" "-target-feature" "+sha3" "-target-feature" 
"+specrestrict" "-target-feature" "+ssbs" "-resource-dir" 
"/Users/leandro.lupori/home/git/flang/build/lib/clang/22" 
"-mframe-pointer=non-leaf" "-o" 
"/var/folders/dn/0khgdg49685fyvmj1tfyp13c0000gp/T/lit-tmp-oazpj6yh/lto-lld-flags-df2d88.o"
 "-x" "f95" 
"/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90"
# |                                                                             
                                                    ^
# | <stdin>:7:995: note: possible intended match here
# |  "/Users/leandro.lupori/home/git/flang/build/bin/flang" "-fc1" "-triple" 
"arm64-apple-macosx15.0.0" "-emit-llvm-bc" "-flto=full" "-mrelocation-model" 
"pic" "-pic-level" "2" "-target-cpu" "apple-m1" "-target-feature" "+v8.4a" 
"-target-feature" "+aes" "-target-feature" "+altnzcv" "-target-feature" "+ccdp" 
"-target-feature" "+ccpp" "-target-feature" "+complxnum" "-target-feature" 
"+crc" "-target-feature" "+dotprod" "-target-feature" "+flagm" 
"-target-feature" "+fp-armv8" "-target-feature" "+fp16fml" "-target-feature" 
"+fptoint" "-target-feature" "+fullfp16" "-target-feature" "+jsconv" 
"-target-feature" "+lse" "-target-feature" "+neon" "-target-feature" "+pauth" 
"-target-feature" "+perfmon" "-target-feature" "+predres" "-target-feature" 
"+ras" "-target-feature" "+rcpc" "-target-feature" "+rdm" "-target-feature" 
"+sb" "-target-feature" "+sha2" "-target-feature" "+sha3" "-target-feature" 
"+specrestrict" "-target-feature" "+ssbs" "-resource-dir" 
"/Users/leandro.lupori/home/git/flang/build/lib/clang/22" 
"-mframe-pointer=non-leaf" "-o" 
"/var/folders/dn/0khgdg49685fyvmj1tfyp13c0000gp/T/lit-tmp-oazpj6yh/lto-lld-flags-df2d88.o"
 "-x" "f95" 
"/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90"
# |                                                                             
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                      ^
# |
# | Input file: <stdin>
# | Check file: 
/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# |            1: flang version 22.0.0git 
(g...@github.com:luporl/llvm-project.git 
2ab5186a9373df5ff64c00b5a33aeb78a2ffd564)
# |            2: Target: arm64-apple-darwin24.6.0
# |            3: Thread model: posix
# |            4: InstalledDir: /Users/leandro.lupori/home/git/flang/build/bin
# |            5: Build config: +assertions
# |            6: flang-22: error: invalid linker name in argument 
'-fuse-ld=lld'
# |            7:  "/Users/leandro.lupori/home/git/flang/build/bin/flang" 
"-fc1" "-triple" "arm64-apple-macosx15.0.0" "-emit-llvm-bc" "-flto=full" 
"-mrelocation-model" "pic" "-pic-level" "2" "-target-cpu" "apple-m1" 
"-target-feature" "+v8.4a" "-target-feature" "+aes" "-target-feature" 
"+altnzcv" "-target-feature" "+ccdp" "-target-feature" "+ccpp" 
"-target-feature" "+complxnum" "-target-feature" "+crc" "-target-feature" 
"+dotprod" "-target-feature" "+flagm" "-target-feature" "+fp-armv8" 
"-target-feature" "+fp16fml" "-target-feature" "+fptoint" "-target-feature" 
"+fullfp16" "-target-feature" "+jsconv" "-target-feature" "+lse" 
"-target-feature" "+neon" "-target-feature" "+pauth" "-target-feature" 
"+perfmon" "-target-feature" "+predres" "-target-feature" "+ras" 
"-target-feature" "+rcpc" "-target-feature" "+rdm" "-target-feature" "+sb" 
"-target-feature" "+sha2" "-target-feature" "+sha3" "-target-feature" 
"+specrestrict" "-target-feature" "+ssbs" "-resource-dir" 
"/Users/leandro.lupori/home/git/flang/build/lib/clang/22" 
"-mframe-pointer=non-leaf" "-o" 
"/var/folders/dn/0khgdg49685fyvmj1tfyp13c0000gp/T/lit-tmp-oazpj6yh/lto-lld-flags-df2d88.o"
 "-x" "f95" 
"/Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/lto-lld-flags.f90"
# | check:8'0                                                                   
                                                                  
X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 error: no match found
# | check:8'1                                                                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                    ?                           
                                                                                
                                                                                
                                                    possible intended match
# |            8:  "/usr/bin/ld" "-demangle" "-object_path_lto" 
"/var/folders/dn/0khgdg49685fyvmj1tfyp13c0000gp/T/lit-tmp-oazpj6yh/cc-b14622.o" 
"-lto_library" "/Users/leandro.lupori/home/git/flang/build/lib/libLTO.dylib" 
"-no_deduplicate" "-dynamic" "-arch" "arm64" "-platform_version" "macos" 
"15.0.0" "15.0.0" "-syslibroot" 
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk" "-mllvm" 
"-enable-linkonceodr-outlining" "-o" "a.out" 
"/var/folders/dn/0khgdg49685fyvmj1tfyp13c0000gp/T/lit-tmp-oazpj6yh/lto-lld-flags-df2d88.o"
 "-L/Users/leandro.lupori/home/git/flang/build/lib/clang/22/lib/darwin" 
"-L/Users/leandro.lupori/home/git/flang/build/lib" "-lflang_rt.runtime" 
"-lSystem" 
"/Users/leandro.lupori/home/git/flang/build/lib/clang/22/lib/darwin/libclang_rt.osx.a"
# | check:8'0     
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--
```

https://github.com/llvm/llvm-project/pull/158125
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to