Bug 1513286 - dnf cannot upgrade compiler-rt x86_64 to 4.0.1-5.fc27
Summary: dnf cannot upgrade compiler-rt x86_64 to 4.0.1-5.fc27
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: compiler-rt
Version: 27
Hardware: x86_64
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Tom Stellard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1514446 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-11-15 05:33 UTC by mwh74box-fedora
Modified: 2018-11-30 23:21 UTC (History)
16 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-11-30 23:21:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description mwh74box-fedora 2017-11-15 05:33:55 UTC
Description of problem:
DNF is unable to upgrade to compiler-rt-4.0.1-5.fc27.x86_64
from compiler-rt-4.0.1-4.fc27.x86_64

Version-Release number of selected component (if applicable):


How reproducible:
So far I have only upgraded one Fedora 26 system to 27

Steps to Reproduce:
on a fedora 26 64bit system:
1. sudo dnf upgrade --refresh
2. sudo dnf system-upgrade download --releasever=27
3. sudo dnf system-upgrade reboot
after reboot and login:
4. sudo dnf update

Actual results:
Dependencies resolved.

 Problem: compiler-rt-4.0.1-4.fc27.i686 has inferior architecture
  - cannot install both compiler-rt-4.0.1-5.fc27.x86_64 and compiler-rt-4.0.1-4.fc27.x86_64
  - cannot install both compiler-rt-4.0.1-4.fc27.x86_64 and compiler-rt-4.0.1-5.fc27.x86_64
  - cannot install the best update candidate for package compiler-rt-4.0.1-4.fc27.i686
  - cannot install the best update candidate for package compiler-rt-4.0.1-4.fc27.x86_64
================================================================================
 Package             Arch           Version               Repository       Size
================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 compiler-rt         x86_64         4.0.1-5.fc27          updates         1.7 M

Transaction Summary
================================================================================
Skip  1 Package


Expected results:
update to latest x86_64 version of compiler-rt

Additional info:
Running:
dnf repoquery -i --installed compiler-rt
shows that the package came from fedora repository

Comment 1 Alexandre Singh 2017-11-15 16:33:53 UTC
Confirmed, same issue here after F26->F27 upgrade.

Comment 2 Bill Gianopoulos 2017-11-17 18:41:22 UTC
The issue here is that the updated compiler-rt.i686 package was not pushed to the fedora27 updates repository.  You are getting this error because you are trying to update the x86_64 package but there is no corresponding update package for the i686 architecture.

Comment 3 Bill Gianopoulos 2017-11-17 18:57:19 UTC
In any event I installed compiler-rt-4.0.1-5.fc27.i686.rpm from koji and all is well now.

Comment 4 Tom Stellard 2017-11-20 14:27:09 UTC
We had this same issue when the update was in the testing repo.  Maybe there is a bug in the update process that causes it to drop i686 packages from the x86_64 repos?  I can see the i686 builds in koji: https://koji.fedoraproject.org/koji/buildinfo?buildID=969740

Comment 5 Nemanja Andrejevic 2017-11-25 10:56:50 UTC
I have the same issue but it's for two packages:

[root@localhost nemanja]# dnf update
Last metadata expiration check: 0:05:36 ago on Sat 25 Nov 2017 11:46:21 AM CET.
Dependencies resolved.

 Problem 1: compiler-rt-4.0.1-4.fc27.i686 has inferior architecture
  - cannot install both compiler-rt-4.0.1-5.fc27.x86_64 and compiler-rt-4.0.1-4.fc27.x86_64
  - cannot install both compiler-rt-4.0.1-4.fc27.x86_64 and compiler-rt-4.0.1-5.fc27.x86_64
  - cannot install the best update candidate for package compiler-rt-4.0.1-4.fc27.i686
  - cannot install the best update candidate for package compiler-rt-4.0.1-4.fc27.x86_64
 Problem 2: package mariadb-connector-c-3.0.2-15.fc27.x86_64 requires mariadb-libs, but none of the providers can be installed
  - installed package mysql-community-libs-compat-5.7.20-1.fc26.x86_64 obsoletes mariadb-libs provided by mariadb-libs-3:10.2.9-3.fc27.i686
  - installed package mysql-community-libs-compat-5.7.20-1.fc26.x86_64 obsoletes mariadb-libs provided by mariadb-libs-3:10.2.9-3.fc27.x86_64
  - cannot install the best update candidate for package mariadb-connector-c-3.0.2-4.fc27.x86_64
  - problem with installed package mysql-community-libs-compat-5.7.20-1.fc26.x86_64
