You are not logged in.

#1 2012-10-09 10:39:57

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

I have gcc-multilib on my system as i need to be able to build lib32- packages .
Pacman -Syu gave me this warning this morning :
gcc-libs conflicts with gcc-libs-multilib , remove gcc-libs-multib ?

I answered no ofcourse and the update was aborted due to file conflicts.

running pacman -Syu --ignore gcc-libs    gave the cause of the conflicts : gcc-objc .
i temporarily removed gcc-objc , and could update all other packages, including a new kernel.

after updating i attempted to re-install gcc-objc :

# pacman -S gcc-objc
resolving dependencies...
looking for inter-conflicts...
:: gcc-libs and gcc-libs-multilib are in conflict. Remove gcc-libs-multilib? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-libs and gcc-libs-multilib are in conflict
pacman -Si gcc-objc
Repository     : core
Name           : gcc-objc
Version        : 4.7.2-1
URL            : http://gcc.gnu.org
Licenses       : GPL  LGPL  FDL  custom
Groups         : None
Provides       : None
Depends On     : gcc=4.7.2-1
Optional Deps  : None
Conflicts With : None
Replaces       : None
Download Size  : 8370.00 KiB
Installed Size : 25636.00 KiB
Packager       : Allan McRae <allan@archlinux.org>
Architecture   : x86_64
Build Date     : Sun 07 Oct 2012 10:40:15 AM CEST
MD5 Sum        : 97a393e2b2fbf67a231866a3c675d1a3
SHA256 Sum     : c69f19fb8d291a0dd4505a8f1fb7b3499edba0854f96806b2c8a324126e8bac0
Signatures     : Yes
Description    : Objective-C front-end for GCC
# pacman -Si gcc-libs-multilib 
Repository     : multilib
Name           : gcc-libs-multilib
Version        : 4.7.1-6
URL            : http://gcc.gnu.org
Licenses       : GPL  LGPL  FDL  custom
Groups         : None
Provides       : gcc-libs=4.7.1-6
Depends On     : glibc>=2.16  lib32-gcc-libs=4.7.1-6
Optional Deps  : None
Conflicts With : gcc-libs
Replaces       : None
Download Size  : 766.57 KiB
Installed Size : 3024.00 KiB
Packager       : Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
Architecture   : x86_64
Build Date     : Sat 11 Aug 2012 12:00:00 PM CEST
MD5 Sum        : 65bb1041fb366867f6314878c6da9688
SHA256 Sum     : 72bcb9c2a59a6c5c3d838b6edb06dd4d1a8d5f69d3f37ee54edac867e3b57d7e
Signatures     : Yes
Description    : Runtime libraries shipped by GCC for multilib

So ggc-objc depends on gcc=7.4.2-1 , but gcc-libs-multilibs has not been updated yet to that version .

While i can understand the conflict, and the obvious workaround is to wait for gcc-libs-multilib to be updated, then reinstall gcc-objc i have some concerns :

The errror message pacman gives is technically correct, but doesn't point to the real cause .
If pacman would give a more descriptive  error like :
gcc_objc requires gcc=4.7.2-1 , install gcc-libs to provide this (y/N) ?
upon entering Yes, there would then be the message shown by pacman now, gcc-libs conflicts with gcc-libs-multilib, remove gcc-libs-multilib (y/N) ?
it would be a lot clearer where the problem lies .

-  gcc-libs and gcc-libs-multilib are separate packages, what happens if their version number differs for some reason ?
example : gcc-libs-multilib requires changes that are not needed for gcc-libs .
say we have gcc-libs 4.7.2-3 and gcc-libs-multilib 4.7.2-4 .
this will give exactly the same problem as now, but this time the workaround waiting for gcc-libs-multilb to be updated won't work .

I'm willing to create a bugreport, but am not sure which package to make the bugreport against :
gcc-objc, gcc-libs, gcc-libs-multilib ?
i'd like some input from other archers about this.

Note : seems i might have to do 2 bugreports, 1 for pacman to give more descriptive errors, 1 for the problem itself.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#2 2012-10-09 11:23:53

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

Install gcc-objc-multilib.

Offline

#3 2012-10-09 11:39:46

na12
Member
From: /home/serbia
Registered: 2008-12-23
Posts: 752

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

This is my problem with this update

┌╸dany╺─╸~╺
└─╍ pac -Su --ignore gcc-libs
[sudo] password for dany: 
:: Starting full system upgrade...
resolving dependencies...
warning: ignoring package gcc-libs-4.7.2-1
warning: cannot resolve "gcc-libs=4.7.2-1", a dependency of "gcc"
:: The following package cannot be upgraded due to unresolvable dependencies:
      libtool

Do you want to skip the above package for this upgrade? [y/N]

Offline

#4 2012-10-09 11:40:23

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

@Brain0 Didn't realise that existed since i haven't needed to use lib32 stuff for objc , thanks for the tip.

ok, that leaves the part about a more descriptive error for pacman.
Since i'm not  a coder and can't supply  a patch, is it worth it to start a request ? and should that be a feature request or a bug report ?



@ na12 :

install libtool-multilib ?

Last edited by Lone_Wolf (2012-10-09 11:43:06)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2012-10-09 11:48:00

