public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: Mikael Morin <mikael.morin@sfr.fr>
To: gcc-bugs@gcc.gnu.org
Cc: Teodori Serge <kouros@pt.lu>
Subject: Re: version `GLIBC_2.14' not found (required by build/genhooks)  ‏
Date: Fri, 23 Sep 2011 21:32:00 -0000	[thread overview]
Message-ID: <201109232223.32220.mikael.morin@sfr.fr> (raw)
In-Reply-To: <4E7B063C.8010304@pt.lu>

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.


      reply	other threads:[~2011-09-23 20:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-22 10:00 version `GLIBC_2.14' not found (required by build/genhooks)‏ Teodori Serge
2011-09-23 21:32 ` Mikael Morin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201109232223.32220.mikael.morin@sfr.fr \
    --to=mikael.morin@sfr.fr \
    --cc=gcc-bugs@gcc.gnu.org \
    --cc=kouros@pt.lu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).