From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17518 invoked by alias); 22 Sep 2011 09:56:34 -0000 Received: (qmail 17509 invoked by uid 22791); 22 Sep 2011 09:56:33 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SARE_HEAD_8BIT_SPAM,SARE_SUB_ENC_UTF8,TW_IB X-Spam-Check-By: sourceware.org Received: from mailout3.pt.lu (HELO mailout3.pt.lu) (195.46.255.245) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 22 Sep 2011 09:56:16 +0000 X-Auth-ID: kouros X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvcBAKEFe06y/lx2/2dsb2JhbAAMNoRclHCRKBU8BDYCBRYLAgsDAgECAToeCAEBqyORbYEshECBEQSYXYNGiF4 Received: from ip-178-254-92-118.dyn.luxdsl.pt.lu (HELO [127.0.0.1]) ([178.254.92.118]) by smtp.pt.lu with ESMTP/TLS/DHE-RSA-CAMELLIA256-SHA; 22 Sep 2011 11:56:15 +0200 Message-ID: <4E7B063C.8010304@pt.lu> Date: Thu, 22 Sep 2011 10:00:00 -0000 From: Teodori Serge User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: gcc-bugs@gcc.gnu.org Subject: version `GLIBC_2.14' not found (required by =?UTF-8?B?YnVpbGQvZ2U=?= =?UTF-8?B?bmhvb2tzKeKAjw==?= Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/msg01508.txt.bz2 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