madmack
Member
Registered: 2012-05-06
Posts: 13

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

same problem this morning. I removed gcc-multilib to complete the update, and now:

# pacman -S gcc-multilib
resolving dependencies...
looking for inter-conflicts...
:: gcc-libs-multilib and gcc-libs are in conflict. Remove gcc-libs? [y/N] n
error: unresolvable package conflicts detected
error: failed to prepare transaction (conflicting dependencies)
:: gcc-libs-multilib and gcc-libs are in conflict

Offline

#6 2012-10-09 12:04:23

KanocX
Member
From: Germany
Registered: 2012-04-16
Posts: 6

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

Same problem here... Waiting for an update of gcc-libs-multilib smile

Offline

#7 2012-10-09 12:29:01

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

You're doing it wrong: Once you install ONE of the -multilib compiler packages, you need to use all of them instead of the core packages. Everything else is not supported:

binutils-multilib
gcc-ada-multilib
gcc-fortran-multilib
gcc-go-multilib
gcc-libs-multilib
gcc-multilib
gcc-objc-multilib
libtool-multilib

Offline

#8 2012-10-09 13:00:19

KanocX
Member
From: Germany
Registered: 2012-04-16
Posts: 6

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

brain0 wrote:

You're doing it wrong: Once you install ONE of the -multilib compiler packages, you need to use all of them instead of the core packages. Everything else is not supported:

binutils-multilib
gcc-ada-multilib
gcc-fortran-multilib
gcc-go-multilib
gcc-libs-multilib
gcc-multilib
gcc-objc-multilib
libtool-multilib

That's right, but our yaourt/pacman wants to install gcc and gcc-libs instead of gcc-libs-multilib:

==> Package upgrade only (new release):
core/libltdl                    2.4.2-6        6 -> 7
core/libtool                    2.4.2-6        6 -> 7
extra/gstreamer0.10-bad         0.10.23-2      2 -> 3
extra/gstreamer0.10-bad-plugins 0.10.23-2      2 -> 3
extra/net-snmp                  5.7.1-3        3 -> 4

==> Software upgrade (new version) :
core/linux                      3.5.5-1        -> 3.5.6-1
core/linux-api-headers          3.5.1-1        -> 3.5.5-1
core/linux-headers              3.5.5-1        -> 3.5.6-1
extra/chromium                  22.0.1229.79-2 -> 22.0.1229.92-1

==> New package :
core/gcc-libs                   4.7.2-1        (required by gcc)
core/gcc                        4.7.2-1        (required by libtool)
extra/opus                      1.0.1-2        (required by gstreamer0.10-bad-plugins)
user@hostname:~$ pacman -Qs gcc
local/gcc-libs-multilib 4.7.1-6
    Runtime libraries shipped by GCC for multilib
local/gcc-multilib 4.7.1-6 (multilib-devel)
    The GNU Compiler Collection - C and C++ frontends for multilib
local/lib32-gcc-libs 4.7.1-6
    Runtime libraries shipped by GCC (32-bit)

Last edited by KanocX (2012-10-09 13:01:41)

Offline

#9 2012-10-09 13:08:40

Algunenano
Member
Registered: 2012-10-09
Posts: 1

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

You have to replace libtool with libtool-multilib.

Offline

#10 2012-10-09 13:14:17

KanocX
Member
From: Germany
Registered: 2012-04-16
Posts: 6

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

Algunenano wrote:

You have to replace libtool with libtool-multilib.

Ah, haven't seen this smile Thank you very much wink

Greetings,
KanocX

Offline

#11 2012-10-09 13:14:47

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

brain0 wrote:

You're doing it wrong: Once you install ONE of the -multilib compiler packages, you need to use all of them instead of the core packages. Everything else is not supported:

binutils-multilib
gcc-ada-multilib
gcc-fortran-multilib
gcc-go-multilib
gcc-libs-multilib
gcc-multilib
gcc-objc-multilib
libtool-multilib

I did install multilib-devel when i switched, but gcc-objc was already installed then.
since i only build x86_32 stuff with plain gcc,  i didn't realise i hadn't replaced gc--objc with it's multilib counterpart.

Can groups have optional dependencies ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#12 2012-10-09 16:21:33

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

Lone_Wolf wrote:

I did install multilib-devel when i switched, but gcc-objc was already installed then.
since i only build x86_32 stuff with plain gcc,  i didn't realise i hadn't replaced gc--objc with it's multilib counterpart.

Can groups have optional dependencies ?

There is no way to restrict this using pacman as far as I know. I just hope that it is described on the wiki somewhere.

Sadly, we need those packages to provide their non-multilib counterparts (preferably versioned), but only when a non-toolchain package depends on them.

Offline

#13 2012-10-17 18:49:43

speedyx
Member
From: Italy
Registered: 2008-09-05
Posts: 100
Website

Re: conflict between gcc-libs / gcc-libs-multilib (gcc-objc related)

Algunenano wrote:

You have to replace libtool with libtool-multilib.

Thank you very much!!

With

packer -S gcc-multilib libtool-multilib

I have solved the problem!!


I love archlinux: the last STABLE kernel release + the last STABLE DE release + the last STABLE apps releases. The upstream developers decide what is STABLE.

Offline

Board footer

Powered by FluxBB