If you are compiling gnuarm and hit the error
Most probably this is because you have not followed the instructions for building exactly. The instructions to build mention that we have to run configure and make steps in a separate directory for build and not in the source directroy itself, though it is not mentioned that not doing so might lead to failure of build.
Thus to get around the above error, create a directory let us say "builddir" in the source folder.
"cd" into the "builddir" and run configure from there by giving the relative or absolute path to the configure in the source directory, for eg if hte buildir is in source folder itself then
That should take care of the above error.