1

Just found an error when use GNUwin32 Make in command line:

gnu make make: Interrupt/Exception caught

My system is Window 7. There are the Make path and the Git path in my system PATH variables.

When I remove git path from PATH variable, there's no error any more on making things.

So my question is :

Is there anyway to avoid this conflict between make and git cmds? Thanks very much~

Zhaiduo
  • 49
  • 1
  • 10
  • Did you put the git path *after* or *before* the make path in your PATH? – VonC Dec 18 '14 at 06:26
  • both tried, before and after. same error. – Zhaiduo Dec 18 '14 at 06:28
  • Can you try and empty the git folder which is in your %PATH%, and add back those elements to see which one triggers the issue? – VonC Dec 18 '14 at 06:30
  • Actually I am doing some Make works, not business with git. Some thing like "make build"; – Zhaiduo Dec 18 '14 at 06:37
  • Here is my paths with git and GNU32 make: ` C:\Program Files (x86)\GnuWin32\bin; C:\Program Files (x86)\Git\bin` – Zhaiduo Dec 18 '14 at 06:38
  • I understand that, but from your question, it appears that if those git executable referenced in your `%PATH%` are there, *then* your `make` commands fail. My suggestion is to empty that `git` folder, and add back those `git` executable, to see which one (by being in the `%PATH%`) will trigger the exception on your *`make`* command. – VonC Dec 18 '14 at 06:40
  • ok, let me try. Thanks~ – Zhaiduo Dec 18 '14 at 06:47
  • It seems `@echo ****` in Makefile trigger the "Interrupt/Exception caught". But no any cmd named like "echo" in git bin folder. @VonC – Zhaiduo Dec 18 '14 at 07:07
  • 1
    Ok. I wasn't suggesting to remove lines in the make script. I was suggesting to remove *files* in the `git/bin` folder. – VonC Dec 18 '14 at 07:10
  • My solution is Rename the `git/bin` folder before `make build`, the return back. – Zhaiduo Dec 18 '14 at 07:29

1 Answers1

0

The OP Zhaiduo reports:

It seems @echo **** in Makefile triggers the "Interrupt/Exception caught".
But no any cmd named like "echo" in git bin folder.

True, but there are commands which are related to managing the echo done in a shell session, like less.exe.

The workaround found by the OP is a bit extreme (but works):

My solution is rename the git/bin folder before make build, the return back.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250