On 12/05/2017 13:47, Pintu wrote: > I am trying to build gcc-4.8.5 on Ubuntu 16.04. This OS already has gcc 5.4 > which I am using to build gcc-4.8.5, but after running for 15 minutes, it's > throwing an error [snip error] > can any one help me out to resolve this issue. The problem is on line 42 of your build script :-p PPAs (Personal Package Archives) are sometimes useful. https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test But it looks like this PPA doesn't provide *older* versions, only newer, so it doesn't help here.