compiler-explorer / compiler-explorer/infra
[Fortran][OpenMP] flang-new: error: cannot find -lomp: No such file or directory
- Dominant language
- Python
- Stars
- 434
- Forks
- 429
- Avg merge
- 4d 21h
- Merged PRs (30d)
- 38
Description
flang-new compiler fails to execute code with OpenMP directives. gfortran and ifx compilers seem to access libomp without any problem.
[godbolt link](https://godbolt.org/z/GPG5TT4nd)
> /usr/bin/ld: cannot find -lomp: No such file or directory
flang-new: error: linker command failed with exit code 1 (use -v to see invocation)
Contributor guide
Research direction
Start by reproducing the OpenMP failure using the linked Godbolt example and the flang-new compiler setup in this infrastructure repository. Trace why the linker cannot locate libomp, then verify that the example links and runs successfully with flang-new, as it does with gfortran and ifx.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- fortran
- Domain
- compilers, infrastructure
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100