From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29265 invoked by alias); 23 Sep 2011 20:25:08 -0000 Received: (qmail 29246 invoked by uid 22791); 23 Sep 2011 20:25:05 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8,TW_IB X-Spam-Check-By: sourceware.org Received: from smtp23.services.sfr.fr (HELO smtp23.services.sfr.fr) (93.17.128.20) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 23 Sep 2011 20:24:50 +0000 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2306.sfr.fr (SMTP Server) with ESMTP id 07C4C700004D; Fri, 23 Sep 2011 22:24:46 +0200 (CEST) Received: from marvin.localnet (118.183.72.86.rev.sfr.net [86.72.183.118]) by msfrf2306.sfr.fr (SMTP Server) with ESMTP id CC50F700008A; Fri, 23 Sep 2011 22:24:45 +0200 (CEST) X-SFR-UUID: 20110923202445836.CC50F700008A@msfrf2306.sfr.fr From: Mikael Morin To: gcc-bugs@gcc.gnu.org Subject: Re: version `GLIBC_2.14' not found (required by build/genhooks) =?utf-8?q?=E2=80=8F?= Date: Fri, 23 Sep 2011 21:32:00 -0000 User-Agent: KMail/1.13.7 (Linux/2.6.39-gentoo-r3-mik3; KDE/4.6.5; x86_64; ; ) Cc: Teodori Serge References: <4E7B063C.8010304@pt.lu> In-Reply-To: <4E7B063C.8010304@pt.lu> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201109232223.32220.mikael.morin@sfr.fr> X-IsSubscribed: yes Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-09/txt/msg01699.txt.bz2 On Thursday 22 September 2011 11:56:12 Teodori Serge wrote: > Hello, > I'm building a toolchain in /opt dir. I have already build and installed > glibc-2.14 and binutils-2.21.1a in /opt. > Now I want to build and install gcc-4.6.1 with gmp, mpfr and mpc also in > /opt. > > Here is my configure: > > ../gcc-4.6.1/configure --prefix=/tools --disable-nls --disable-shared > --disable-multilib --disable-decimal-float --disable-threads > --disable-libmudflap --disable-libssp --disable-libgomp > --disable-libquadmath --disable-target-libiberty --disable-target-zlib > --enable-languages=c --without-ppl --without-cloog > > Here is the last output of my build: > > build/genhooks > tmp-target-hooks-def.h > build/genhooks: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' > not found (required by build/genhooks) > make[3]: *** [s-target-hooks-def-h] Error 1 > make[3]: *** Waiting for unfinished jobs.... > rm gcc.pod > make[3]: Leaving directory `/home/serge/Documents/gcc-build/gcc' > make[2]: *** [all-stage2-gcc] Error 2 > make[2]: Leaving directory `/home/serge/Documents/gcc-build' > make[1]: *** [stage2-bubble] Error 2 > make[1]: Leaving directory `/home/serge/Documents/gcc-build' > make: *** [all] Error 2 > > The problem is very obvious, gcc build is not taking the toolchain > glibc-2.14 in /opt/lib but it is taking the one the host uses which is > eglibc-2.13 in /usr/lib. > I set various flags to the linker and compiler, they are all looking in > the right directory. It must be something in the configure script? > Can anyone help me please. > Thank you It seems the generated program genhooks is correctly linked to your new glibc. However, you need to either set LD_LIBRARY_PATH or change the /etc/ld.so.conf configuration file so that genhooks loads the right library when it is executed. Mikael. PS: this list is for the automatic messages generated by the bug tracking system at http://gcc.gnu.org/bugzilla. For questions, you should use the gcc-help mailing list.