[Windows] Git-Bash에서 Make 명령어 오류
C:\Program: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)

윈도우환경에서 Git-Bash로 Make 명령어 실행 시 C:\Program: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3) 오류가 발생하였다.
$ make dev "C:\Program: Interrupt/Exception caught (code = 0xc00000fd, addr = 0x4227d3)
SHELL=C:/Windows/System32/cmd.exe
Makefile의 상단에 SHELL을 지정하면 make 명령어는 정상적으로 수행되었다. 그러나 ./ 명령어가 실행이 되지 않는다. 윈도우 환경에서 make 명령어 중 내부적으로는 ./ 명령어를 수행해야 했으므로 Git-Bash는 필수적(?)이었다. 어떻게 해야 할까?
Make for Windows
• Complete package, except sources Setup 3384653 25 November 2006 8ae51379d1f3eef8360df4e674f17d6d
gnuwin32.sourceforge.net
$ make -v GNU Make 3.81 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-pc-mingw32
Make 명령어를 사용하기 위해서 위 URL에서 다운로드 하였는데 현재 사용중인 GNU Make의 버전은 3.81이다. 결국 이 GNU make의 구형버전이 문제이다. 구형버전이 Git과 충돌을 일으키는 버그가 있을 수 있다고 하며, 해당 오류가 발생하지 않으면 그대로 사용하면 된다.
아래 링크를 참조하여 MinGW(Minimalist GNU for Windows)를 설치하여 mingw32-make명령어로 대신하자.
[Windows] MinGW 설치하여 gcc, gcc+, make 사용하기
[Windows] MinGW 설치하여 gcc, gcc+, make 사용하기 MinGW는 마이크로소프트 윈도우로 포팅한 GNU 소프트웨어 도구 모음이다. MinGW는 윈도우 API를 구현할 수 있는 헤더 파일들을 가지고..
jiurinie.tistory.com
- mingw32-make 명령어 사용방법
$ mingw32-make dev
위 오류 없이 정상적으로 makefile을 읽는다.
'기타 프로그램' 카테고리의 다른 글
[Windows] MinGW 설치하여 gcc, gcc+, make 사용하기 (0) | 2022.09.06 |
---|---|
[Windows] GNU Make 설치하여 make 명령어 사용하기 (0) | 2022.08.31 |
댓글