Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] I messed up dependencies for gcc using overlays
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
redcap
n00b
n00b


Joined: 10 Jul 2010
Posts: 40

PostPosted: Wed Mar 09, 2011 9:37 pm    Post subject: [SOLVED] I messed up dependencies for gcc using overlays Reply with quote

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
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 22077

PostPosted: Thu Mar 10, 2011 3:44 am    Post subject: Reply with quote

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
View user's profile Send private message
redcap
n00b
n00b


Joined: 10 Jul 2010
Posts: 40

PostPosted: Thu Mar 10, 2011 7:55 pm    Post subject: Reply with quote

Thanks a bunch. After following your advice and some fiddeling around with
libraries I was able to get gcc to work again. Thanks again :D
Back to top
View user's profile Send private message
newbenji
n00b
n00b


Joined: 05 Sep 2003
Posts: 69
Location: Denmark, Odense

PostPosted: Fri Mar 11, 2011 8:19 pm    Post subject: Reply with quote

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 :D


How did you do as i have the exact same problem
Back to top
View user's profile Send private message
redcap
n00b
n00b


Joined: 10 Jul 2010
Posts: 40

PostPosted: Fri Mar 11, 2011 9:36 pm    Post subject: Reply with quote

It turned out that the downgrade of dev-libs/mpfr removed libraries that the following
components of gcc where linked against

Code:

/usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1
/usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/cc1plus
/usr/libexec/gcc/i686-pc-linux-gnu/4.4.5/f951


You can find out which libraries are missing using ldd. I had to install

http://tinderbox.jolexa.net/x86-linux-on-gentoo-x86/dev-libs/mpfr-3.0.0_p3.tbz2

and

http://tinderbox.jolexa.net/x86-linux-on-gentoo-x86/dev-libs/gmp-5.0.1.tbz2

in the way Hu suggested to get missing libraries.

The packages will be installed in /home/jolexa. I then made the new versions of the libraries
known to the system (see http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=5).
After that gcc worked again. After reinstalling gcc the above components where linked against the older versions
of the libraries in /usr/lib.
Back to top
View user's profile Send private message
Hwoarang
Retired Dev
Retired Dev


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Fri Mar 11, 2011 10:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
redcap
n00b
n00b


Joined: 10 Jul 2010
Posts: 40

PostPosted: Fri Mar 11, 2011 10:48 pm    Post subject: Reply with quote

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
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