RE: gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian,  

The very last thing recognizable as an error in the gcc_build/i686-pc-linux-gnu/libgcc/config.log file is this:

configure:3246: checking for suffix of object files
configure:3268: /home/E341484/gnu-install/gcc_build/./gcc/xgcc -B/home/E341484/gnu-install/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include    -c -g -O2  conftest.c >&5
/home/E341484/gnu-install/gcc_build/./gcc/cc1: error while loading shared libraries: libcloog.so.0: cannot open shared object file: No such file or directory
configure:3272: $? = 1

This seems to suggest I'm missing libcloog.so.0.  However I have installed this already:

ls -l /usr/local/lib/libcloog*
lrwxrwxrwx 1 root root     17 Nov  2 07:04 /usr/local/lib/libcloog.so.0 -> libcloog.so.0.0.0
-rwxr-xr-x 1 root root 323388 Nov  2 07:04 /usr/local/lib/libcloog.so.0.0.0

(in addition to .a and .1a and .so as well in the same place).  The path to these is specified in the configure command (with --with-cloog=/usr/local ).  

So shouldn't it be found?  

In another post from Johnathan Wakely, he sent some links to these web pages:  

http://gcc.gnu.org/wiki/FAQ#configure_suffix
http://advogato.org/person/redi/diary/253.html

This suggests the 'cannot compute object file suffix' error is related to not having the prerequisites in place. I have however installed all of them (gmp-4.3.2, mpc-0.9, mpfr-3.1.0 in addition to ppl-0.11.2 and clog-ppl-0.15.11), and their locations are all specified in the configure statement (--with-gmp=/usr/local --with-mpc=/usr/local etc.).  

The 2nd link suggests using the ./contrib./download_prerequisites script to get the correct prerequisites in the correct places, which I then did (after freshly re-expanding everything from the .tar file and deleting everything from the gcc_build directory).  

I then ran:

../gcc-4.6.2/configure -enable-languages=c,c++,fortran
make

but this also failed with the errors described below (suggests I have conflicting versions of gmp: do I need to find and get rid of gmp-3.x.x to get this to work?).  

gcc   -g -fkeep-inline-functions -DIN_GCC   -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-format-attribute -Wold-style-definition -Wc++-compat -fno-common  -DHAVE_CONFIG_H  -o cc1 c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o \
          cc1-checksum.o main.o tree-browser.o libbackend.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a ../libcpp/libcpp.a   ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a   -lppl_c -lppl -lpwl -lgmpxx -L/home/E341484/gnu-install/gcc_build/./gmp/.libs -L/home/E341484/gnu-install/gcc_build/./mpfr/.libs -L/home/E341484/gnu-install/gcc_build/./mpc/src/.libs -lmpc -lmpfr -lgmp -rdynamic -ldl  -L../zlib -lz
/usr/bin/ld: warning: libgmpxx.so.4, needed by /usr/local/lib/libppl_c.so, may conflict with libgmpxx.so.3
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libgmpxx.so: undefined reference to `__gmp_doprnt_mpf'
collect2: ld returned 1 exit status

Thanks,
Wharton


-----Original Message-----
From: Ian Lance Taylor [mailto:iant@xxxxxxxxxx] 
Sent: Friday, November 04, 2011 6:44 PM
To: Sinkler, Wharton
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: gcc-4.6.2 build problem related to xgcc not liking '-V' option on i686-pc-linux-gnu

"Sinkler, Wharton" <Wharton.Sinkler@xxxxxxx> writes:

> I found more detail on the make failure in the file ./i686-pc-linux-gnu/libgcc/config.log, which shows an error occurring at this statement:
>
> configure:3028: /home/E341484/gnu-install/gcc_build/./gcc/xgcc -B/home/E341484/gnu-install/gcc_build/./gcc/ -B/usr/local/i686-pc-linux-gnu/bin/ -B/usr/local/i686-pc-linux-gnu/lib/ -isystem /usr/local/i686-pc-linux-gnu/include -isystem /usr/local/i686-pc-linux-gnu/sys-include    -V >&5
> xgcc: error: unrecognized option '-V'
> xgcc: fatal error: no input files
> compilation terminated.

This is not the problem.  This is a result of the configure script
testing whether the compiler supports the -V option.

You are looking in the right place, but you need to look for the last
error in the config.log file.

Ian



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux