public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "mohammadsohaibajmal at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/52740] Unable to make gcc-4.x.x after successful configuration
Date: Wed, 28 Mar 2012 19:36:00 -0000	[thread overview]
Message-ID: <bug-52740-4-pzsFuxree9@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-52740-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52740

--- Comment #3 from mohammadsohaibajmal at gmail dot com 2012-03-28 19:07:57 UTC ---
I have GLIBCXX_2.5 installed on my computer and I need version 3.4.9 or higher.
I needed to install version 4 or higher for gcc so I randomly chose to install
gcc-4.4.0. I can try 4.4.7 also

However, all steps I performed and errors I encounetred are imentioned below
Although I am not sure the error messages I got are sufficiently helpful or
not.

After downloading GCC and placing it in a directory I ran its configuration
script

/Gcc/gcc-4.4.0/configure --target=/usr/local/gcc-4.4.0/

It gave me error saying mpfr and gmp needs to be installed. I downloaded gmp
version  5.0.4 and mpfr version 3.1.0. For installing gmp I simply ran
following commands

./configure
make 
make install

Everything executed pretty smoothly. Afterwards for installing mpfr I followed
its instruction and first applied patch inside mpfr folder,as directed in
INSTALL file

curl http://www.mpfr.org/mpfr-3.1.0/allpatches | patch -N -Z -p1

patch was applied successfully

Afterwords I executed 

./configure

This gave me following WARNING at the end of execution

configure: WARNING: ==========================================================
configure: WARNING: 'gmp.h' and 'libgmp' seem to have different versions or
configure: WARNING: we cannot run a program linked with GMP (if you cannot
configure: WARNING: see the version numbers above). A cause may be different
configure: WARNING: GMP versions with different ABI's or the use of --with-gmp
configure: WARNING: or --with-gmp-include with a system include directory
configure: WARNING: (such as /usr/include or /usr/local/include).
configure: WARNING: However since we can't use 'libtool' inside the configure,
configure: WARNING: we can't be sure. See 'config.log' for details.
configure: WARNING: ==========================================================

At the end it said that creating Makefile etc. Afterwards I ran 

make 
make check
make install

No error appeared in this whole procedure except for above mentioned warning.

Afterwards I again ran configure script of gcc as mentioned above, which
finished succefully saying "creating Makefile"

/Gcc/gcc-4.4.0/configure --target=/usr/local/gcc-4.4.0/

But when I ran make it gave me following error as in my first post 

make [2]: Leaving directory '/root/fixincludes'
make [1]: *** [all-fixincludes] Error 2
make [1]: Leaving directory '/root'
make: *** [all] Error 2

This is all the erro rit showed me. I have no Idea what to do about it. If
there is a better and stable version which can give me GLIBC3.4.9 I'll use
that, and also can you please refer to me appropriate guide for installing GCC
because the instructions available on this website has so many configurations
that I do not know which one will be appropriate.
Another Important point to note is after even the installation of mentioned
versions of gmp and mpfr when I do rpm -qa|grep gmp and rpm -qa|grep mpfr the
output I get is older version for gmp installed by distro and no output for
mpfr? 

So I have not been able to install them properly despite no error I received,
or any other configuration is requried. I followed their INSTALL guides in
their folders.

Thank you very much for assistance that you can provide in this regard.


  parent reply	other threads:[~2012-03-28 19:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27 15:44 [Bug libstdc++/52740] New: " mohammadsohaibajmal at gmail dot com
2012-03-27 15:51 ` [Bug libstdc++/52740] " redi at gcc dot gnu.org
2012-03-27 15:54 ` redi at gcc dot gnu.org
2012-03-28 19:36 ` mohammadsohaibajmal at gmail dot com [this message]
2012-03-28 19:51 ` redi at gcc dot gnu.org
2012-05-02 17:10 ` bkoz at gcc dot gnu.org

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=bug-52740-4-pzsFuxree9@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).