I'm not sure if this is an issue with Premake or not. I was trying to use premake (through MSys) for GNU on the Unofficial OpenGL SDK. Running premake will proceed up to a point where a warning pops up saying that mktemp has stopped working. After choosing to close the program, the Premake utility will continue and makefiles will be generated, but running make on these yields an error.
I can't seem to find anything related on Google other than this:
https://github.com/shoes/shoes/issues/97
Running premake for CodeBlocks or Xcode3 on the same archive doesn't seem to yield any problems. I only get this error when trying to use the 'gmake' setting on Premake.
So I'm trying to determine whether this is a 64 bit W7 issue, a Premake issue or an Unofficial OpenGL SDK issue. Obviously, I'm a noob with this stuff, so any thoughts/ suggestions would be greatly appreciated.

Could you post output of Premake and exact error message from make?
This is the output for premake when using the 'gmake' parameter. The mktemp.exe error comes up when 'creating ./config.status'. I include the output for make after this:
And the output for make on the same directory:
I guess your Cygwin installation is broken. It seems like you don't have working sed, sort, and cc.
UPDATE: Must have been writing this when you responded.
Made some progress, but still get make error. Unfortunately I went about this in a way that was not methodical, but I can narrow down part of the problem to 4 Cygwin packages. I downloaded and installed the binutils packages for Cygwin, 3 of which were specifically for use with MinGW. My reasoning was that maybe the mktemp.exe file was corrupt, which is included in the binutils package for Cygwin. So now after using premake, I no longer get the 'mktemp.exe' has stopped working error.
I'm guessing that the problem is in the glload directory or makefile, since I still get the same make error for glload (printed at the end of my previous post). I have now run make in the glutil and glmesh subdirectories and it appears that they were built properly (no error output and .a files created).
Output from running make in the glload directory:
>I downloaded and installed the binutils packages for Cygwin, 3 of which were specifically for use with MinGW.
You cannot use MinGW within Cygwin. It's a native Windows toolchain.
I ran make from the Cygwin Terminal and it seemed to work fine. So my problem was that I was using the MinGW Shell to run make? BTW, expressing gratitude here so as not to waste another comment: Thanks!
Sorry, I couldn't understand if you've solved your problems or not. However, you should consider the next things:
1) Don't mix up Cygwin and MinGW - they are 2 different worlds. MinGW is port of GCC + minimal GNU evironment that runs on Windows and targets Windows. Cygwin is a complete Unix-like environment on top of Windows, and its compiler targets the same environemnt (i.e., resulting binary is not easily redistributable)
2) /c/cygwin/bin/cc is not a traditional Windows path. Such paths will work only with POSIX-compliant shell (e.g. bash) and won't work with cmd.exe. Look what shell are you starting in each case.
3) Those "shell" items in Windows menu can start not only different shells, but also the same shell but with different environment variables. It's also important.
The problem is solved. Thanks for the info and help!
Thanks for getting that sorted, annulen.