From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6114 invoked by alias); 14 Nov 2011 20:02:31 -0000 Received: (qmail 6105 invoked by uid 22791); 14 Nov 2011 20:02:29 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,TW_LR,TW_RW,TW_WX,TW_XG,TW_XR X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 14 Nov 2011 20:02:15 +0000 From: "ohsumit at molbio dot mgh.harvard.edu" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Keywords: X-Bugzilla-Severity: blocker X-Bugzilla-Who: ohsumit at molbio dot mgh.harvard.edu X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-11/txt/msg01442.txt.bz2 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 ... ... 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.