換了備援電腦後,真是災難多多,又遇到下面的怪問題
ERROR 2019-01-25 01:22:10,196 instance_factory.py:232] Failed to build Go application: (Executed command: go build -o /var/folders/g8/pl2kcty97ws3pj032rw5jd100000gp/ T/tmpBSDtuqappengine-go-bin/_ah_exe)# net In file included from /usr/local/Cellar/go/1.11.4/libexec/src/net/ cgo_bsd.go:11: In file included from /Applications/Xcode.app/Contents/Developer/ Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include /netdb.h:90: 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^ /usr/local/include/stdint.h:59:11: error: #include nested too deeply ^ /usr/local/include/stdint.h:72:11: error: #include nested too deeply ^ /usr/local/include/stdint.h:76:10: error: #include nested too deeply ^ /usr/local/include/stdint.h:82:11: error: #include nested too deeply ^ 5 errors generated. WARNING 2019-01-25 01:22:10,214 instance.py:297] Could not get PID of instance
上網搜尋後發現也有不少類似災情?
- MacOS High Sierra: Build error - "#include nested too deeply"
- High Sierraへのアップグレードでkisielk/errcheckがエラー吐いた件
最後靠這招解決:
mkdir /tmp/includes
brew doctor 2>&1 | grep "/usr/local/include" |\
awk '{$1=$1;print}' | xargs -I _ mv _ /tmp/includes
沒有留言 :
張貼留言