You are not logged in.
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
same here.. no warning about the upgrade on the main page either.
Offline
Same problem here. This has happened before and is usually fixed once the gcc-libs-multilib package is updated.
Offline
I fixed it by installing gcc-multilib instead of gcc.
Offline
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
Take a look at pacman -Qs gcc, make sure you're either all multilib or all not.
Offline
$ 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
So gcc-fortran is your problem. gcc-*-multilib is all or nothing.
Offline
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
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
Hi,
I have the same problem with the update... Should I remove gcc by installing gcc-multilib?
make sure you're either all multilib or all not.
gcc-*-multilib is all or nothing.
Offline
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
Thanks it worked for me.
Offline
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
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
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
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 am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.
Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...
Offline
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 ) #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
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
I was affected, too. Thanks for the gcc-libs-multilib tip.
Offline
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.)
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline