uname -s returns MSYS_NT-6.1

336 views
Skip to first unread message

Erik Faye-Lund

unread,
Dec 4, 2012, 4:34:55 AM12/4/12
to msysGit
On one of my development machines, building Git for Windows have
started failing. I traced this down to the Makefile picking up the
wrong platform, because my uname -s no longer returns a string
containing "MINGW"; now it returns "MSYS_NT-6.1" instead. "which
uname" returns "/bin/uname", and "git log /bin/uname.exe" shows that
there are no recent changes to uname itself. There are no file called
"/bin/uname" without an extension, nor any with another extension than
".exe".

Does anyone have any clue what might be going on here?

Pat Thoyts

unread,
Dec 4, 2012, 6:54:37 AM12/4/12
to kusm...@gmail.com, msysGit
Looking at http://www.mingw.org/wiki/HOWTO_Create_an_MSYS_Build_Environment
suggests that the msys command can setup your shell for either mingw
or msys building. If MSYSTEM is MSYS you get uname -s prefixed with
MSYS. The normal msysGit build environment shell has MSYSTEM set to
MINGW32 (which is the default if you start msys with no arguments.)

Probably you got MSYSTEM in your environment somehow.

Erik Faye-Lund

unread,
Dec 4, 2012, 8:50:58 AM12/4/12
to Pat Thoyts, msysGit
Thanks. This was indeed the error. I can't really figure out what did,
but it seems it had only happened in one open shell, and wasn't set
system-wide. So if I reopened the shell, the problem was gone. Great!
:)

Pat Thoyts

unread,
Dec 4, 2012, 11:43:19 AM12/4/12
to kusm...@gmail.com, msysGit
You probably typed msys twice when opening the shell. Thats how to set
it under normal circumstances -- easy to do if you're distracted by
something.

Erik Faye-Lund

unread,
Dec 4, 2012, 11:44:13 AM12/4/12
to Pat Thoyts, msysGit
I'm not sure I follow that... I start my shell by double clicking an
icon on the desktop, not by typing anything.

Johannes Schindelin

unread,
Dec 4, 2012, 12:07:16 PM12/4/12
to Erik Faye-Lund, msysGit
Hi kusma,
You did not set the environment variable MSYSTEM to MSYS, perchance?

Ciao,
Dscho

Erik Faye-Lund

unread,
Dec 4, 2012, 12:30:20 PM12/4/12
to Johannes Schindelin, msysGit
I'm pretty sure *I* didn't, as I wasn't even aware of it's existence.
But *something* did, and it's not permanent. Thanks for pointing me in
the right direction, I'll dig further if it turns up again in the
future :)
Reply all
Reply to author
Forward
0 new messages