Error saying cannot compute suffix while building compiler gcc-4.3.2

Vaibhav Shrimali vaibhav.shrimali@gmail.com
Fri Mar 26 08:35:00 GMT 2010


Hello,
I made some changes in the compiler gcc-4.3.2 and am currently trying
to build the compiler.
There are no compilation error in the source code. I followed the
steps specified at : http://gcc.gnu.org/install/index.html
while configuring i used the command:

root@vebs-pc:/home/vebs/gcc/gcc# export SUF=-4.3
root@vebs-pc:/home/vebs/gcc/gcc# /home/vebs/gcc/gcc-4.3.2/configure
--program-suffix=$SUF
root@vebs-pc:/home/vebs/gcc/gcc# make -f Makefile

it exits and gives the following output.. whose last few lines are:

******************************************
checking for i686-pc-linux-gnu-gcc... /home/vebs/gcc/gcc/./gcc/xgcc
-B/home/vebs/gcc/gcc/./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
checking for suffix of object files... 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/vebs/gcc/gcc'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/vebs/gcc/gcc'
make: *** [all] Error 2
******************************************

I have tried configuring it:
1. without suffix
2. exporting suffix in environment variable and using that environment
variable as suffix
3. without using environment variable as suffix

but none of the above methods worked.
Please tell me where I am wrong.
Thank You.


-- 
Vaibhav Shrimali
BTech(ICT), DA-IICT
Gandhinagar



More information about the Gcc-patches mailing list