This doesn't solve the root of the problem but does using the CMake build system instead work for you? $ mkdir build $ cd build/ $ cmake -DLLVM_TARGETS_TO_BUILD=Mips -G Ninja <llvm-src>/ $ ninja If you don't have ``ninja`` just remove the ``-G Ninja`` from the CMake invocation and you can build with ``make`` instead.