Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Not able to emerge any package.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 513
Location: India

PostPosted: Mon Oct 05, 2015 2:28 pm    Post subject: Not able to emerge any package. Reply with quote

Hi Experts,

I need your help in an issue with emeger . Whenever I run emerge <package name> , it comes with the below error :-

Quote:

emerge -av dev-db/postgresql
--o/p suppressed--
[ebuild N ] sys-apps/file-5.22::gentoo USE="zlib -python -static-libs" A BI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python2_7 python3_4 -python3_3" 0 KiB
[ebuild N ] sys-libs/zlib-1.2.8-r1::gentoo USE="minizip -static-libs" A BI_X86="(64) -32 (-x32)" 0 KiB

Total: 68 packages (68 new), Size of downloads: 142,771 KiB

* Error: circular dependencies:

(sys-libs/zlib-1.2.8-r1:0/0::gentoo, ebuild scheduled for merge) depends on
(sys-devel/automake-1.15:1.15/1.15::gentoo, ebuild scheduled for merge) (buildt ime)
(dev-lang/perl-5.20.2:0/5.20::gentoo, ebuild scheduled for merge) (buildtime)
(sys-libs/zlib-1.2.8-r1:0/0::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- sys-libs/zlib-1.2.8-r1 (Change USE: -minizip)


Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles.
Several changes might be required to resolve all cycles.
Temporarily changing some use flag for all packages might be the better option.


So I tried to make changes with the /etc/portage/package.use file as below :-

Quote:

vim /etc/portage/package.use
-sys-libs/zlib-1.2.8-r1 -minizip


But still getting the same error. Need your help in fixing this.

Appreciate all your help in advance.
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 513
Location: India

PostPosted: Mon Oct 05, 2015 2:48 pm    Post subject: Reply with quote

So, I got little success . I changed the package.use file as below :-

Quote:
/etc/portage/package.use
-sys-libs/zlib-1.2.8-r1 minizip


However, now when I run emerge -av dev-db/postgresql, I get the below error :-
Quote:
--o/p suppressed --

* Error: circular dependencies:

(sys-libs/db-4.8.30-r2:4.8/4.8::gentoo, ebuild scheduled for merge) depends on
(sys-devel/automake-1.15:1.15/1.15::gentoo, ebuild scheduled for merge) (buildtime)
(dev-lang/perl-5.20.2:0/5.20::gentoo, ebuild scheduled for merge) (buildtime)
(sys-libs/db-4.8.30-r2:4.8/4.8::gentoo, ebuild scheduled for merge) (buildtime)

It might be possible to break this cycle
by applying the following change:
- dev-lang/perl-5.20.2 (Change USE: -berkdb)

Note that this change can be reverted, once the package has been installed.

Note that the dependency graph contains a lot of cycles.
Several changes might be required to resolve all cycles.
Temporarily changing some use flag for all packages might be the better option.


To break this, I tried to make change with the package.use file again as below :-
Quote:
/etc/portage/package.use
-dev-lang/perl-5.20.2 berkdb


But the problem remain. Please suggest

Thanks
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 276
Location: Milan, IT

PostPosted: Mon Oct 05, 2015 2:51 pm    Post subject: Reply with quote

Hi manu_leo
I've noticed a possible typo in your configuration:
manu_leo wrote:
Code:
vim /etc/portage/package.use
-sys-libs/zlib-1.2.8-r1 -minizip

Please note that correct syntax for /etc/portage/package.use will be like this:
Code:
=sys-libs/zlib-1.2.8-r1 -minizip

this has to be appended at the bottom of the file, without modify other settings in that file (if any)
Give it a try and let me know
Regards
Back to top
View user's profile Send private message
manu_leo
Guru
Guru


Joined: 20 Jan 2014
Posts: 513
Location: India

PostPosted: Mon Oct 05, 2015 3:03 pm    Post subject: Reply with quote

Thanks Kikko, for the prompt reply.

So, for emerge -av dev-db/postgresql, I had to make the following changes with the /etc/portage/package.use file :-

Quote:
>=sys-libs/zlib-1.2.8-r1 -minizip
>=media-libs/gd-2.0.35-r4 png
>=dev-lang/perl-5.20.2 -berkdb
>=sys-apps/acl-2.2.52-r1 -nls
>=sys-apps/attr-2.4.47-r2 -nls
>=sys-apps/help2man-1.46.6 -nls
>=dev-util/pkgconfig-0.28-r2 internal-glib


Now if I run emerge -uavDN @world, it gives me the below error :-
Quote:
emerge -uavDN @world

* IMPORTANT: 6 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.


* IMPORTANT: 6 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!


[ebuild N ] virtual/service-manager-0::gentoo USE="(-prefix)" 0 KiB
[nomerge ] sys-apps/openrc-0.17::gentoo USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs -tools"
[ebuild N ] net-misc/netifrc-0.2.2::gentoo 0 KiB
[ebuild N ] sys-apps/openrc-0.17::gentoo USE="ncurses netifrc pam unicode -audit -debug -newnet (-prefix) (-selinux) -static-libs -tools" 157 KiB
[ebuild N ] virtual/libc-0::gentoo 0 KiB
[ebuild N ] sys-apps/iproute2-3.19.0::gentoo USE="berkdb iptables ipv6 -atm -minimal (-selinux)" 445 KiB
[ebuild N ] sys-devel/gcc-4.9.3:4.9::gentoo USE="cxx fortran (multilib) nls nptl openmp sanitize (-altivec) (-awt) -cilk -debug -doc (-fixed-point) -gcj -go -graphite (-hardened) (-libssp) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 87,939 KiB
[ebuild N ] sys-libs/glibc-2.20-r2:2.2::gentoo USE="(multilib) -debug -gd (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" 55 KiB

Total: 7 packages (7 new), Size of downloads: 88,595 KiB

* Error: circular dependencies:

(sys-devel/gcc-4.9.3:4.9/4.9::gentoo, ebuild scheduled for merge) depends on
(sys-libs/glibc-2.20-r2:2.2/2.2::gentoo, ebuild scheduled for merge) (buildtime)
(sys-devel/gcc-4.9.3:4.9/4.9::gentoo, ebuild scheduled for merge) (buildtime)

* Note that circular dependencies can often be avoided by temporarily
* disabling USE flags that trigger optional dependencies.



Also, now running emerge -av dev-db/postgresql , gives below error :-

Quote:

emerge -av dev-db/postgresql
--o/p suppressed ---

Would you like to merge these packages? [Yes/No] Yes

>>> Verifying ebuild manifests
>>> Running pre-merge checks for sys-libs/pam-1.2.1

>>> Emerging (1 of 59) dev-libs/libffi-3.0.13-r1::gentoo
* libffi-3.0.13.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]
* The linker reported linking against -lffi to be working while it shouldn't have.
* This is wrong and you should find and delete the old copy of libffi before continuing.
* ERROR: dev-libs/libffi-3.0.13-r1::gentoo failed (setup phase):
* The system is in inconsistent state with unknown libffi installed.
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* libffi-3.0.13-r1.ebuild, line 34: Called die
* The specific snippet of code:
* die "The system is in inconsistent state with unknown libffi installed."
*
* If you need support, post the output of `emerge --info '=dev-libs/libffi-3.0.13-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-libs/libffi-3.0.13-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/temp/die.env'.
* Working directory: '/var/tmp/portage/._portage_reinstall_.8sRQRd/pym'
* S: '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/work/libffi-3.0.13'

>>> Failed to emerge dev-libs/libffi-3.0.13-r1, Log file:

>>> '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/temp/build.log'

* Messages for package dev-libs/libffi-3.0.13-r1:

* The linker reported linking against -lffi to be working while it shouldn't have.
* This is wrong and you should find and delete the old copy of libffi before continuing.
* ERROR: dev-libs/libffi-3.0.13-r1::gentoo failed (setup phase):
* The system is in inconsistent state with unknown libffi installed.
*
* Call stack:
* ebuild.sh, line 93: Called pkg_setup
* libffi-3.0.13-r1.ebuild, line 34: Called die
* The specific snippet of code:
* die "The system is in inconsistent state with unknown libffi installed."
*
* If you need support, post the output of `emerge --info '=dev-libs/libffi-3.0.13-r1::gentoo'`,
* the complete build log and the output of `emerge -pqv '=dev-libs/libffi-3.0.13-r1::gentoo'`.
* The complete build log is located at '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/temp/die.env'.
* Working directory: '/var/tmp/portage/._portage_reinstall_.8sRQRd/pym'
* S: '/var/tmp/portage/dev-libs/libffi-3.0.13-r1/work/libffi-3.0.13'


Thanks for all the help.
Back to top
View user's profile Send private message
kikko
Apprentice
Apprentice


Joined: 29 Apr 2014
Posts: 276
Location: Milan, IT

PostPosted: Mon Oct 05, 2015 3:45 pm    Post subject: Reply with quote

Hi manu_leo
let's try to solve one issue at time:
  • gcc/glibc circular dependency
    since C compiler anc C library are depending one on the other, you simply cannot emerge both at the same time
    try to emerge gcc only with
    Code:
    emerge -1uva gcc

  • dev-libs/libffi error
    it states that a previous version (?) of libffi is already installed, try to re-emerge that single package using
    Code:
    emerge -1va


Once you've fixed those two, you can try again to update @world
Regards
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54237
Location: 56N 3W

PostPosted: Mon Oct 05, 2015 4:54 pm    Post subject: Reply with quote

manu_leo,

To break circular dependancies, you can give the temporary USE on the command line.

Code:
It might be possible to break this cycle
by applying the following change:
- sys-libs/zlib-1.2.8-r1 (Change USE: -minizip)

Translates to
Code:
USE=-minizip emerge -av1 sys-libs/zlib
which installs sys-libs/zlib with USE -minizip, which should break the cycle.
Your next emerge will forget all about the command line USE, which is what you want to break circular dependancies.

Code:
USE=-minizip emerge -udNav @world
is a very bad thing as it will clear minizip everywhere and not just the package you need.

The glibc/gcc circular dependancy is a bit special. That you have this shows you have not updated for a long time.
You will probably need to build some intermediate glibc and gcc packages before you can get up to date.

Using you current glibc, build the newest gcc you can.
Select the new gcc. Build the newest glibc you can.
If the newest glibc is not the current one, reboot, so you are using your new glibc and repeat the above steps until both glibc and gcc are up to date.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum