Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 223803 - glib cannot be emerged in Prefix Gentoo
Summary: glib cannot be emerged in Prefix Gentoo
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on: 224711
Blocks:
  Show dependency tree
 
Reported: 2008-05-27 08:36 UTC by Rabbe Fogelholm
Modified: 2008-06-04 19:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
The config.log file. (config.log,28.70 KB, text/plain)
2008-05-27 09:03 UTC, Rabbe Fogelholm
Details
All 'completed emerge' lines from var/log/emerge.log. (grep-emerge-log.txt,15.56 KB, text/plain)
2008-05-27 20:17 UTC, Rabbe Fogelholm
Details
The output from `emerge --info'. (emerge-info.txt,2.69 KB, text/plain)
2008-05-27 20:18 UTC, Rabbe Fogelholm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2008-05-27 08:36:30 UTC
An attempt to emerge dev-libs/glib in a healthy and recently bootstrapped prefix environment failed. From the console log:

>>> Emerging (14 of 28) dev-libs/glib-2.16.3-r00.1 to /
....
....
checking for libiconv_open in -liconv... no
configure: error: *** No iconv() implementation found in C library or libiconv

!!! Please attach the following file when seeking support:
!!! /local/scratch/portage/dev-libs/glib-2.16.3-r00.1/work/glib-2.16.3/config.log
 * ERROR: dev-libs/glib-2.16.3-r00.1 failed:
 *   econf failed
 * 
 * Call stack:
 *               ebuild.sh:  49: <call src_compile>
 *             environment:2898: <call econf '--with-libiconv=gnu' '--disable-xattr' '--disable-man' '--disable-gtk-doc' '--disable-fam' '--disable-selinux' '--enable-static' '--with-threads=posix'>
 *               ebuild.sh: 526: 			die "econf failed"
Comment 1 Rabbe Fogelholm 2008-05-27 09:03:02 UTC
Created attachment 154443 [details]
The config.log file.
Comment 2 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-27 14:15:52 UTC
WORKSFORME (on x86-linux) - You will have to provide more information in order to fix this. emerge --info, what "libiconv" packages you have installed, gcc version,  etc. I'll leave this bug 'open' for now but if there is no more information I will close it later. Thanks for reporting, I hope we can get to the bottom of this.

(Side note: I do see a libtool-2.2 issue with this package)
Comment 3 Rabbe Fogelholm 2008-05-27 20:15:28 UTC
(In reply to comment #2)
> WORKSFORME (on x86-linux) - You will have to provide more information in order
> to fix this.

I'll try to gather the info you need. `gcc --version' produces this:

gcc (GCC) 4.2.3 (Gentoo 4.2.3 p1.0)

I'm not sure how to find out about "libiconv". If I grep the emerge.log for 'completed emerge' I see mention of virtual/libiconv-0, but is that what you need?

I'll attach the "completed emerge" lines anyway, and the output from `emerge --info'.

Comment 4 Rabbe Fogelholm 2008-05-27 20:17:33 UTC
Created attachment 154517 [details]
All 'completed emerge' lines from var/log/emerge.log.
Comment 5 Rabbe Fogelholm 2008-05-27 20:18:32 UTC
Created attachment 154519 [details]
The output from `emerge --info'.
Comment 6 Fabian Groffen gentoo-dev 2008-05-27 20:21:02 UTC
iconv stuff is provided by glibc.  Since you're on linux, you should have it in your glibc.  What goes wrong here is that it looks as if there is no compilation attempted without -liconv.  The real error is that the linker complains it can't find libiconv, which on linux feels correct to me.
Comment 7 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-05-27 21:08:35 UTC
Yea, I have a nearly identical setup here, besides the age of my prefix, and can't reproduce this error. Maybe the native glibc has something to do with it? I have no idea, really. Sorry.

% rpm -q glibc
glibc-2.3.4-2.36

Good luck =/
Comment 8 Rabbe Fogelholm 2008-05-28 09:13:40 UTC
My native glibc is this one,

> rpm -q glibc
glibc-2.4-31.30

But I really don't suspect it since it has worked fine before. On the early morning of 2008-05-25 bootstrapping from scratch and emerging glib worked fine. I made a filtered diff-listing of emerge.log and it seems the only significant changes are these:

Happy (2008-05-25):

completed emerge (77 of 82) app-misc/ca-certificates-20070303-r1 to /
completed emerge (80 of 82) sys-apps/portage-2.2.00.10385 to /

Unhappy (2008-05-27):

completed emerge (77 of 82) app-misc/ca-certificates-20080514 to /
completed emerge (80 of 82) sys-apps/portage-2.2.00.10418 to /

Guessing that ca-certificates are not important, doing a `diff -r' on sys-apps/portage yields

diff -r 2008-05-25/usr/portage/sys-apps/portage/ChangeLog 2008-05-27/usr/portage/sys-apps/portage/ChangeLog
4a5,10
> *portage-2.2.00.10418 (25 May 2008)
> 
>   25 May 2008; Fabian Groffen <grobian@gentoo.org>
>   -portage-2.2.00.10249.ebuild, +portage-2.2.00.10418.ebuild:
>   New snapshot, including trunk USE-deps feature

Can this somehow have affected the "libiconv" problem?

Comment 9 Fabian Groffen gentoo-dev 2008-05-28 09:21:21 UTC
I doubt a compiler/linker problem to be related to portage internal resolver changes.  I would suspect gcc-config, which has new behaviour.  But I can't come up with some reasoning that explains it (since you're using /usr/bin/gcc)
Comment 10 Rabbe Fogelholm 2008-06-01 12:14:25 UTC
I've found a workaround. If I enter the prefix environment I can do this:

emerge --unmerge man-pages (claimed to block libiconv)
emerge libiconv
emerge glib

At this point I would like to re-emerge man-pages but I am getting

sys-apps/man-pages (is blocking dev-libs/libiconv-1.11-r00.1)

Is this blocking relation correct? I would have thought that man-pages are compatible with just about everything else?

Comment 11 Fabian Groffen gentoo-dev 2008-06-01 12:25:48 UTC
man-pages contains "GNU/Linux" man pages, hence including iconv stuff (since it's in glibc).  Therefore the conflict here.  You shouldn't have libiconv on *-linux currently.
Comment 12 Rabbe Fogelholm 2008-06-04 07:16:15 UTC
Good news, this morning glib was emerged successfully. I tried to do some comparisons, the only difference I could see is that the portage version has advanced from 2.2.00.10418 to 2.2.00.10347.
Comment 13 Fabian Groffen gentoo-dev 2008-06-04 07:24:07 UTC
That's a "downgrade" actually.  This bug is probably caused by something similar as in bug #224711
Comment 14 Fabian Groffen gentoo-dev 2008-06-04 19:25:51 UTC
virtual/libiconv ebuild uses "!elibc_glibc? (..." which means this is bug is actually the same as bug #224711.

The tree has been fixed for this.