맥 하이시에라 (High Sierra) 에서 make 명령이 아래와 같이 먹지 않을 때가 있습니다. Homebrew 와 같은 맥 패키지 관리툴에서 /usr/local/include 를 확인하지 못해서 그런다고 StackSocial 에서 설명되어 있는데 정확한지 여부는 모르겠습니다.


~/.vim/bun…/vimproc.vim> make  

/Applications/Xcode.app/Contents/Developer/usr/bin/make -f make_mac.mak
clang -O2 -W -Wall -Wno-unused -Wno-unused-parameter -bundle -fPIC  -o lib/vimproc_mac.so src/proc.c
In file included from src/proc.c:77:
In file included from /usr/include/netinet/in.h:68:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
In file included from /usr/local/include/stdint.h:59:
/usr/local/include/stdint.h:2:10: error: #include nested too deeply
#include <stddef.h>
         ^
/usr/local/include/stdint.h:59:11: error: #include nested too deeply
# include <stdint.h>
          ^
/usr/local/include/stdint.h:72:11: error: #include nested too deeply
# include <sys/types.h>
          ^
/usr/local/include/stdint.h:76:10: error: #include nested too deeply
#include <limits.h>
         ^
/usr/local/include/stdint.h:82:11: error: #include nested too deeply
# include <inttypes.h>
          ^
5 errors generated.
make[1]: *** [lib/vimproc_mac.so] Error 1
make: *** [all] Error 2

위와 같이 make 가 진행이 안되고 지속적으로 오류가 발생 할 경우, 아래와 같이 /tmp/includes 로 옮겨 줍니다.

mkdir /tmp/includes
brew doctor 2>&1 | grep "/usr/local/include" | awk '{$1=$1;print}' | xargs -I _ mv _ /tmp/includes

위와 같이 명령을 진행 한 후,

> make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f make_mac.mak
clang -O2 -W -Wall -Wno-unused -Wno-unused-parameter -bundle -fPIC  -o lib/vimproc_mac.so src/proc.c

컴파일이 잘 진행됨을 알 수 있습니다. 맥 하이시에라의 고질적인 이슈 인 것 같습니다~

There are currently no comments.