public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ohsumit at molbio dot mgh.harvard.edu" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
Date: Mon, 14 Nov 2011 20:16:00 -0000	[thread overview]
Message-ID: <bug-51129-4@http.gcc.gnu.org/bugzilla/> (raw)

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

             Bug #: 51129
           Summary: 4.7 trunk libgcc cannot compute suffix of object files
                    - cannot find find libcloog, though in path
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ohsumit@molbio.mgh.harvard.edu


I am trying to compile the trunk version of gcc (checked out around 2:30 PM
Eastern Nov. 14, 2011) under SuSE linux using gcc 4.1.2 20070115 (default
installed).  I have cloog-ppl-0.15.11, gmp-5.0.2, mpc-0.9, and mpfr-3.1.0 all
installed in /usr/local/{include,lib} and have m4-1.4.16 in /usr/bin.  All of
the libraries passed their checks before I installed them.  I have

declare -x LDFLAGS="-L/usr/local/lib -L/usr/local/lib64 -L/usr/lib -L/usr/lib64
-L/lib -L/lib64
-R/usr/local/lib:/usr/local/lib64:/usr/lib:/usr/lib64:/lib:/lib64"
declare -x
LD_LIBRARY_PATH="/usr/lib:/usr/lib64:/lib:/lib64:/usr/local/lib:/usr/local/lib64

Now in the below, directories /tools and /store1/tools are identical.  I then
did

sudo /tools/gcc-4.7.0_src/configure --enable-langugages=c,c++,fortran
--prefix=/tools/gcc-4.7.0 --with-gmp-include=/usr/local/include
--with-gmp-lib=/usr/local/lib --with-mpc-include=/usr/local/include
--with-mpc-lib=/usr/local/lib --with-mpfr-include=/usr/local/include
--with-mpfr-lib=/usr/local/lib --with-ppl-include=/usr/local/include
--with-ppl-lib=/usr/local/lib --with-cloog-include=/usr/local/include
--with-cloog-lib=/usr/local/lib

in directory /tools/gcc-4.7.0_build followed by "sudo make -j6".  (I also tried
it without the -j6.  Same problem.)  It compiles xgcc in subdirectory gcc
successfully.  However, then the build crashes on

mkdir -p -- x86_64-unknown-linux-gnu/libgcc
Checking multilib configuration for libgcc...
Configuring stage 1 in x86_64-unknown-linux-gnu/libgcc
configure: creating cache ./config.cache
... <some lines edited out> ...
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc...
/store1/tools/gcc-4.7.0_build/./gcc/xgcc -B/store1/tools/gcc-4.7.0_build/./gcc/
-B/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/bin/
-B/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/lib/ -isystem
/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/include -isystem
/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/sys-include   
checking for suffix of object files... configure: error: in
`/store1/tools/gcc-4.7.0_build/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile

where the config.log in libgcc says

configure:3650: /store1/tools/gcc-4.7.0_build/./gcc/xgcc
-B/store1/tools/gcc-4.7.0_build/./gcc/
-B/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/bin/
-B/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/lib/ -isystem
/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/include -isystem
/tools/gcc-4.7.0/x86_64-unknown-linux-gnu/sys-include    -c -g -O2  conftest.c
>&5
/store1/tools/gcc-4.7.0_build/./gcc/cc1: error while loading shared libraries:
libcloog.so.0: cannot open shared object file: No such file or directory
configure:3654: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h.  */
|
| int
| main ()
| {
|
|   ;
|   return 0;
| }

What is puzzling is that 

> ls -l /usr/local/lib/libcloog.so.*
lrwxrwxrwx 1 root root     17 2011-11-14 13:58 /usr/local/lib/libcloog.so.0 ->
libcloog.so.0.0.0
-rwxr-xr-x 1 root root 428100 2011-11-14 13:57 /usr/local/lib/libcloog.so.0.0.0

the library is there and the path is in both LD_LIBRARY_PATH as well as
LDFLAGS.  Furthermore, I specified the path to cloog in the configure options. 
(I even tried doing a soft-link to /usr/lib, but with no success.)  Any
thoughts on why this is occurring?  

I would be grateful for any information regarding how to resolve this.


             reply	other threads:[~2011-11-14 20:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14 20:16 ohsumit at molbio dot mgh.harvard.edu [this message]
2011-11-14 21:26 ` [Bug c/51129] " redi at gcc dot gnu.org
2011-11-14 21:31 ` ohsumit at molbio dot mgh.harvard.edu
2011-11-14 21:40 ` redi at gcc dot gnu.org
2011-11-14 22:53 ` ohsumit at molbio dot mgh.harvard.edu
2011-11-14 23:54 ` redi 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-51129-4@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).