https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105614
--- Comment #18 from gagan sidhu (broly) <broly at mac dot com> --- hi, i wanted to correct an inaccuracy in my previous comment, as i needed to build a MIPS64 multilib toolchain today and ran into the same problem. the solution is, as my friend of chinese origin suggested: https://reviews.llvm.org/D129749 the solution here: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=9f943b2446f2d0 is not conducive to the overall fix, which i will be commenting on in the llvm review since it's not exactly relevant to the issue here. this issue focuses exclusively on the assertion failure, but not the struct stat issues that arise when trying to build a multilib toolchain for MIPS. sorry for any confusion!