nesdev.com
http://forums.nesdev.com/

MinGW/msys error!
http://forums.nesdev.com/viewtopic.php?f=5&t=16062
Page 1 of 1

Author:  Zepper [ Sat Jun 10, 2017 5:16 pm ]
Post subject:  MinGW/msys error!

No clue what happened in my system. All was working fine... until then.
Code:
C:\rnes>make clean
C:\MinGW\msys\1.0\bin\rm -f *.o *~ "#"*"#" RockNES.exe
/usr/bin/sh: C:MinGWmsys1.0binrm: command not found
makefile:93: recipe for target 'clean' failed
mingw32-make: *** [clean] Error 127


???

Author:  tepples [ Sat Jun 10, 2017 5:25 pm ]
Post subject:  Re: MinGW/msys error!

First result from Google for msys rm backslash is "Writing portable makefiles" by Sebastien Kramm, which recommends code like this:
Code:
ifdef SystemRoot
    RM=del /F /Q
else
    RM=rm -f
endif

Then, to delete something in the clean target, use $(RM) to select the correct delete command.

Author:  Zepper [ Sat Jun 10, 2017 5:44 pm ]
Post subject:  Re: MinGW/msys error!

It was working perfectly fine until today. I have no clue what happened.

Author:  tepples [ Sat Jun 10, 2017 6:11 pm ]
Post subject:  Re: MinGW/msys error!

Did an update to Windows or MSYS run in the background between then and now? What does your Windows Update history show, and what is the latest file modification date for MSYS files?

Author:  Zepper [ Sat Jun 10, 2017 6:39 pm ]
Post subject:  Re: MinGW/msys error!

Last Windows Update on May 9th 2017.
I reinstalled MinGW + MSYS, but got the same error.

Looks like it's related with sh.exe.

EDIT: that's strange. I reinstalled my MinGW, Allegro library and ZLIB... and still the same error, using the exact same makefile. If I type rm -f *.o, it has no error.

EDIT 2: solved. Looks like MinGW does NOT like MSYS in my PATH (sh.exe).

Author:  Zepper [ Sun Jun 11, 2017 3:13 pm ]
Post subject:  Re: MinGW/msys error!

For some reason, Dev-Cpp is conflicting with the PATH setting X command prompt window. As I said, all was working fine... until then. If I add "C:\MinGW\msys\1.0\bin" to the PATH, Dev-Cpp works, but NOT gcc on command prompt. On other side, if I remove that from the PATH, I can compile my emulator in a command prompt window, but Dev-Cpp now gives the error (see 1st post).

The reason is sh.exe at C:\MinGW\msys\1.0\bin.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/