Bug 2267221 - F39 -> F40 upgrade fail
Summary: F39 -> F40 upgrade fail
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: flang
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tulio Magno Quites Machado Filho
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-03-01 09:08 UTC by Cristian Le
Modified: 2024-03-06 13:30 UTC (History)
5 users (show)

Fixed In Version: flang-18.1.0~rc4-2.fc41
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-03-04 17:14:15 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Cristian Le 2024-03-01 09:08:01 UTC
Following the instructions in the upgrade test mail [1]. I get an upgrade failure:
```
Error: 
 Problem: package flang-devel-17.0.6-1.fc39.x86_64 from @System requires flang(x86-64) = 17.0.6-1.fc39, but none of the providers can be installed
  - flang-17.0.6-1.fc39.x86_64 from @System  does not belong to a distupgrade repository
  - problem with installed package flang-devel-17.0.6-1.fc39.x86_64
```

[1]: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/QCCBNBE37AJ3QCQHFMCRK2M34UNJ4JJV/#PZZOMFA7I4HRWE6DXTCYD4U6CKFELZBD

Reproducible: Always

Steps to Reproduce:
```
sudo dnf install flang-devel
sudo dnf --releasever=40 --setopt=module_platform_id=platform:f40 --enablerepo=updates-testing $(rpm -q fedora-repos-modular >/dev/null && echo --enablerepo=updates-testing-modular) --assumeno distro-sync
```

Comment 1 Tulio Magno Quites Machado Filho 2024-03-01 15:19:03 UTC
I proposed a fix in https://src.fedoraproject.org/rpms/flang/pull-request/18

Thanks for reporting this!

Comment 2 Fedora Update System 2024-03-04 17:08:49 UTC
FEDORA-2024-ae5d9947cc (flang-18.1.0~rc4-2.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-ae5d9947cc

Comment 3 Fedora Update System 2024-03-04 17:14:15 UTC
FEDORA-2024-ae5d9947cc (flang-18.1.0~rc4-2.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Cristian Le 2024-03-04 18:22:35 UTC
I have tried to run
```
$ sudo dnf --releasever=41 --setopt=module_platform_id=platform:f41 --enablerepo=updates-testing $(rpm -q fedora-repos-modular >/dev/null && echo --enablerepo=updates-testing-modular) --assumeno distro-sync
```

But I still got an error of
```
Error: 
 Problem: package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRAnalysis.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRBuilder.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRCodeGen.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRDialect.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRDialectSupport.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRSupport.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRTestAnalysis.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFIRTransforms.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranCommon.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranDecimal.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranEvaluate.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranLower.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranParser.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranRuntime.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libFortranSemantics.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libHLFIRDialect.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libHLFIRTransforms.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libflangFrontend.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires libflangFrontendTool.so.17()(64bit), but none of the providers can be installed
  - package flang-devel-17.0.6-1.fc39.x86_64 from @System requires flang(x86-64) = 17.0.6-1.fc39, but none of the providers can be installed
  - flang-17.0.6-1.fc39.x86_64 from @System  does not belong to a distupgrade repository
  - problem with installed package flang-devel-17.0.6-1.fc39.x86_64
(try to add '--skip-broken' to skip uninstallable packages)
```

I guess the LLVM part was not updated yet?

Comment 5 Tulio Magno Quites Machado Filho 2024-03-04 20:36:07 UTC
I reproduced the issue here.
I don't think this fix reached the testing repository yet because in my test flang-18.1.0~rc4-2 was not listed.

I suggest to run this test again tomorrow and see if flang-18.1.0~rc4-2.fc41 reaches the repository.

Comment 6 Tulio Magno Quites Machado Filho 2024-03-05 14:00:08 UTC
For the record, I tested it again from rawhide and the package still has not reached the repos:

# dnf --refresh --enablerepo=updates-testing info flang | grep Source
Source       : flang-18.1.0~rc4-1.fc41.src.rpm
Source       : flang-18.1.0~rc4-1.fc41.src.rpm

Comment 7 Tulio Magno Quites Machado Filho 2024-03-05 18:52:04 UTC
The fix reached the repository and I can finally see this:

 flang                                   x86_64       18.1.0~rc4-2.fc41                   updates        32 M
     replacing  flang-devel.x86_64 17.0.6-1.fc39

Without errors now.

Thanks Cristian!

Comment 8 Cristian Le 2024-03-06 13:30:42 UTC
I can confirm both F40 and F41 dry-run upgrades seem to work now and it points to the new `flang`. Thanks for working on this fix.


Note You need to log in before you can comment on or make changes to this bug.