Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289775 - sys-libs/glibc-2.9_p20081201-r3 fails to configure with binutils 2.20
Summary: sys-libs/glibc-2.9_p20081201-r3 fails to configure with binutils 2.20
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 291731 292135 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-10-19 18:23 UTC by Alexis Ballier
Modified: 2010-07-25 18:07 UTC (History)
6 users (show)

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


Attachments
fixes 2.1[3-9]* as ld test for binutils 2.20 (6300_all_glibc_2.9_binutils-test.patch,927 bytes, patch)
2009-11-04 13:06 UTC, Joerg Neikes
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexis Ballier gentoo-dev 2009-10-19 18:23:00 UTC
# FEATURES="-test" crossdev -t armv5te-softfloat-linux-gnueabi

checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
 * ERROR: cross-armv5te-softfloat-linux-gnueabi/glibc-2.9_p20081201-r3 failed:
 *   failed to configure glibc
 *
 * Call stack:


I think this code from configure.ac is the culpit:
# Accept binutils 2.13 or newer.
AC_CHECK_PROG_VER(AS, $AS, --version,
                  [GNU assembler.* \([0-9]*\.[0-9.]*\)],
                  [2.1[3-9]*], AS=: critic_missing="$critic_missing as")
AC_CHECK_PROG_VER(LD, $LD, --version,
                  [GNU ld.* \([0-9][0-9]*\.[0-9.]*\)],
                  [2.1[3-9]*], LD=: critic_missing="$critic_missing ld")
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-10-19 19:11:37 UTC
We already have a patch for this problem in glibc-2.10.1-patches-3:

6705_all_binutils-2.20-compat.patch
Comment 2 Franz Trischberger 2009-10-30 05:33:38 UTC
(In reply to comment #1)
> We already have a patch for this problem in glibc-2.10.1-patches-3:
> 
> 6705_all_binutils-2.20-compat.patch

I'm using binutils[gold], and the patch does not work...
I get this when checking for ld --version:
##
checking version of /usr/lib/gcc/x86_64-pc-linux-gnu/4.4.2/../../../../x86_64-pc-linux-gnu/bin/ld... v. ?.??, bad
##

$ ld --version
GNU gold (GNU Binutils 2.20) 1.9
...

Comment 3 Raúl Porcel (RETIRED) gentoo-dev 2009-10-30 18:24:39 UTC
Same here.

Franz, are you crosscompiling for ARM as well?
Comment 4 Franz Trischberger 2009-10-30 19:46:49 UTC
(In reply to comment #3)
> Same here.
> 
> Franz, are you crosscompiling for ARM as well?
> 

No, just compiling on/for my amd64 (local).
Comment 5 Joerg Neikes 2009-11-04 13:06:12 UTC
Created attachment 209203 [details, diff]
fixes 2.1[3-9]* as ld test for binutils 2.20
Comment 6 Joerg Neikes 2009-11-04 13:32:03 UTC
(In reply to comment #5)
> Created an attachment (id=209203) [details]
> fixes 2.1[3-9]* as ld test for binutils 2.20 
> 

To use it:

mkdir glibc-2.9-patches-6
cd glibc-2.9-patches-6
cat xfvj /usr/portage/distfiles/glibc-2.9-patches-6.tar.bz2
cp /usr/portage/distfiles/glibc-2.9-patches-6.tar.bz2 patches
tar cfvj /usr/portage/distfiles/glibc-2.9-patches-6.tar.bz2 *

change to dir with Mainfest file
/usr/local/portage/layman/sunrise/cross-arm-softfloat-linux-gnueabi/glibc

remove the "DIST glibc-2.9-patches-6.tar.bz2" entry
and use "ebuild glibc-2.9_p20081201-r3.ebuild digest".

Now it worK's again.
Comment 7 SpanKY gentoo-dev 2009-11-05 22:15:22 UTC
*** Bug 291731 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2009-11-05 22:28:54 UTC
added patch from 2.10 patchset to 2.9
Comment 9 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-11-06 17:33:58 UTC
*** Bug 292135 has been marked as a duplicate of this bug. ***
Comment 10 Paul Osmialowski 2010-07-23 15:56:48 UTC
libpng upgraded in todays sync, during revdep-rebuild --library libpng12.so.0 glibc was added to the rebuild list. It can't be done due to the same error as yours:
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
 * ERROR: sys-libs/glibc-2.9_p20081201-r2 failed:
 *   failed to configure glibc

versions:

[ebuild   R   ] sys-devel/binutils-2.20.1-r1  USE="nls -multislot -multitarget -test -vanilla" 0 kB
[ebuild   R   ] sys-libs/glibc-2.9_p20081201-r2  USE="gd glibc-omitfp nls -debug (-hardened) (-multilib) -profile (-selinux) -vanilla" 0 kB
[ebuild   R   ] sys-devel/gcc-4.3.4  USE="altivec fortran gtk mudflap nls nptl objc objc++ objc-gc -bootstrap -build -doc (-fixed-point) -gcj (-hardened) (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -nossp -openmp -test -vanilla" 0 kB
Comment 11 SpanKY gentoo-dev 2010-07-25 18:07:15 UTC
glibc-2.11.2 is stable now.  install that.