{"action":"created","issue":{"url":"https://api.github.com/repos/neovim/neovim/issues/4896","repository_url":"https://api.github.com/repos/neovim/neovim","labels_url":"https://api.github.com/repos/neovim/neovim/issues/4896/labels{/name}","comments_url":"https://api.github.com/repos/neovim/neovim/issues/4896/comments","events_url":"https://api.github.com/repos/neovim/neovim/issues/4896/events","html_url":"https://github.com/neovim/neovim/issues/4896","id":159107311,"number":4896,"title":"Failed to build on mac os x(El Capitan)","user":{"login":"xiongmao86","id":1770218,"avatar_url":"https://avatars.githubusercontent.com/u/1770218?v=3","gravatar_id":"","url":"https://api.github.com/users/xiongmao86","html_url":"https://github.com/xiongmao86","followers_url":"https://api.github.com/users/xiongmao86/followers","following_url":"https://api.github.com/users/xiongmao86/following{/other_user}","gists_url":"https://api.github.com/users/xiongmao86/gists{/gist_id}","starred_url":"https://api.github.com/users/xiongmao86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiongmao86/subscriptions","organizations_url":"https://api.github.com/users/xiongmao86/orgs","repos_url":"https://api.github.com/users/xiongmao86/repos","events_url":"https://api.github.com/users/xiongmao86/events{/privacy}","received_events_url":"https://api.github.com/users/xiongmao86/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-06-08T08:31:08Z","updated_at":"2016-06-08T13:22:23Z","closed_at":null,"body":"I try to build the nvim on os x and failed with config.log showing stdio.h not found. When I build jemalloc myself, it turns out OK. \r\n\r\nI checked the different config.log, the problem is the CMake set the DEPS_C_COMPILER as **\"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc\"** and this compiler **doesn't find** stdio.h but **\"gcc\"** **does**.\r\n\r\nI checked the cc -v and find out the CMake version needs to add \"-isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk\". \r\n\r\nIt's probably the CMake team's responsibility to change the code. The Darwin Module is old. But it would be nice *to have a work around*. It's difficult to figure out how to write. Can someone please pull a request. Or if you don't have time, I can try to figure it out, with some help.\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/neovim/neovim/issues/comments/224586798","html_url":"https://github.com/neovim/neovim/issues/4896#issuecomment-224586798","issue_url":"https://api.github.com/repos/neovim/neovim/issues/4896","id":224586798,"user":{"login":"xiongmao86","id":1770218,"avatar_url":"https://avatars.githubusercontent.com/u/1770218?v=3","gravatar_id":"","url":"https://api.github.com/users/xiongmao86","html_url":"https://github.com/xiongmao86","followers_url":"https://api.github.com/users/xiongmao86/followers","following_url":"https://api.github.com/users/xiongmao86/following{/other_user}","gists_url":"https://api.github.com/users/xiongmao86/gists{/gist_id}","starred_url":"https://api.github.com/users/xiongmao86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiongmao86/subscriptions","organizations_url":"https://api.github.com/users/xiongmao86/orgs","repos_url":"https://api.github.com/users/xiongmao86/repos","events_url":"https://api.github.com/users/xiongmao86/events{/privacy}","received_events_url":"https://api.github.com/users/xiongmao86/received_events","type":"User","site_admin":false},"created_at":"2016-06-08T13:22:23Z","updated_at":"2016-06-08T13:22:23Z","body":"conftest.c:\r\n`/* end confdefs.h.  */\r\n#include <stdio.h>\r\nint\r\nmain ()\r\n{\r\n    FILE *f = fopen (\"conftest.out\", \"w\");\r\n    return ferror (f) || fclose (f) != 0;\r\n\r\n  ;\r\n  return 0;\r\n}\r\n`\r\n\r\ncc -v -o conftest conftest.c\r\n`Apple LLVM version 7.3.0 (clang-703.0.31)\r\nTarget: x86_64-apple-darwin15.5.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/ToolChains/XcodeDefault.xctoolchain/usr/bin\r\n \"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang\" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name conftest.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 264.3.102 -v -dwarf-column-info -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0 -fdebug-compilation-dir /Users/Rui-Mac/source/temp/testjemalloc -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/53/w9dxkz7122sbzpqr98tx9vt40000gn/T/conftest-c29704.o -x c conftest.c\r\nclang -cc1 version 7.3.0 (clang-703.0.31) default target x86_64-apple-darwin15.5.0\r\nignoring nonexistent directory \"/usr/include\"\r\n#include \"...\" search starts here:\r\n#include <...> search starts here:\r\n /usr/local/include\r\n /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include\r\n /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include\r\n /System/Library/Frameworks (framework directory)\r\n /Library/Frameworks (framework directory)\r\nEnd of search list.\r\nconftest.c:2:10: fatal error: 'stdio.h' file not found\r\n#include <stdio.h>\r\n         ^\r\n1 error generated.`\r\n\r\ngcc -v -o conftest conftest.c\r\n`Apple LLVM version 7.3.0 (clang-703.0.31)\r\nTarget: x86_64-apple-darwin15.5.0\r\nThread model: posix\r\nInstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin\r\n \"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang\" -cc1 -triple x86_64-apple-macosx10.11.0 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name conftest.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2 -target-linker-version 264.3.102 -v -dwarf-column-info -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fdebug-compilation-dir /Users/Rui-Mac/source/temp/testjemalloc -ferror-limit 19 -fmessage-length 80 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.11.0 -fencode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/53/w9dxkz7122sbzpqr98tx9vt40000gn/T/conftest-e417bb.o -x c conftest.c\r\nclang -cc1 version 7.3.0 (clang-703.0.31) default target x86_64-apple-darwin15.5.0\r\nignoring nonexistent directory \"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/local/include\"\r\nignoring nonexistent directory \"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/Library/Frameworks\"\r\n#include \"...\" search starts here:\r\n#include <...> search starts here:\r\n /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/include\r\n /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include\r\n /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include\r\n /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks (framework directory)\r\nEnd of search list.\r\n \"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\" -demangle -dynamic -arch x86_64 -macosx_version_min 10.11.0 -syslibroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -o conftest /var/folders/53/w9dxkz7122sbzpqr98tx9vt40000gn/T/conftest-e417bb.o -lSystem /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/7.3.0/lib/darwin/libclang_rt.osx.a`"}}
{"actor":{"display_login":"xiongmao86"}}