Hello, I am trying to compile gcc-4.0.2 on my amd64 system running linux kernel 2.6.14. The compilation is failing here checking for x86_64-unknown-linux-gnu-gcc... /home/vgarg/SharedDocs/4995/gcc-obj/gcc/xgcc -B/home/vgarg/SharedDocs/4995/gcc-obj/gcc/ -B/home/vgarg/local/bin/x86_64-unknown-linux-gnu/bin/ -B/home/vgarg/local/bin/x86_64-unknown-linux-gnu/lib/ -isystem /home/vgarg/local/bin/x86_64-unknown-linux-gnu/include -isystem /home/vgarg/local/bin/x86_64-unknown-linux-gnu/sys-include -m32 checking for C compiler default output file name... a.out checking whether the C compiler works... configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details. make[1]: *** [configure-target-libstdc++-v3] Error 1 make[1]: Leaving directory `/home/vgarg/SharedDocs/4995/gcc-obj' make: *** [bootstrap] Error 2 Can anyone tell me how to fix this ? Thanks Vibhav