If you get a build failed error without additional compiler errors the gcc toolchain is most likely not installed on your Linux system. Make sure that packages gcc and build-essential are installed.