public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "avi at unix dot sh" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug other/45760]  New: GCC build fails: can't find MPC
Date: Thu, 23 Sep 2010 13:07:00 -0000	[thread overview]
Message-ID: <bug-45760-19725@http.gcc.gnu.org/bugzilla/> (raw)

I believe this is a bug in GCC 4.5.1 build system related to the introduction
of MPC.

I'm compiling GCC 4.5.1 and all its dependencies in my home directory and
installing all (make install) at $HOME/OpenFOAM/ROOT

At some GCC build stage it fails with this messages:

---------------------------------------
checking for powerpc64-unknown-linux-gnu-strip... strip
checking whether ln -s works... yes
checking for powerpc64-unknown-linux-gnu-gcc...
/bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/xgcc
-B/bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/
-B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/bin/
-B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/lib/ -isystem
/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/include -isystem
/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in
`/bgpusr3/avibrz/OpenFOAM/gcc-build/powerpc64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/bgpusr3/avibrz/OpenFOAM/gcc-build'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/bgpusr3/avibrz/OpenFOAM/gcc-build'
make: *** [all] Error 2
---------------------------------------

Side note: /bgpusr3/avibrz == $HOME
Having a look at
/bgpusr3/avibrz/OpenFOAM/gcc-build/powerpc64-unknown-linux-gnu/libgcc/config.log
I find this:

---------------------------------------
configure:3211: checking for suffix of object files
configure:3233: /bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/xgcc
-B/bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/
-B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/bin/
-B/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/lib/ -isystem
/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/include -isystem
/bgpusr3/avibrz/OpenFOAM/ROOT/powerpc64-unknown-linux-gnu/sys-include    -c -g
-O2  conftest.c >&5
/bgpusr3/avibrz/OpenFOAM/gcc-build/./gcc/cc1: error while loading shared
libraries: libmpc.so.2: cannot open shared object file: No such file or
directory
configure:3237: $? = 1
---------------------------------------

But libmpc.so.2 is there. I even took care of creating artificial symbolic
links to satisfy this bizarre 'powerpc64-unknown-linux-gnu' under ROOT.

This is how I'm configuring GCC as I took care of passing correct directories
for MPC installation:

---------------------------------------
gcc-build$ ../gcc-4.5.1/configure --prefix=$HOME/OpenFOAM/ROOT
--with-stage1-ldflags="-L$HOME/OpenFOAM/ROOT/lib"
--with-gmp="$HOME/OpenFOAM/ROOT" --with-mpfr="$HOME/OpenFOAM/ROOT"
--with-ppl="$HOME/OpenFOAM/ROOT" --with-mpc="$HOME/OpenFOAM/ROOT"
--enable-languages=c++,fortran
---------------------------------------

Any tip ?


-- 
           Summary: GCC build fails: can't find MPC
           Product: gcc
           Version: 4.5.1
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: avi at unix dot sh
 GCC build triplet: powerpc64-linux
  GCC host triplet: powerpc64-linux
GCC target triplet: powerpc64-linux


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


             reply	other threads:[~2010-09-23 13:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-23 13:07 avi at unix dot sh [this message]
2010-09-23 13:58 ` [Bug other/45760] " redi at gcc dot gnu dot org
2010-09-23 14:04 ` avi at unix dot sh
2010-09-23 14:08 ` redi at gcc dot gnu dot org
2010-09-23 14:15 ` [Bug bootstrap/45760] " redi at gcc dot gnu dot org
2010-09-23 14:46 ` avi at unix dot sh
2010-09-23 14:47 ` avi at unix dot sh
2010-09-23 15:28 ` redi at gcc dot gnu dot org
2010-09-23 15:28 ` redi at gcc dot gnu dot 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-45760-19725@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).