Workarounds for error using GNU make command under Windows

Source: Internet
Author: User

Workarounds for error using GNU make command under Windows
=
> Error message: Make:interrupt/exception caught (code = 0xc00000fd, addr = 0x4227d3)

# 1. Reason
The environment variable is configured with ' D:\Program Files ' (x86) \git\bin, a ' sh.exe ' exists in the directory

When the make command is executed, if the path to the shell is not specified in the ' MakeFile ' file, ' makes ' will go to the environment variable and find a ' x:\\xxx\xxx\sh.exe ' as its default shell
> Original
```
The program used as the shell was taken from the variable shell. If This variable was not a set in your makefile, the program/bin/sh is used as the shell. The argument (s) passed to the shell is taken from the variable. Shellflags. The default value of. Shellflags Is-c Normally, Or-ec in posix-conforming mode.
```
> Reference: https://www.gnu.org/software/make/manual/html_node/Choosing-the-Shell.html

Because the environment variable is configured with ' D:\Program files ' (x86) \git\bin, make takes ' D:\Program files (x86) \git\bin\sh.exe ' as its shell

In Windows, the ' C:\Windows\System32\cmd.exe ' is used as the shell, so it produces the error shown in the title

# # 2. Workaround
At the initial location of the ' MakeFile ' file, add:
"' Makefile
Shell=c:\windows\system32\cmd.exe
```

Workarounds for error using GNU make command under Windows

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.