| View previous topic :: View next topic |
| Author |
Message |
redcap n00b

Joined: 10 Jul 2010 Posts: 40
|
Posted: Wed Mar 09, 2011 9:37 pm Post subject: [SOLVED] I messed up dependencies for gcc using overlays |
|
|
Hi there,
some months ago I added some overlays (sage-on-gentoo, science and sunrise) to my portage tree
just to see if I could get sage running. Yesterday I removed those overlays. I then ran
emerge -Du world which resulted in a downgrade of dev-libs/mpfr from 3.0.0_p3 to 2.4.2_p3.
Then revdep-rebuild showed some broken dependencies
| Code: |
morgaine build # revdep-rebuild
* Configuring search environment for revdep-rebuild
* Checking reverse dependencies
* Packages containing binaries and libraries broken by a package update
* will be emerged.
* Collecting system binaries and libraries
* Generated new 1_files.rr
* Collecting complete LD_LIBRARY_PATH
* Generated new 2_ldpath.rr
* Checking dynamic linking consistency
[ 32% ] * broken /usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1 (requires libmpfr.so.4)
* broken /usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1plus (requires libmpfr.so.4)
* broken /usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/f951 (requires libmpfr.so.4)
[ 68% ] * broken /usr/lib/libmpfi.so.0.0.0 (requires libmpfr.so.4)
[ 70% ] * broken /usr/lib/librasqal.so.2.0.0 (requires libmpfr.so.4)
[ 100% ]
* Generated new 3_broken.rr
* Assigning files to packages
* /usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1 -> sys-devel/gcc
* /usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1plus -> sys-devel/gcc
* /usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/f951 -> sys-devel/gcc
* /usr/lib/libmpfi.so.0.0.0 -> sci-libs/mpfi
* /usr/lib/librasqal.so.2.0.0 -> dev-libs/rasqal
* Generated new 4_raw.rr and 4_owners.rr
* Cleaning list of packages to rebuild
* Generated new 4_pkgs.rr
* Assigning packages to ebuilds
* Generated new 4_ebuilds.rr
* Evaluating package order
* Generated new 5_order.rr
* All prepared. Starting rebuild
emerge --oneshot dev-libs/rasqal:0
sci-libs/mpfi:0
sys-devel/gcc:4.4
|
Unfortunately the emerge of gcc failed.
Please find the output of emerge --info =sys-devel/gcc-4.4.5 and
the build log here:
http://pastebin.com/CQQ96utx
http://pastebin.com/T2JHQazB
I then tried to solve this problem by adding the overlays once more and emergng mpfr-3.0.0_p3
again but this gives the (econf failed) error.
| Code: |
* Messages for package dev-libs/mpfr-3.0.0_p3:
* ERROR: dev-libs/mpfr-3.0.0_p3 failed:
* econf failed
*
* Call stack:
* ebuild.sh, line 56: Called src_compile
* environment, line 2344: Called _eapi0_src_compile
* ebuild.sh, line 618: Called econf
* ebuild.sh, line 552: Called die
* The specific snippet of code:
* die "econf failed"
*
* If you need support, post the output of 'emerge --info =dev-libs/mpfr-3.0.0_p3',
* the complete build log and the output of 'emerge -pqv =dev-libs/mpfr-3.0.0_p3'.
* The complete build log is located at '/var/tmp/portage/dev-libs/mpfr-3.0.0_p3/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-libs/mpfr-3.0.0_p3/temp/environment'.
* S: '/var/tmp/portage/dev-libs/mpfr-3.0.0_p3/work/mpfr-3.0.0'
|
As far as I can tell, trying to emerge any other package also gives the (econf failed) error.
So, I'm facing some kind of chicken vs egg that I am not able to solve. I'd be very grateful if someone gave
me a little hint or some advice how to solve this problem as I am pretty much stuck right now.
Please let me know, if there is any other information that I can provide.
Thank you for your efforts
Redcap
Last edited by redcap on Thu Mar 10, 2011 7:55 pm; edited 1 time in total |
|
| Back to top |
|
 |
Hu Administrator

Joined: 06 Mar 2007 Posts: 22077
|
Posted: Thu Mar 10, 2011 3:44 am Post subject: |
|
|
| The simplest solution is to install a prebuilt tbz2 of the proper version of mpfr. Since the tbz2 is a collection of compiled files, along with metadata, you do not need a working gcc to install it. If you automatically save tbz2 packages as you install upgrades, you can recover with emerge --oneshot --usepkgonly =dev-libs/mpfr-3.0.0_p3. If you do not save such packages, you will need to find that version for your architecture from a trusted source. The Gentoo tinderbox may have what you need. Place it in your PKGDIR and then run the preceding emerge command. |
|
| Back to top |
|
 |
redcap n00b

Joined: 10 Jul 2010 Posts: 40
|
Posted: Thu Mar 10, 2011 7:55 pm Post subject: |
|
|
Thanks a bunch. After following your advice and some fiddeling around with
libraries I was able to get gcc to work again. Thanks again  |
|
| Back to top |
|
 |
newbenji n00b

Joined: 05 Sep 2003 Posts: 69 Location: Denmark, Odense
|
Posted: Fri Mar 11, 2011 8:19 pm Post subject: |
|
|
| redcap wrote: | Thanks a bunch. After following your advice and some fiddeling around with
libraries I was able to get gcc to work again. Thanks again  |
How did you do as i have the exact same problem |
|
| Back to top |
|
 |
redcap n00b

Joined: 10 Jul 2010 Posts: 40
|
|
| Back to top |
|
 |
Hwoarang Retired Dev


Joined: 24 Feb 2007 Posts: 701 Location: Leeds, UK
|
Posted: Fri Mar 11, 2011 10:24 pm Post subject: |
|
|
| The tinderbox you are referring to is for Gentoo Prefix project. You are *NOT* supposed to use it in normal Gentoo installations |
|
| Back to top |
|
 |
redcap n00b

Joined: 10 Jul 2010 Posts: 40
|
Posted: Fri Mar 11, 2011 10:48 pm Post subject: |
|
|
Thanks for pointing that out. I wasn't aware of that.
I suppose that http://tinderbox.dev.gentoo.org/default-linux/
would be the right tinderbox to use. Unfortunately I needed tbz2s of
unstable packages that I wasn't able to find there. Just out of curiosity,
what would be the right way to handle thsi problem? |
|
| Back to top |
|
 |
|