[clang] [flang] [llvm] [flang-rt] Pass the whole path of libflang_rt.runtime.a to linker on AIX and LoP (PR #131041)

Daniel Chen via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 3 15:12:01 PDT 2025


DanielCChen wrote:

@klausler It seems it passes for me on LoP after I pull the latest source. Could you please try again and see if you still run into the failure?

```
-- Testing: 1 tests, 1 workers --
PASS: Flang :: Driver/linker-flags.f90 (1 of 1)
Exit Code: 0

Command Output (stderr):
--
/scratch/cdchen/FLANG/build/bin/flang -### --target=ppc64le-linux-gnu /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,UNIX,UNIX-F128NONE # RUN: at line 5
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=ppc64le-linux-gnu /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,UNIX,UNIX-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=aarch64-apple-darwin /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,DARWIN,DARWIN-F128NONE # RUN: at line 6
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=aarch64-apple-darwin /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,DARWIN,DARWIN-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=sparc-sun-solaris2.11 /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,UNIX,SOLARIS-F128NONE # RUN: at line 7
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=sparc-sun-solaris2.11 /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,UNIX,SOLARIS-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-freebsd /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE # RUN: at line 8
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-freebsd /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-netbsd /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE # RUN: at line 9
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-netbsd /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-openbsd /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE # RUN: at line 10
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-openbsd /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-dragonfly /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE # RUN: at line 11
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-dragonfly /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,BSD,BSD-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-haiku /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,HAIKU,HAIKU-F128NONE # RUN: at line 12
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-unknown-haiku /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,HAIKU,HAIKU-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-windows-gnu /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,MINGW,MINGW-F128NONE # RUN: at line 13
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=x86_64-windows-gnu /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,MINGW,MINGW-F128NONE
/scratch/cdchen/FLANG/build/bin/flang -### -rtlib=compiler-rt --target=aarch64-linux-gnu /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,UNIX,COMPILER-RT # RUN: at line 14
+ /scratch/cdchen/FLANG/build/bin/flang -### -rtlib=compiler-rt --target=aarch64-linux-gnu /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,UNIX,COMPILER-RT
/scratch/cdchen/FLANG/build/bin/flang -### --target=aarch64-windows-msvc -fuse-ld= /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90 2>&1 | /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,MSVC --implicit-check-not oldnames # RUN: at line 19
+ /scratch/cdchen/FLANG/build/bin/flang -### --target=aarch64-windows-msvc -fuse-ld= /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/Inputs/hello.f90
+ /scratch/cdchen/FLANG/build/bin/FileCheck /scratch/cdchen/FLANG/llvm-project/flang/test/Driver/linker-flags.f90 --check-prefixes=CHECK,MSVC --implicit-check-not oldnames

--

********************

Testing Time: 0.11s

Total Discovered Tests: 1
  Passed: 1 (100.00%)
```

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


More information about the llvm-commits mailing list