Another approach would be to configure NOTHING except set --prefix and --enable-languages If you get that built, then remove the build dir and try again with an extra option, and keep adding one at a time. Trying to build a weird layout with libs in unconventional places and lots of optional settings that you may or may not need is fine, but if you can't even get the build to find your gmp libs then you should start with something simpler.