public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Brian Drummond <brian@shapes.demon.co.uk>
To: gcc-help@gcc.gnu.org
Subject: Re: Problem with building gcc 4.9.0 (libstdc++)
Date: Sun, 10 Aug 2014 12:24:00 -0000	[thread overview]
Message-ID: <1407673445.1838.10.camel@Gannet.Four> (raw)
In-Reply-To: <693b4667786deba40baff7463b17d5fb.squirrel@mx.sscc.ru>

On Fri, 2014-08-08 at 16:54 +0700, Kirill Voronin wrote:
> I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version).
> 
> I've installed manually mpc, gmp and mpfr before running ./configure
> 
> Configure line:
> ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared
> --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install
> --with-mpc=/usr/new/mpc_install
> 
> and it works fine.
> 
> But then I tried to make and got the following error:
> 
> checking for suffix of object files... configure: error: in
> `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> 
> The config.log file contains the following error:

...excerpts only

> Configured with: ...
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada
... this will cause trouble later...

> configure:4970: checking whether g++ accepts -static-libstdc++ -static-libgcc
> configure:4987: g++ -o conftest -g -O2   -static-libstdc++ -static-libgcc
> conftest.cpp  >&5
> g++: unrecognized option '-static-libstdc++'
> conftest.cpp:11:2: error: #error -static-libstdc++ not implemented

I don't know why you think this is the problem because (a) a lot of
these tests fail and the build process just uses alternative methods,
and (b) if it WAS the problem, configure would give up here instead of
running further tests (as it does)

> configure:5052: checking for gnatbind
> configure:5082: result: no
> configure:5144: checking for gnatmake
> configure:5174: result: no
> configure:5193: checking whether compiler driver understands Ada
> configure:5216: result: no

As Ada is on the list of languages to build, this isn't going to work
until you correctly install a suitable Gnat version.

> configure:5891: checking for version 0.10 of ISL
> configure:5910: gcc -o conftest -g -O2 
> -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gmp_install/include
> -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpfc_install/include
> -I/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/mpc_install/include
>     conftest.c  -lisl >&5
> conftest.c:10:25: error: isl/version.h: No such file or directory
> conftest.c: In function 'main':

now *this* looks more like a problem (repeated for ISL version 0.11) but
my understanding is that ISL is an option not a requirement so far. 

And that's the end of the config.log file excerpt you posted. So I
suspect the error is really further down the file.

Follow Jonathan's instructions.
Install Gnat.
Post the right part of the config.log file, or a link to the whole of
it.

- Brian


  parent reply	other threads:[~2014-08-10 12:24 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-08  9:54 Kirill Voronin
2014-08-08  9:56 ` Jonathan Wakely
2014-08-08  9:58   ` Jonathan Wakely
2014-08-08 10:22     ` Kirill Voronin
2014-08-08 10:27       ` Jonathan Wakely
2014-08-08 11:13         ` Kirill Voronin
2014-08-08 11:33           ` Jonathan Wakely
2014-08-08 11:38             ` Jonathan Wakely
2014-08-10 11:58               ` Kirill Voronin
2014-08-10 17:43                 ` Jonathan Wakely
2014-08-10 12:24 ` Brian Drummond [this message]
2014-08-10 14:29   ` Kirill Voronin
2014-08-10 17:54     ` Jonathan Wakely

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=1407673445.1838.10.camel@Gannet.Four \
    --to=brian@shapes.demon.co.uk \
    --cc=gcc-help@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).