===================================================================================================================================================================================================================
 Package                                                   Arch                                         Version                                                Repository                                     Size
===================================================================================================================================================================================================================
Skipping packages with conflicts:
(add '--best --allowerasing' to command line to force their upgrade):
 compiler-rt                                               x86_64                                       4.0.1-5.fc27                                           updates                                       1.7 M
Skipping packages with broken dependencies:
 mariadb-connector-c                                       x86_64                                       3.0.2-15.fc27                                          updates                                       9.8 k

Transaction Summary
===================================================================================================================================================================================================================
Skip  2 Packages

Nothing to do.
Complete!

Comment 6 Bill Gianopoulos 2017-11-25 12:57:57 UTC
OK so I have run into this on a few packages and what the real issue is here is that there has been an attempt to lower the number of i686 packages included with 64-bit installs.  This is a laudable goal. The current thing is to define what are multi-lib packages and only provide i686 versions of those.  THe problem here is with packages that are multi-lib which are dependent on packages that do not meet the multilib criteria.

The packages I have frun into are clang-libs.i686  which is dependent on compier-rt.i686 no longer provided  and libpng-devel.i686 , pango-devel.i686 and freetype-devel.i686 which are directly or indirectly dependent on pkgconfig.i686.

and it seems comment 5 points out other such dependency issues.

