You are not logged in.

#1 2012-07-12 06:51:20

Corvin
Member
From: Poland, Gdansk
Registered: 2006-02-12
Posts: 68

cyclic dependency problem

I've got something like that: I don't have english locale so I'll translate it.

warning: cycle dependency encountered:
warning: lib32-gcc-libs will be installed before dependency of  gcc-libs-multilib
looking for conflicts:...
error:  can't prepare transaction (can't resolve dependency)
:: gcc: demands gcc-libs=4.7.1-4


could devs help?

Offline

#2 2012-07-12 08:02:25

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: cyclic dependency problem

Corvin wrote:

could devs help?

Not unless you give the actual command you are trying to run...

Offline

#3 2012-07-12 10:22:43

tomegun
Developer
From: France
Registered: 2010-05-28
Posts: 661

Re: cyclic dependency problem

Corvin wrote:

I don't have english locale so I'll translate it.

If you want to paste the output from a command <cmd> and you have a non-English locale, you can do.

LC_ALL=C <cmd>

Offline

#4 2012-07-12 20:59:07

satwik
Member
Registered: 2012-07-12
Posts: 2

Re: cyclic dependency problem

I'm facing the same problem. Running pacman -Su gives:

:: Starting full system upgrade...
resolving dependencies...
warning: dependency cycle detected:
warning: lib32-gcc-libs will be installed before its gcc-libs-multilib dependency
looking for inter-conflicts...
error: failed to prepare transaction (could not satisfy dependencies)
:: gcc: requires gcc-libs=4.7.1-4

Offline

#5 2012-07-12 22:03:26

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: cyclic dependency problem

It's strange that you would get that on an upgrade. It seems you have a mix of multilib and normal compiler programs.

Assuming you have a 64 bit system:
Normally, you either have gcc, gcc-libs and binutils, which allows you to compile only for 64 bit processors. Alternatively, you can have the multilib variants (gcc-multilib, gcc-libs-multilib and binutils-multilib) which allow you to compile both for 64 bit and 32 bit processors.

Note that lib32-... libraries are used to run 32 bit programs on a 64 bit processor. Also note that there are many other packages containing compilers.

To conclude: to fix the issue you are encountering you should either replace the multilib packages by normal ones (by installing gcc-libs) or replace the normal compiler packages by their multilib equivalents (by installing gcc-multilib).

Offline

#6 2012-07-13 00:48:20

jpablo
Arch Linux f@h Team Member
Registered: 2007-07-19
Posts: 22

Re: cyclic dependency problem

I'm having the same issue here, any solutions?

Offline

#7 2012-07-13 02:20:57

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: cyclic dependency problem

Ah...  you are all using multilib but have gcc installed and not gcc-multilib...

pacman -Syu gcc-multilib

Offline

#8 2012-07-13 06:26:33

Terminator
Member
From: Belgium
Registered: 2012-05-07
Posts: 265

Re: cyclic dependency problem

Allan wrote:

Ah...  you are all using multilib but have gcc installed and not gcc-multilib...

pacman -Syu gcc-multilib

They currently can't upgrade, so pacman -S gcc-multilib smile.

Offline

#9 2012-07-13 08:50:44

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: cyclic dependency problem

Terminator wrote:
Allan wrote:

Ah...  you are all using multilib but have gcc installed and not gcc-multilib...

pacman -Syu gcc-multilib

They currently can't upgrade, so pacman -S gcc-multilib smile.

Right....    well, in fact, wrong....

Offline

#10 2012-07-13 16:29:51

Kooothor
Member
From: Paname
Registered: 2008-08-02
Posts: 228

Re: cyclic dependency problem

Allan wrote:

pacman -Syu gcc-multilib

Thank you, this did the trick smile
(removing binutils and gcc btw)

Terminator wrote:

To conclude: to fix the issue you are encountering you should either replace the multilib packages by normal ones (by installing gcc-libs) or replace the normal compiler packages by their multilib equivalents (by installing gcc-multilib).

Thanks for the enlightement !

Last edited by Kooothor (2012-07-13 16:30:23)


ktr

Offline

#11 2012-07-13 23:53:38

satwik
Member
Registered: 2012-07-12
Posts: 2

Re: cyclic dependency problem

Thanks! That fixed it. Removed gcc in favor of the multilib versions.

Offline

Board footer

Powered by FluxBB