After installing "Development Tools", and reconfigure, build finished successfully. The magic package, which was needed, turned out to be findutils. Weird! > On 26 February 2018 at 23:44 Adesh Kumar <addy@xxxxxxxxxxx> wrote: > > > I am trying to build gcc 4.9.4 with gcc-4.4.7. Base system is a CentOS 6.9 32-bit chroot. I also have gcc-c++ and libstdc++-devel installed. > > configure command: ../gcc-4.9.4/configure --enable-languages=c,c++ > > Then, I run "make", but the build does not succed. What's wrong? Please help! > > It always stops with the following error: > > make[3]: *** [gcov] Error 1 > libcommon-target.a(opts.o): In function `add_comma_separated_to_vector(void**, c > har const*)': > opts.c:(.text+0x11a4): undefined reference to `operator new(unsigned int)' > libcommon.a(pretty-print.o): In function `pretty_printer::~pretty_printer()': > pretty-print.c:(.text+0x287): undefined reference to `operator delete(void*)' > libcommon.a(input.o): In function `_ZL26diagnostic_file_cache_initv.part.5': > input.c:(.text+0x1d9): undefined reference to `operator new[](unsigned int)' > libcommon.a(input.o): In function `diagnostic_file_cache_fini()': > input.c:(.text+0x7f1): undefined reference to `operator delete[](void*)' > collect2: error: ld returned 1 exit status > make[3]: *** [cpp] Error 1 > libcommon-target.a(opts.o): In function `add_comma_separated_to_vector(void**, c > har const*)': > opts.c:(.text+0x11a4): undefined reference to `operator new(unsigned int)' > libcommon.a(pretty-print.o): In function `pretty_printer::~pretty_printer()': > pretty-print.c:(.text+0x287): undefined reference to `operator delete(void*)' > libcommon.a(input.o): In function `_ZL26diagnostic_file_cache_initv.part.5': > input.c:(.text+0x1d9): undefined reference to `operator new[](unsigned int)' > libcommon.a(input.o): In function `diagnostic_file_cache_fini()': > input.c:(.text+0x7f1): undefined reference to `operator delete[](void*)' > collect2: error: ld returned 1 exit status > make[3]: *** [xg++] Error 1 >