Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'stdarg.h' file not found #17

Open
hezt95 opened this issue May 3, 2015 · 10 comments
Open

fatal error: 'stdarg.h' file not found #17

hezt95 opened this issue May 3, 2015 · 10 comments

Comments

@hezt95
Copy link

hezt95 commented May 3, 2015

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/c++/4.2.1/cstdarg:51:10: fatal error: 'stdarg.h' file not found

经过分别禁用其他插件和本插件,我这里还是提示这个错误。

会不会是我的brew install --with-clang --with-all-targets --with-rt==> Patchingal --jit llvm这个命令导致的呢?这个brew命令执行到make的时候,很长时间没有反应,我就ctrl c了。。

平台:Xcode 6.3.1,安装了command line tools,OS X 10.10.3。

@lvzixun
Copy link
Owner

lvzixun commented May 3, 2015

cc.sublime-settings中的include_options 添加 "-isystem", "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.1.0/include",

默认的那个路径应该是xcode 6.0的路径,升级了Xcode需要修改下头文件路径

@hezt95
Copy link
Author

hezt95 commented May 3, 2015

谢谢!
我试了一下,发现没有用,不管是把原来的6.0改成6.1还是直接添加。
与我的这个命令 brew install --with-clang --with-all-targets --with-rtti --universal --jit llvm 安装的东西无关?我刚又试着make了一下,发现资源占用还是很多。

@lvzixun
Copy link
Owner

lvzixun commented May 3, 2015

理论上是没关系的,因为sublime-text 3用的是clang-complete自带的libclang。你可以在xcode里面看下include <stdarg.h> jump to Definition看下具体include路径,在cc.sublime-settings中配置下看看。

@hezt95
Copy link
Author

hezt95 commented May 3, 2015

OK,插件问题已经解决。

@lvzixun
Copy link
Owner

lvzixun commented May 3, 2015

PS: 改完配置需要重启下sublime Text3 或者 需要你使用快捷键command+. clean下同时command+s保存才能生效。

@hezt95
Copy link
Author

hezt95 commented May 3, 2015

额,我有点强迫症。。刚才那个brew 后面的make,会产生一些不好的影响吗?因为我看到系统的llvm 是3.6.0,而那个brew下载的却都是3.5.1。
如下(原谅我没有用markdown)
brew install --with-clang --with-all-targets --with-rtti --universal --jit llvm
==> Downloading http://llvm.org/releases/3.5.1/llvm-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm-3.5.1.tar.xz
==> Patching
patching file Makefile.rules
==> Downloading http://llvm.org/releases/3.5.1/libcxx-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm--libcxx-3.5.1.tar.xz
==> Downloading http://llvm.org/releases/3.5.1/cfe-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm--clang-3.5.1.tar.xz
==> Downloading http://llvm.org/releases/3.5.1/clang-tools-extra-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm--clang-tools-extra-3.5.1.tar.xz
==> ./configure --prefix=/usr/local/Cellar/llvm/3.5.1 --enable-optimized --disable-bindings --enable-targets=all --enable-shared
==> make
^C^COne sec, just cleaning up

@lvzixun
Copy link
Owner

lvzixun commented May 3, 2015

我提交Github上面有把libclang3.5和头文件提交,对sublime-text本身没啥影响。但是对Xcode就不好说了 Orz

Zitone He [email protected]于2015年5月3日星期日写道:

额,我有点强迫症。。刚才那个brew 后面的make,会产生一些不好的影响吗?因为我看到系统的llvm
是3.6.0,而那个brew下载的却都是3.5.1。
如下(原谅我没有用markdown)
brew install --with-clang --with-all-targets --with-rtti --universal --jit
llvm
==> Downloading http://llvm.org/releases/3.5.1/llvm-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm-3.5.1.tar.xz
==> Patching
patching file Makefile.rules
==> Downloading http://llvm.org/releases/3.5.1/libcxx-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm--libcxx-3.5.1.tar.xz
==> Downloading http://llvm.org/releases/3.5.1/cfe-3.5.1.src.tar.xz
Already downloaded: /Library/Caches/Homebrew/llvm--clang-3.5.1.tar.xz
==> Downloading
http://llvm.org/releases/3.5.1/clang-tools-extra-3.5.1.src.tar.xz
Already downloaded:
/Library/Caches/Homebrew/llvm--clang-tools-extra-3.5.1.tar.xz
==> ./configure --prefix=/usr/local/Cellar/llvm/3.5.1 --enable-optimized
--disable-bindings --enable-targets=all --enable-shared
==> make
^C^COne sec, just cleaning up


Reply to this email directly or view it on GitHub
#17 (comment)
.

@hezt95
Copy link
Author

hezt95 commented May 3, 2015

完了完了完了,我又想抹盘了。。

@lvzixun
Copy link
Owner

lvzixun commented May 3, 2015

你去http://llvm.org/releases/download.html 下个最新版build吧 :)

Zitone He [email protected]于2015年5月3日星期日写道:

完了完了完了,我又想抹盘了。。


Reply to this email directly or view it on GitHub
#17 (comment)
.

@hezt95
Copy link
Author

hezt95 commented May 3, 2015

看着好麻烦= =
对了,您这个插件和sublime linter cppcheck之间会不会产生一些不良影响,在检测方面,还是说基本没有交集?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants