You are not logged in.

#1 2017-05-30 11:28:24

zaxdan69
Member
Registered: 2016-06-04
Posts: 98

conflict with gcc-libs and gcc-libs-multilib on latest update

I couldn't update today because of conflict with gcc-libs. I removed gcc-libs-multilib to be able to do the update but now I cannot reinstall gcc-libs-multilib.
I get the error:

resolving dependencies...
looking for conflicting packages...
:: gcc-libs-multilib and gcc-libs are in conflict. Remove gcc-libs? [y/N] y
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: removing gcc-libs breaks dependency 'gcc-libs=7.1.1-2'

How to solve this?

Offline

#2 2017-05-30 11:46:13

funkmuscle
Member
Registered: 2006-02-09
Posts: 527

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

same here.. no warning about the upgrade on the main page either.

Offline

#3 2017-05-30 12:19:38

llawwehttam
Member
From: United Kingdom
Registered: 2010-01-19
Posts: 181
Website

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Same problem here. This has happened before and is usually fixed once the gcc-libs-multilib package is updated.


NERD in Training :: Please be Gentle tongue

Offline

#4 2017-05-30 12:43:44

Morn
Member
Registered: 2012-09-02
Posts: 517

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

I fixed it by installing gcc-multilib instead of gcc.

Offline

#5 2017-05-30 12:52:50

funkmuscle
Member
Registered: 2006-02-09
Posts: 527

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

strange. I've done that way back I thought when I installed gcc-multilib as I use wine.
I didn't think they both could be installed at the same time.

Offline

#6 2017-05-30 13:00:46

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,088

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Take a look at pacman -Qs gcc, make sure you're either all multilib or all not.

Offline

#7 2017-05-30 13:11:19

funkmuscle
Member
Registered: 2006-02-09
Posts: 527

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

$ sudo pacman -Qs gcc
local/gcc-fortran 6.3.1-2
    Fortran front-end for GCC
local/gcc-libs-multilib 6.3.1-2
    Runtime libraries shipped by GCC for multilib
local/gcc-multilib 6.3.1-2 (multilib-devel)
    The GNU Compiler Collection - C and C++ frontends for multilib
local/gcc5 5.4.0-1
    The GNU Compiler Collection (5.x.x)
local/lib32-gcc-libs 6.3.1-2
    Runtime libraries shipped by GCC (32-bit)
local/libgsystem 2015.2+4+gd606bec-1
    "Copylib" for system service modules using GLib with GCC
local/mingw-w64-gcc 6.3.1-1 (mingw-w64-toolchain mingw-w64)
    Cross GCC for the MinGW-w64 cross-compiler

Offline

#8 2017-05-30 13:17:02

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,088

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

So gcc-fortran is your problem. gcc-*-multilib is all or nothing.

Offline

#9 2017-05-30 13:48:02

funkmuscle
Member
Registered: 2006-02-09
Posts: 527

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Yes that was the cure for me. Thank you so much!
I thought once installing anything from multilib it would remove any other versions? When I did switch two using wine it did say it was removing everything and replacing it with the multilib versions.
This now may explain a few other problems I was having. Hopefully this solves them all.

Offline

#10 2017-05-30 16:34:12

lnxsurf
Member
Registered: 2014-05-28
Posts: 68

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Hi,
I have the same problem with the update... Should I remove gcc by installing gcc-multilib?

$ pacman -Qs gcc
local/gcc 6.3.1-2 (base-devel)
    The GNU Compiler Collection - C and C++ frontends
local/gcc-libs-multilib 6.3.1-2
    Runtime libraries shipped by GCC for multilib
local/lib32-gcc-libs 6.3.1-2
    Runtime libraries shipped by GCC (32-bit)

Offline

#11 2017-05-30 17:33:55

Scimmia
Bug Wrangler
Registered: 2012-09-01
Posts: 7,088

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

lnxsurf wrote:

Hi,
I have the same problem with the update... Should I remove gcc by installing gcc-multilib?

Scimmia wrote:

make sure you're either all multilib or all not.

Scimmia wrote:

gcc-*-multilib is all or nothing.

Offline

#12 2017-05-30 17:46:37

JonnyRobbie
Member
Registered: 2015-04-28
Posts: 143

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Yeah. Same issue. Installing `gcc-fortran-multilib` and replacing `gcc-fortran` worked. But shouldn't there be some dependency checks so errors like those don't happen?

Offline

#13 2017-05-30 18:03:53

lnxsurf
Member
Registered: 2014-05-28
Posts: 68

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Thanks it worked for me.

Offline

#14 2017-05-30 18:23:51

Ropid
Member
Registered: 2015-03-09
Posts: 454

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

JonnyRobbie wrote:

Yeah. Same issue. Installing `gcc-fortran-multilib` and replacing `gcc-fortran` worked. But shouldn't there be some dependency checks so errors like those don't happen?

There are checks when you install stuff. I can't install gcc-fortran because there's conflicts. I can only install gcc-fortran-multilib. You guys might have forced pacman to ignore dependencies at some point in the past?

I get a prompt like this when I try to install gcc-fortran:

$ sudo pacman -S gcc-fortran
resolving dependencies...
looking for conflicting packages...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] 

As an experiment, I'll force the installation by adding a "-d":

$ sudo pacman -Sd gcc-fortran
resolving dependencies...
looking for conflicting packages...

Package (1)       New Version  Net Change  Download Size

core/gcc-fortran  7.1.1-2       24.80 MiB       7.36 MiB

Total Download Size:    7.36 MiB
Total Installed Size:  24.80 MiB

:: Proceed with installation? [Y/n] 

Now, after it is installed, there are no checks done anymore. I can do for example "pacman -Syu", can install or remove other stuff with "pacman -S ..." and "pacman -Rs ...", and pacman won't complain. I think it might decide to complain by itself when a package that's involved gets updated, but I don't know for sure.

What you can do is, you can tell pacman to search for problems with "pacman -Dk":

$ pacman -Dk
error: missing 'gcc=7.1.1-2' dependency for 'gcc-fortran'

It doesn't really tell you what you have to do now. You'll have to think this through yourself. You could try to install that missing gcc dependency at this point:

$ sudo pacman -S gcc
resolving dependencies...
looking for conflicting packages...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] 

At this point you'll see multilib stuff mentioned and might get an idea about what's up. Looking at the output of "pacman -Qi ..." for the involved installed packages, and "pacman -Si ..." for the not-installed ones should normally help, but I don't think it does in this case here as there's a million packages depending on gcc-libs-multilib so you'll overlook the gcc-multilib in there.

Offline

#15 2017-05-31 08:10:17

ArchDoctor_needed
Member
Registered: 2017-05-31
Posts: 7

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Hi,

I had the same problem. Thanks a lot for the information.
Following fixed it for me:

$ sudo pacman -S gcc-fortran
resolving dependencies...
looking for conflicting packages...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] y

Packages (4) gcc-7.1.1-2  gcc-libs-7.1.1-2  gcc-libs-multilib-6.3.1-2 [removal]  gcc-fortran-7.1.1-2

Total Download Size:    53.72 MiB
Total Installed Size:  231.34 MiB
Net Upgrade Size:       17.11 MiB

:: Proceed with installation? [Y/n]

Offline

#16 2017-05-31 09:50:57

alexpe87
Member
Registered: 2013-08-19
Posts: 12

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

For me the removal of "gcc-fortran" helped.

sudo pacman -S gcc-fortran-multilib

