public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
@ 2011-11-14 20:16 ohsumit at molbio dot mgh.harvard.edu
2011-11-14 21:26 ` [Bug c/51129] " redi at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: ohsumit at molbio dot mgh.harvard.edu @ 2011-11-14 20:16 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/51129] 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
2011-11-14 20:16 [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path ohsumit at molbio dot mgh.harvard.edu
@ 2011-11-14 21:26 ` redi at gcc dot gnu.org
2011-11-14 21:31 ` ohsumit at molbio dot mgh.harvard.edu
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-11-14 21:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51129
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2011-11-14
Ever Confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-14 21:18:41 UTC ---
did you export LD_LIBRARY_PATH?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/51129] 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
2011-11-14 20:16 [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path ohsumit at molbio dot mgh.harvard.edu
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
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: ohsumit at molbio dot mgh.harvard.edu @ 2011-11-14 21:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51129
--- Comment #2 from Toshiro K. Ohsumi <ohsumit at molbio dot mgh.harvard.edu> 2011-11-14 21:20:13 UTC ---
(In reply to comment #1)
> did you export LD_LIBRARY_PATH?
Oh yes, I tried that too. :-) Thank you for the clarifying question. In
fact, /usr/local/lib is in /etc/ld.so.conf too.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/51129] 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
2011-11-14 20:16 [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path ohsumit at molbio dot mgh.harvard.edu
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
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-11-14 21:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51129
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-14 21:31:27 UTC ---
is /usr/local/lib/libcloog.so.0.0.0 a 64-bit library?
what does 'ldconfig -p | fgrep cloog' show?
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/51129] 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
2011-11-14 20:16 [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path ohsumit at molbio dot mgh.harvard.edu
` (2 preceding siblings ...)
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
4 siblings, 0 replies; 6+ messages in thread
From: ohsumit at molbio dot mgh.harvard.edu @ 2011-11-14 22:53 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51129
Toshiro K. Ohsumi <ohsumit at molbio dot mgh.harvard.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |FIXED
--- Comment #4 from Toshiro K. Ohsumi <ohsumit at molbio dot mgh.harvard.edu> 2011-11-14 22:21:29 UTC ---
Hello. Thanks to Jonathan Wakely's last comment, I tracked down the problem.
Even though the libraries are indeed 64-bit, for some reason, they were not
added to ld.so.cache when they were installed [as root]. This has been
rectified manually by calling ldconfig -v. Thanks again!
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/51129] 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path
2011-11-14 20:16 [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path ohsumit at molbio dot mgh.harvard.edu
` (3 preceding siblings ...)
2011-11-14 22:53 ` ohsumit at molbio dot mgh.harvard.edu
@ 2011-11-14 23:54 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2011-11-14 23:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51129
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|FIXED |INVALID
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-11-14 23:45:52 UTC ---
if you install packages via your package manager it usually runs ldconfig but
it won't get run if you install software manually, you have to run it yourself
(or reboot)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-11-14 23:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-14 20:16 [Bug c/51129] New: 4.7 trunk libgcc cannot compute suffix of object files - cannot find find libcloog, though in path ohsumit at molbio dot mgh.harvard.edu
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
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).