I've had a similar problem, which IIRC I solved by providing "--host=<target type>" to the gcc ./configure script.