{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/folly/issues/50","labels_url":"https://api.github.com/repos/facebook/folly/issues/50/labels{/name}","comments_url":"https://api.github.com/repos/facebook/folly/issues/50/comments","events_url":"https://api.github.com/repos/facebook/folly/issues/50/events","html_url":"https://github.com/facebook/folly/issues/50","id":28812703,"number":50,"title":"Compliation error on OS X: linux/futex.h: No such file or directory","user":{"login":"duedal","id":629894,"avatar_url":"https://avatars.githubusercontent.com/u/629894?v=3","gravatar_id":"","url":"https://api.github.com/users/duedal","html_url":"https://github.com/duedal","followers_url":"https://api.github.com/users/duedal/followers","following_url":"https://api.github.com/users/duedal/following{/other_user}","gists_url":"https://api.github.com/users/duedal/gists{/gist_id}","starred_url":"https://api.github.com/users/duedal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duedal/subscriptions","organizations_url":"https://api.github.com/users/duedal/orgs","repos_url":"https://api.github.com/users/duedal/repos","events_url":"https://api.github.com/users/duedal/events{/privacy}","received_events_url":"https://api.github.com/users/duedal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-03-05T18:21:58Z","updated_at":"2015-04-07T18:31:08Z","closed_at":null,"body":"After 79c25e6f4a folly can no longer compile on OS X.\r\n\r\nFails with ``` detail/Futex.h:24:25: fatal error: linux/futex.h: No such file or directory ```.\r\n\r\nPrior to 79c25e6f4a it would compile.\r\n\r\nReproduce (tested on 10.9.2 but should fail on others too).\r\n\r\nDependencies (if you don't have them)\r\n``` sh\r\nbrew install boost glog gflags jemalloc scons cmake autoconf automake libtool gcc49 \r\ngit clone https://code.google.com/p/double-conversion/\r\ncd double-conversion/\r\ncmake .\r\nmake\r\nmake install\r\n```\r\n\r\nFolly:\r\n``` sh\r\ngit clone https://github.com/facebook/folly.git folly\r\ncd folly/folly/test\r\nwget http://googletest.googlecode.com/files/gtest-1.6.0.zip\r\nunzip gtest-1.6.0.zip\r\ncd ../\r\nautoreconf --install\r\nCXX=\"/usr/local/bin/g++-4.9\" CC=\"/usr/local/bin/gcc-4.9\" ./configure\r\nmake\r\n```\r\n\r\nError:\r\n```\r\nlibtool: compile:  /usr/local/bin/g++-4.9 -DHAVE_CONFIG_H -I../. -I./io -I./test -pthread -I/usr/local/include -std=gnu++0x -g -O2 -MT json.lo -MD -MP -MF .deps/json.Tpo -c json.cpp -o json.o >/dev/null 2>&1\r\nmv -f .deps/json.Tpo .deps/json.Plo\r\n/bin/sh ./libtool  --tag=CXX   --mode=compile /usr/local/bin/g++-4.9 -DHAVE_CONFIG_H   -I../. -I./io -I./test -pthread -I/usr/local/include   -std=gnu++0x -g -O2 -MT MemoryIdler.lo -MD -MP -MF .deps/MemoryIdler.Tpo -c -o MemoryIdler.lo `test -f 'detail/MemoryIdler.cpp' || echo './'`detail/MemoryIdler.cpp\r\nlibtool: compile:  /usr/local/bin/g++-4.9 -DHAVE_CONFIG_H -I../. -I./io -I./test -pthread -I/usr/local/include -std=gnu++0x -g -O2 -MT MemoryIdler.lo -MD -MP -MF .deps/MemoryIdler.Tpo -c detail/MemoryIdler.cpp  -fno-common -DPIC -o .libs/MemoryIdler.o\r\nIn file included from detail/MemoryIdler.h:25:0,\r\n                 from detail/MemoryIdler.cpp:17:\r\ndetail/Futex.h:24:25: fatal error: linux/futex.h: No such file or directory\r\n #include <linux/futex.h>\r\n                         ^\r\ncompilation terminated.\r\nmake[2]: *** [MemoryIdler.lo] Error 1\r\nmake[1]: *** [all-recursive] Error 1\r\nmake: *** [all] Error 2\r\n```\r\n\r\nChecking out 6d89f3d33268eaa12d5eb03a4afa5caa856306c5 resolves the above compile issue, and with a few additional fixes (https://gist.github.com/duedal/7887803) the entire lib can compile. "},"comment":{"url":"https://api.github.com/repos/facebook/folly/issues/comments/90691305","html_url":"https://github.com/facebook/folly/issues/50#issuecomment-90691305","issue_url":"https://api.github.com/repos/facebook/folly/issues/50","id":90691305,"user":{"login":"facebook-github-bot-5","id":8398657,"avatar_url":"https://avatars.githubusercontent.com/u/8398657?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot-5","html_url":"https://github.com/facebook-github-bot-5","followers_url":"https://api.github.com/users/facebook-github-bot-5/followers","following_url":"https://api.github.com/users/facebook-github-bot-5/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot-5/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot-5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot-5/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot-5/orgs","repos_url":"https://api.github.com/users/facebook-github-bot-5/repos","events_url":"https://api.github.com/users/facebook-github-bot-5/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot-5/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T18:31:08Z","updated_at":"2015-04-07T18:31:08Z","body":"Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed."}}