It is currently Thu Dec 14, 2017 9:41 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: MinGW/msys error!
PostPosted: Sat Jun 10, 2017 5:16 pm 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
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


???


Top
 Profile  
 
 Post subject: Re: MinGW/msys error!
PostPosted: Sat Jun 10, 2017 5:25 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19346
Location: NE Indiana, USA (NTSC)
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.


Top
 Profile  
 
 Post subject: Re: MinGW/msys error!
PostPosted: Sat Jun 10, 2017 5:44 pm 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
It was working perfectly fine until today. I have no clue what happened.


Top
 Profile  
 
 Post subject: Re: MinGW/msys error!
PostPosted: Sat Jun 10, 2017 6:11 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19346
Location: NE Indiana, USA (NTSC)
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?


Top
 Profile  
 
 Post subject: Re: MinGW/msys error!
PostPosted: Sat Jun 10, 2017 6:39 pm 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
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).


Last edited by Zepper on Sun Jun 11, 2017 3:13 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: MinGW/msys error!
PostPosted: Sun Jun 11, 2017 3:13 pm 
Offline
Formerly Fx3
User avatar

Joined: Fri Nov 12, 2004 4:59 pm
Posts: 3076
Location: Brazil
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group