On 4 October 2017 at 13:36, vyshnav wrote: > I want to replace gcc4.8 with gcc4.4 because C/C++ Binaries double in size > for Centos 7 compared to Centos6. Centos 6 uses gcc4.4 and centos7 uses gcc > 4.8. The difference in size is almost certainly due to extra debug info. If you don't need that info just strip the binaries. Do you really mean *replace*? Replacing the system compiler is a bad idea. You will definitely break your system. > So I was trying to build gcc 4.4 rpm for centos7 using mock build > but I'm getting build error. > > Please find the build log below. > > sinput.adb:776:19: deallocation from empty storage pool > make[3]: *** [ada/sinput.o] Error 1 > make[3]: *** Waiting for unfinished jobs.... > make[3]: Leaving directory > `/builddir/build/BUILD/gcc-4.4.7-20120601/obj-i686-redhat-linux/gcc' > make[2]: *** [all-stage1-gcc] Error 2 > make[2]: Leaving directory > `/builddir/build/BUILD/gcc-4.4.7-20120601/obj-i686-redhat-linux' > make[1]: *** [stage1-bubble] Error 2 > make[1]: Leaving directory > `/builddir/build/BUILD/gcc-4.4.7-20120601/obj-i686-redhat-linux' > make: *** [profiledbootstrap] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.dHhp5l (%build) > RPM build errors: > Bad exit status from /var/tmp/rpm-tmp.dHhp5l (%build) > Child return code was: 1 > > please help me to solve this Do you actually need an Ada compiler? If not, just remove ada from the configuration.