Bug 2321571

Summary: flang-19.1.0-1.fc41missing omp_lib.mod
Product: [Fedora] Fedora Reporter: Brad King <brad.king>
Component: flangAssignee: Timm Bäder <tbaeder>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 41CC: fedora-llvm-team, kkleine, npopov, sergesanspaille, tstellar, tuliom
Target Milestone: ---Flags: tstellar: mirror+
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: flang-19.1.0-2.fc41 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2338955 (view as bug list) Environment:
Last Closed: 2024-11-09 01:44:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Brad King 2024-10-24 18:54:13 UTC
On Fedora 40, the flang-18.1.6-1.fc40 package provides a /usr/include/flang/omp_lib.mod file that's needed for:

    $ cat test.f90
    program test
      use omp_lib
      implicit none
      integer :: n
      n = omp_get_num_threads()
    end program
    $ flang-new -fopenmp test.f90

On Fedora 41, the flang-19.1.0-1.fc41 package does not provide the file:

    $ flang-new -fopenmp test.f90
    ...
    ./test.f90:2:7: error: Cannot read module file for module 'omp_lib':
       Source file 'omp_lib.mod' was not found


Reproducible: Always

Comment 1 Fedora Update System 2024-10-31 10:32:01 UTC
FEDORA-2024-5e2398a24a (flang-19.1.0-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-5e2398a24a

Comment 2 Fedora Update System 2024-11-01 01:35:33 UTC
FEDORA-2024-5e2398a24a has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5e2398a24a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5e2398a24a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Brad King 2024-11-01 12:24:53 UTC
I updated to `flang` version `19.1.0-2.fc41` via FEDORA-2024-5e2398a24a and can confirm the problem is fixed, thanks!

Comment 4 Fedora Update System 2024-11-09 01:44:44 UTC
FEDORA-2024-5e2398a24a (flang-19.1.0-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.