Skip to content

make failing on cygwin #669

Answered by kkitayam
pran005 asked this question in Q&A
Discussion options

You must be logged in to vote

As far as command prompt is concerned, I tried installing make using choco pack manager, but the results were similar to that of cygwin.

I guess that your PATH environment variable has C:\cygwin64\bin for cygwin. The path for cygwin causes failure.
make for windows treats SHELL environment variable as special. Please refer to Choosing-the-Shell
To avoid the issue, would you specify SHELL=cmd.exe on arguments like as following.

C:\> C:\ProgramData\chocolatey\bin\make.exe  SHELL=cmd.exe BOARD=<board_name>

In my investigation is followings.
We can check by where that which make is priority high on PATH environment.
For example, following is in my environment.

C:\>where make
C:\ProgramData…

Replies: 13 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hathach
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #656 on February 21, 2021 09:21.