[flang-commits] [flang] [flang] Disable test for PowerPC (PR #134249)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Thu Apr 3 21:18:01 PDT 2025


ergawy wrote:

> I'm also seeing a similar error on macOS. Running the failing test command manually, I get:
> 
> ```
> $ .../flang -fdo-concurrent-to-openmp=host /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/do_concurrent_to_omp_cli.f90
> warning: OpenMP is required for lowering `do concurrent` loops to OpenMP.Enable OpenMP using `-fopenmp`.`do concurrent` loops will be serialized.
> ld: library 'flang_rt.runtime' not found
> flang-21: error: linker command failed with exit code 1 (use -v to see invocation)
> ```
> 
> I think the problem is that, after the switch to flang-rt, flang is unable to find flang_rt.runtime by itself on macOS. I'm working around it with `-L/path/to/flang-rt`. I reported it here: [#127538 (comment)](https://github.com/llvm/llvm-project/issues/127538#issuecomment-2704569434)
> 
> Maybe the same issues exists for PowerPC.
> 
> About fixing the test, can't we just compile without linking? This works for me:
> 
> ```
> $ flang -v -fdo-concurrent-to-openmp=host -c /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/do_concurrent_to_omp_cli.f90
> flang version 21.0.0git (git at github.com:luporl/llvm-project.git 32dff270603bb2ea0f0002bf57d29c71319736d6)
> Target: arm64-apple-darwin24.3.0
> Thread model: posix
> InstalledDir: /Users/leandro.lupori/home/git/flang/build/bin
> Build config: +assertions
>  "/Users/leandro.lupori/home/git/flang/build/bin/flang" -fc1 -triple arm64-apple-macosx15.2.0 -emit-obj -fcolor-diagnostics -mrelocation-model pic -pic-level 2 -target-cpu apple-m1 -target-feature +zcm -target-feature +zcz -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 -fdo-concurrent-to-openmp=host -resource-dir /Users/leandro.lupori/home/git/flang/build/lib/clang/21 -mframe-pointer=non-leaf -o do_concurrent_to_omp_cli.o -x f95-cpp-input /Users/leandro.lupori/home/git/flang/llvm-project/flang/test/Driver/do_concurrent_to_omp_cli.f90
> warning: OpenMP is required for lowering `do concurrent` loops to OpenMP.Enable OpenMP using `-fopenmp`.`do concurrent` loops will be serialized.
> ```
> 
> EDIT: ignore the `-v` flag that I forgot to remove. The fix is to add `-c` only.

Thanks for the suggestion. Added the `-c` flag.

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


More information about the flang-commits mailing list