Thanks for the info. I do understand that I should work with GCC 4.5.3 but this is a generic question / issue for which I seek help. So please let me know the workaround / fix if the same is applicable for GCC 4.5.3 version. I actually move GMP / MPFR / MPC under gcc-4.5.0 folder: Created gmp / mpfr / mcp folders and copied / extracted respective tar files. Doing this way I was able to successfully build GCC 4.5.0 Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1003>/x/home/prakash_prasad/shared_scripts/bin/gcc/gcc-4.5.0/configure --prefix=/x/home/prakash_prasad/shared_scripts/bin/gcc/gcc-4.5.0 --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++ However I see the following binaries getting build - Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1030> find . -name '*gcc' -perm /u=x,g=x,o=x -type f -exec ls -l \{} \; -rwxrwxr-x 1 prakash_prasad ppusers 705019 Feb 13 10:04 ./host-x86_64-unknown-linux-gnu/gcc/xgcc -rwxrwxr-x 1 prakash_prasad ppusers 513868 Feb 12 18:57 ./host-x86_64-unknown-linux-gnu/stage1-gcc/xgcc -rwxrwxr-x 1 prakash_prasad ppusers 300059 Feb 12 19:45 ./host-x86_64-unknown-linux-gnu/prev-gcc/xgcc Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1031> Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1031> find . -name 'g++' -perm /u=x,g=x,o=x -type f -exec ls -l \{} \; -rwxrwxr-x 1 prakash_prasad ppusers 712422 Feb 13 10:04 ./host-x86_64-unknown-linux-gnu/gcc/g++ -rwxrwxr-x 1 prakash_prasad ppusers 304198 Feb 12 19:45 ./host-x86_64-unknown-linux-gnu/prev-gcc/g++ Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1032> Is gcc executable and xgcc are same? Anyway I went forward to tested my code: Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1032> cat test.cpp #include <iostream> #include <stdio.h> main() { printf("Test\n"); std::cout<<"Test" << std::endl; } And got the below output: Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1148> ./host-x86_64-unknown-linux-gnu/gcc/xgcc --version xgcc (GCC) 4.5.0 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1036> ./host-x86_64-unknown-linux-gnu/gcc/g++ --version g++ (GCC) 4.5.0 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1149> ./host-x86_64-unknown-linux-gnu/gcc/xgcc test.cpp xgcc: error trying to exec 'cc1plus': execvp: No such file or directory Linux:>~/shared_scripts/bin/gcc/gcc-4.5.0 1035> ./host-x86_64-unknown-linux-gnu/gcc/g++ test.cpp g++: error trying to exec 'cc1plus': execvp: No such file or directory Kindly note that I using stage1 boxes where we do not have permissions to install anything. Will this issue will happen for version GCC 4.5.3 also? What is the fix for same and any workaround for same? What do I need to install further, when we have below gcc version already deployed and avaliable for other developers: Linux:>~ 1038> which gcc /usr/bin/gcc Linux:>~ 1039> which g++ /usr/bin/g++ Linux:>~ 1040> /usr/bin/gcc --version gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Linux:>~ 1041> /usr/bin/g++ --version g++ (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46) Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Linux:>~ 1042> /usr/bin/g++ /x/home/satprasad/shared_scripts/bin/gcc/gcc-4.5.0/test.cpp Linux:>~ 1043> a.out Test Test Linux:>~ 1044> Please help to resolve the issue if it is a generic one. Regards, Prakash On Mon, Feb 13, 2012 at 2:03 AM, Jonathan Wakely <jwakely.gcc@xxxxxxxxx> wrote: > On 13 February 2012 00:35, Satya Prakash Prasad wrote: >> I downloaded GCC 4.5 from >> http://www.netgull.com/gcc/releases/gcc-4.5.0/ but when I try to setup >> / build I am getting below error: > > Also, is there a good reason you downloaded GCC 4.5.0 not 4.5.3? > 4.5.3 has several bugs fixed compared to 4.5.0