This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: error in building gcc
Sandeep Soni <saintiwara@gmail.com> writes:
> I get the following error on the console:
>
> checking for i686-pc-linux-gnu-gcc...
> /home/sandy/Devl/gcc-bin/./gcc/xgcc -B/home/sandy/Devl/gcc-bin/./gcc/
> -B/home/sandy/Devl/usr/local/i686-pc-linux-gnu/bin/
> -B/home/sandy/Devl/usr/local/i686-pc-linux-gnu/lib/ -isystem
> /home/sandy/Devl/usr/local/i686-pc-linux-gnu/include -isystem
> /home/sandy/Devl/usr/local/i686-pc-linux-gnu/sys-include
> checking for suffix of object files... configure: error: in
> `/home/sandy/Devl/gcc-bin/i686-pc-linux-gnu/libgcc':
> configure: error: cannot compute suffix of object files: cannot compile
> See `config.log' for more details.
> make[2]: *** [configure-stage1-target-libgcc] Error 1
> make[2]: Leaving directory `/home/sandy/Devl/gcc-bin'
> make[1]: *** [stage1-bubble] Error 2
> make[1]: Leaving directory `/home/sandy/Devl/gcc-bin'
> make: *** [bootstrap] Error 2
>
>
> Can someone tell me why I am getting such an error and how I could remove it?
>
> I am also attaching the config.log file.
There are, sadly, several config.log files, and you attached the wrong
one. The relevant one is the one in i686-pc-linux-gnu/libgcc.
Ian