missing xgcc input in compiling gcc 4.7.0

niuzeta zkkmz.nz@gmail.com
Wed Feb 27 06:40:00 GMT 2013

Hi. I'm trying to build gcc 4.7.0 on Debian squeeze.(gcc 4.4.5)

I have compiled all the dependencies that I need(gmp, mpfr, mpc, ppl, and
CLooG). they're all built into /usr/local.
I have a ~/works/gcc/src directory which contains all the source files, and
/build where I build.

the full configuration command goes as follows:
$ ../../src/gcc-4.7.0/configure --prefix=/usr/local/ \
--program-suffix=4.7 \
--enable-cloog-backend=isl \
--with-gmp=/usr/local/ \
--with-mpfr=/usr/local \
--with-mpc=/usr/local/ \
--with-cloog=/usr/local \

In midst of the compilation an error occurred. the error message goes:

make[3]: Leaving directory `/home/niuzeta/works/gcc-4.7/build/gcc/gcc'
mkdir -p -- i686-pc-linux-gnu/libgcc
Checking multilib configuration for libgcc...
checking for suffix of object files... configure: error: in
configure: error: cannot compute suffix of object files: cannot compile

so apparently it couldn't compute suffix of object files and could not
A  gcc faq <http://gcc.gnu.org/wiki/FAQ#configure_suffix>   has a section
for this issue. It directed me to look at the config.log file at the path.
so I looked at it.

the first error happens as follows, now becoming relevant to the subject:

configure:3418: $? = 0 
configure:3407: /home/niuzeta/works/gcc-4.7/build/gcc/./gcc/xgcc
-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 command line option '-V'
xgcc: fatal error: no input files
configure:3418: $? = 1

there's an input file missing for xgcc.
Following this are more errors with missing input file that ends with
checking for suffix, the original error message that I encountered:

configure:3437: $? = 1
configure:3625: checking for suffix of object files
configure:3647: /home/niuzeta/works/gcc-4.7/build/gcc/./gcc/xgcc
-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/niuzeta/works/gcc-4.7/build/gcc/./gcc/cc1: error while loading shared
libraries: libppl_c.so.4: cannot open shared object file: No such file or
configure:3651: $? = 1
configure: failed program was:
| /* confdefs.h */
configure:3665: error: in
configure:3668: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.

To my understanding, the previous operations had an exit status of 0,
whatever it was.
then the xgcc operation with a lot of options attached. but there's no input

I have no idea why it had to reference '.' before going into gcc
subdirectory, but this doesn't seem to have to do anything with any of the

the error message later says it failed to find shared object file
libppl_c.so, but it is indeed in /usr/local/libs. I think the error on
libppl_c is misleading because xgcc argument failed first and I think it
caused the later error to occur.

I am quite stumped and if anyone could shed an insight I would be grateful.

View this message in context: http://gcc.1065356.n5.nabble.com/missing-xgcc-input-in-compiling-gcc-4-7-0-tp917425.html
Sent from the gcc - Help mailing list archive at Nabble.com.

More information about the Gcc-help mailing list