flang requires openmp-extras, which is missing in the dependency
Description:
The package misses the dependency on openmp-extras, thus flang cannot compile any file even if OpenMP is disabled.
Additional info:
- package version(s): 6.0.2-1
- config and/or log files:
- link to upstream bug report, if any: I tried
yay -S openmp-extrasbut it failed (https://github.com/rocm-arch/rocm-arch/issues/987)
Steps to reproduce:
$ yay -S rocm-llvm
$ touch a.f90
$ /opt/rocm/lib/llvm/bin/flang -c a.f90
flang: warning: flang1 not found, 'openmp-extras' package from ROCm may be missing. [-Winvalid-command-line-argument]
flang: warning: flang2 not found, 'openmp-extras' package from ROCm may be missing. [-Winvalid-command-line-argument]
flang: error: unable to execute command: Executable "flang1" doesn't exist!
OTOH clang can compile a C file (without OpenMP):
$ echo 'int main() {}' | /opt/rocm/lib/llvm/bin/clang -x c -
$ echo $?
0