compiler-explorer / compiler-explorer/infra

[Fortran][OpenMP] flang-new: error: cannot find -lomp: No such file or directory

Open
#1,414 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.