Comment 7 Tom Stellard 2017-12-04 17:49:31 UTC
(In reply to Bill Gianopoulos from comment #6)
> OK so I have run into this on a few packages and what the real issue is here
> is that there has been an attempt to lower the number of i686 packages
> included with 64-bit installs.  This is a laudable goal. The current thing
> is to define what are multi-lib packages and only provide i686 versions of
> those.  THe problem here is with packages that are multi-lib which are
> dependent on packages that do not meet the multilib criteria.
> 

Is it necessary to explicitly mark a package as being a multi-lib package?  If so, how do I do this?

Comment 8 Benton Stark 2018-01-11 14:57:04 UTC
I had the same issue when upgrading from f25 to f27 as shown below.  The solution for me was to remove and then re-install compiler-rt and any dependencies that were removed with compiler-rt.

$ sudo dnf update
Problem: compiler-rt-4.0.1-4.fc27.i686 has inferior architecture
  - cannot install both compiler-rt-4.0.1-5.fc27.x86_64 and compiler-rt-4.0.1-4.fc27.x86_64
  - cannot install both compiler-rt-4.0.1-4.fc27.x86_64 and compiler-rt-4.0.1-5.fc27.x86_64
  - cannot install the best update candidate for package compiler-rt-4.0.1-4.fc27.i686
  - cannot install the best update candidate for package compiler-rt-4.0.1-4.fc27.x86_64



$ sudo dnf remove compiler-rt
Dependencies resolved.
===================================================================================================================================================================================================================
 Package                                              Arch                                      Version                                                     Repository                                        Size
===================================================================================================================================================================================================================
Removing:
 compiler-rt                                          i686                                      4.0.1-4.fc27                                                @@commandline                                     15 M
 compiler-rt                                          x86_64                                    4.0.1-4.fc27                                                @@commandline                                     18 M
Removing dependent packages:
 beignet                                              x86_64                                    1.3.2-1.fc27                                                @@commandline                                     18 M
 clang-libs                                           i686                                      4.0.1-5.fc27                                                @@commandline                                     45 M
 clang-libs                                           x86_64                                    4.0.1-5.fc27                                                @@commandline                                     45 M
 mesa-libOpenCL                                       i686                                      17.2.4-2.fc27                                               @@commandline                                    1.9 M
 mesa-libOpenCL                                       x86_64                                    17.2.4-2.fc27                                               @@commandline                                    2.0 M
 pocl                                                 x86_64                                    0.14-4.fc27                                                 @@commandline                                    189 M
Removing unused dependencies:
 hwloc-libs                                           x86_64                                    1.11.5-6.fc27                                               @@commandline                                    2.1 M
 libclc                                               i686                                      0.2.0-9.git1cb3fbf.fc27                                     @@commandline                                     37 M
 libclc                                               x86_64                                    0.2.0-9.git1cb3fbf.fc27                                     @@commandline                                     37 M
 opencl-filesystem                                    noarch                                    1.0-6.fc27                                                  @@commandline                                      0 

Transaction Summary
===================================================================================================================================================================================================================
Remove  12 Packages


Next I had to re-install compiler-rt and the dependent packages that dnf uninstalled with compiler-rt.
$ sudo dnf install compiler-rt -y
$ sudo dnf install beignet clang-libs mesa-libOpenCL pocl -y


$ sudo dnf update
Last metadata expiration check: 0:30:11 ago on Thu 11 Jan 2018 09:11:25 AM EST.
Dependencies resolved.
Nothing to do.
Complete!

Last was a reboot to verify everything is still working as expected.

Comment 9 Tom Stellard 2018-01-19 16:28:41 UTC
*** Bug 1514446 has been marked as a duplicate of this bug. ***

Comment 10 Tom Stellard 2018-01-19 16:36:06 UTC
I've requested that compiler-rt be marked as a multilib package:
https://pagure.io/pungi-fedora/issue/501

Comment 11 Nerijus Baliūnas 2018-01-19 17:55:48 UTC
The workaround is to create fedora-updates-testing32.repo with baseurl=http://dl.fedoraproject.org/pub/fedora-secondary/updates/testing/$releasever/i386/ and then compiler-rt-5.0.1-2.fc27.i686.rpm is found.
BTW, there was no such problem when compiler-rt was updated to 5.0.0-1.fc27 a few days ago - both x86_64 and i686 versions were available at the same time in the same repo.

Comment 12 Andrew Schultz 2018-01-27 23:22:01 UTC
(In reply to Nerijus Baliūnas from comment #11)
> BTW, there was no such problem when compiler-rt was updated to 5.0.0-1.fc27
> a few days ago - both x86_64 and i686 versions were available at the same
> time in the same repo.

And now 5.0.1 from this update:

https://bodhi.fedoraproject.org/updates/FEDORA-2018-884ee4cdf4

has the same problem as before.

Comment 13 Tom Stellard 2018-01-29 14:41:52 UTC
(In reply to Andrew Schultz from comment #12)
> (In reply to Nerijus Baliūnas from comment #11)
> > BTW, there was no such problem when compiler-rt was updated to 5.0.0-1.fc27
> > a few days ago - both x86_64 and i686 versions were available at the same
> > time in the same repo.
> 
> And now 5.0.1 from this update:
> 
> https://bodhi.fedoraproject.org/updates/FEDORA-2018-884ee4cdf4
> 
> has the same problem as before.

Does passing --allowerasing to dnf fix this problem?

Comment 14 Nerijus Baliūnas 2018-01-29 14:58:58 UTC
If --allowerasing "fixes" the problem, it will be a workaround only. The problem is still not fixed:
# dnf reinstall compiler-rt.i686
Installed package compiler-rt-5.0.1-2.fc27.i686 not available.

There is no compiler-rt-5.0.1-2.fc27.i686 package accessible in 64 bit repos.

Comment 15 Andrew Schultz 2018-01-29 17:36:55 UTC
(In reply to Tom Stellard from comment #13)
> Does passing --allowerasing to dnf fix this problem?

--allowerasing does not fix the problem.  It just tries to remove compiler-rt.i686 (as the name would suggest).

Comment 16 Andrew Schultz 2018-02-03 21:07:56 UTC
I'll note that when this bug was filed, clang-libs.i686 required compiler-rt.i686 (and mesa required clang-libs and many packages required mesa).  The current version of clang-libs (5.0.1) does not require compiler-rt (and I don't have anything else installed that requires compiler-rt... even the x86_64 version).  Perhaps compiler-rt.i686 *should* not be included in the x86-64 repo.

Comment 17 Nerijus Baliūnas 2018-02-04 23:26:32 UTC
I can confirm compiler-rt.i686 can be uninstalled, it is not required anymore on my system too.

Comment 18 Ben Cotton 2018-11-27 13:53:05 UTC
This message is a reminder that Fedora 27 is nearing its end of life.
On 2018-Nov-30  Fedora will stop maintaining and issuing updates for
Fedora 27. It is Fedora's policy to close all bug reports from releases
that are no longer maintained. At that time this bug will be closed as
EOL if it remains open with a Fedora  'version' of '27'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 27 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 19 Ben Cotton 2018-11-30 23:21:49 UTC
Fedora 27 changed to end-of-life (EOL) status on 2018-11-30. Fedora 27 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


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