(when asked to remove / replace the old gcc-fortran with gcc-fortran-multilib, everything resolved quickly.

Offline

#17 2017-05-31 13:13:00

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

I can confirm this happened to me as well. I removed gcc, updated everything, then re-installed gcc. Works for me.

Last edited by JohnBobSmith (2017-05-31 13:13:13)


I have been diagnosed with Bipolar Disorder. As it turns out what I thought was once my greatest enemy is now my greatest strength is still my greatest enemy...
As of October 2018, I no longer feel disabled. I never thought this day would come. Go me. smile

Offline

#18 2017-06-01 20:16:08

kozaki
Member
From: London >. < Paris
Registered: 2005-06-13
Posts: 670
Website

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Faced the same dependency error for the last couple of days. Must have installed some package requiring gcc-libs-multilib back in the days but I couldn't remember which one, only that I uninstalled it after. Then I went the wrong way: removed `gcc-libs-multilib`... must have had my brain on the Off switch :} Not proud of that, but here are the steps I did to recover.

Summary: put my brain ON before "solving" a dependency conflict with pacman.

% pacman -Syu

==> Package upgrade only (new release):
(...)
multilib/lib32-glibc         2.25-1       1 -> 3

==> Software upgrade (new version) :
core/gcc                     6.3.1-2      -> 7.1.1-2
(...)
multilib/gcc-libs-multilib   6.3.1-2      -> 7.1.1-3
multilib/lib32-gcc-libs      6.3.1-2      -> 7.1.1-3

==> New package :
core/gcc-libs                7.1.1-2      (required by blas)

==> Continue upgrade ? [Y/n]
==> [V]iew package detail   [M]anually select packages
==> --------------------------------------------------
==> 
:: Starting full system upgrade...
warning: ruby-public_suffix: local (2.0.5-2) is newer than community (2.0.5-1)
resolving dependencies...
looking for conflicting packages...
warning: removing 'gcc-libs' from target list because it conflicts with 'gcc-libs-multilib'
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=7.1.1-2
% pacman -Rdd gcc-libs-multilib

Paquet (1)         Old version  net change

gcc-libs-multilib  6.3.1-2               -78,44 MiB

Taille totale supprimée :  78,44 MiB

:: Voulez-vous désinstaller ces paquets ? [O/n] 
:: Exécution des crochets de pré-transaction...
(1/1) Removing old entries from the info directory file...
:: Traitement des changements du paquet...
(1/1) désinstallation de gcc-libs-multilib

Now I had pacman (as well as most of my system) borken:

% pacman -Qii gcc-libs
pacman: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

pacman -U /path_to/gcc-libs-multilib-7.1.1-3-x86_64.pkg.tar.xz 
package-query: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
pacman: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
pacman: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

Downloaded and unarchived the latest version of gcc-libs-multilib-7.1.1-3 pkg, then carefully copied all its file into the system directories. Thereafter I recovered pacman:

% pacman -Qs gcc
local/gcc 6.3.1-2 (base-devel)
    The GNU Compiler Collection - C and C++ frontends
local/lib32-gcc-libs 6.3.1-2
    Runtime libraries shipped by GCC (32-bit)

No packages requiring `lib32-gcc-libs` so remove it:

% pacman -Rns lib32-gcc-libs
checking dependencies...

Package (2)     Old Version  Net Change

lib32-glibc     2.25-1       -14.19 MiB
lib32-gcc-libs  6.3.1-2      -49.85 MiB

Total Removed Size:  64.05 MiB

:: Do you want to remove these packages? [Y/n] 
:: Processing package changes...
(1/2) removing lib32-gcc-libs                                                       [------------------------------------------------] 100%
(2/2) removing lib32-glibc                                                          [------------------------------------------------] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
error: missing 'gcc-libs' dependency for 'aspell'
error: missing 'gcc-libs' dependency for 'audiofile'
error: missing 'gcc-libs' dependency for 'blas'
(...)

% pacman -S --force gcc-libs      # first time I've use the dreadful '--force' option, as I believe it was the only way to properly install gcc-libs at this point??

% ==> Package upgrade only (new release):
core/binutils                2.28.0-2     2 -> 3
core/glibc                   2.25-1       1 -> 2
(...)
==> Software upgrade (new version) :
core/gcc                     6.3.1-2      -> 7.1.1-2
(...)
==> Continue upgrade ? [Y/n]

(...) --> system update went all fine.

Tell pacman to search for problems:

% pacman -Dk

Take a look at pacman -Qs gcc, make sure you're either all multilib or all not:

% pacman -Qs gcc
local/gcc 7.1.1-2 (base-devel)
    The GNU Compiler Collection - C and C++ frontends
local/gcc-libs 7.1.1-2 (base)
    Runtime libraries shipped by GCC

Last edited by kozaki (2017-06-01 20:19:28)


Seeded last month: Arch 50 gig, derivatives 1 gig
Desktop @3.3GHz 8 gig RAM, linux-ck
laptop #1 Atom 2 gig RAM, Arch linux stock i686 (6H w/ 6yrs old battery smile) #2: ARM Tegra K1, 4 gig RAM, ChrOS
Atom Z520 2 gig RAM, OMV (Debian 7) kernel 3.16 bpo on SDHC | PGP Key: 0xFF0157D9

Offline

#19 2017-06-23 23:39:34

nemofin
Member
Registered: 2016-11-30
Posts: 3

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

Just happened to me, thankfully found this thread. Issue was that (as stated above) I had a mix of gcc-libs and gcc-libs-multilibs installed, and couldn't update. Fixed by uninstalling the software that was dependant on the multilibs (GNAT GPS) as it was no longer used. There's certainly more elegant solutions above though.

Offline

#20 2017-09-22 11:40:52

wudu
Member
Registered: 2010-03-08
Posts: 79

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

I was affected, too. Thanks for the gcc-libs-multilib tip.

Offline

#21 2017-09-22 13:30:23

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: conflict with gcc-libs and gcc-libs-multilib on latest update

I am glad you all find this thread helpful but no need to post just to say thanks. (Fell free to PM Scimmia privately if you want to express your thanks.)

https://wiki.archlinux.org/index.php/Co … mpty_posts


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB