https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82348
--- Comment #8 from Ian Lance Taylor <ian at airs dot com> --- If the re-generated math.lo.dep file does not refer to internal/cpu.gox, then something went wrong the first time the file was generated. Try simply removing your TARGET/libgo directory and building from scratch. The commands I mentioned were all intended to be executed in the TARGET/libgo directory, not in the source directory. Please make sure that nothing you did modified the source directory.