They had stuff, but it was all proprietary. The N64 was a stripped-down implementation of the technology used on (high-end) SGI graphics workstations of the time. SGI certainly had all the required tools.
Recompilation projects aren't bit perfect, only decomps. They use a recompiled version of the compilers for Linux so that they don't need to emulated with QEMU like they used to, though.
Come to think of it, it must have, because the bit-perfect recompilation projects are using the exact compilers from the SDK.