{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10091","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10091/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10091/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10091/events","html_url":"https://github.com/NixOS/nixpkgs/issues/10091","id":108534878,"number":10091,"title":"darwin: http-parser doesn't build with sandbox enabled","user":{"login":"datakurre","id":160447,"avatar_url":"https://avatars.githubusercontent.com/u/160447?v=3","gravatar_id":"","url":"https://api.github.com/users/datakurre","html_url":"https://github.com/datakurre","followers_url":"https://api.github.com/users/datakurre/followers","following_url":"https://api.github.com/users/datakurre/following{/other_user}","gists_url":"https://api.github.com/users/datakurre/gists{/gist_id}","starred_url":"https://api.github.com/users/datakurre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datakurre/subscriptions","organizations_url":"https://api.github.com/users/datakurre/orgs","repos_url":"https://api.github.com/users/datakurre/repos","events_url":"https://api.github.com/users/datakurre/events{/privacy}","received_events_url":"https://api.github.com/users/datakurre/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/darwin","name":"darwin","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-09-27T13:26:33Z","updated_at":"2015-10-29T19:56:23Z","closed_at":"2015-10-29T19:56:23Z","body":"I'm on master (https://github.com/NixOS/nixpkgs/commit/4a8e06f1f06fa0653793f038f5e2f53498ff7de5) on Darwin (OSX 10.10.5) with stdenvDarwinPure and building with chroot (Darwin sandbox). I seem to have issues with Python multiprocessing module (and probably with the sandbox). This error with building http-parser:\r\n\r\n```\r\nthese derivations will be built:\r\n  /nix/store/pzadiyj8wjmy9vkdnx8qhg7qp2gzw2y1-http-parser-2.5.0.drv\r\nbuilding path(s) ‘/nix/store/mvdhhjkk6rrvw4j2nml1x5ljv9m5fra7-http-parser-2.5.0’\r\nunpacking sources\r\nunpacking source archive /nix/store/pzrd7hdkhsyn8i0glnkchmp6k0n36gbn-v2.5.0.tar.gz\r\nsource root is http-parser-2.5.0\r\npatching sources\r\napplying patch /nix/store/x3rg29m48h5lkn200mysqz3kr8vq7rz8-build-shared.patch\r\npatching file http_parser.gyp\r\nconfiguring\r\nsh: /usr/sbin/sysctl: Operation not permitted\r\nTraceback (most recent call last):\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/bin/.gyp-wrapped\", line 10, in <module>\r\n    load_entry_point('gyp==0.1', 'console_scripts', 'gyp')()\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/lib/python2.7/site-packages/gyp/__init__.py\", line 545, in script_main\r\n    return main(sys.argv[1:])\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/lib/python2.7/site-packages/gyp/__init__.py\", line 538, in main\r\n    return gyp_main(args)\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/lib/python2.7/site-packages/gyp/__init__.py\", line 514, in gyp_main\r\n    options.duplicate_basename_check)\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/lib/python2.7/site-packages/gyp/__init__.py\", line 130, in Load\r\n    params['parallel'], params['root_targets'])\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/lib/python2.7/site-packages/gyp/input.py\", line 2759, in Load\r\n    check, generator_input_info)\r\n  File \"/nix/store/648d307hm1lm586dj380jdcvfq0cg9cv-python2.7-gyp-2015-06-11/lib/python2.7/site-packages/gyp/input.py\", line 596, in LoadTargetBuildFilesParallel\r\n    parallel_state.pool = multiprocessing.Pool(multiprocessing.cpu_count())\r\n  File \"/nix/store/a8hv9fl48qnx4nl8ji78xp2p856zz6pa-python-2.7.10/lib/python2.7/multiprocessing/__init__.py\", line 136, in cpu_count\r\n    raise NotImplementedError('cannot determine number of cpus')\r\nNotImplementedError: cannot determine number of cpus\r\nbuilder for ‘/nix/store/pzadiyj8wjmy9vkdnx8qhg7qp2gzw2y1-http-parser-2.5.0.drv’ failed with exit code 1\r\nerror: build of ‘/nix/store/pzadiyj8wjmy9vkdnx8qhg7qp2gzw2y1-http-parser-2.5.0.drv’ failed\r\n```\r\n\r\nAnd, on other occasions, seen seen this\r\n\r\n```\r\n  File \"/nix/store/a8hv9fl48qnx4nl8ji78xp2p856zz6pa-python-2.7.10/lib/python2.7/multiprocessing/synchronize.py\", line 59, in <module>\r\n    \" function, see issue 3770.\")\r\nImportError: This platform lacks a functioning sem_open implementation, therefore, the required synchronization primitives needed will not function, see issue 3770.\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/152301346","html_url":"https://github.com/NixOS/nixpkgs/issues/10091#issuecomment-152301346","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/10091","id":152301346,"user":{"login":"datakurre","id":160447,"avatar_url":"https://avatars.githubusercontent.com/u/160447?v=3","gravatar_id":"","url":"https://api.github.com/users/datakurre","html_url":"https://github.com/datakurre","followers_url":"https://api.github.com/users/datakurre/followers","following_url":"https://api.github.com/users/datakurre/following{/other_user}","gists_url":"https://api.github.com/users/datakurre/gists{/gist_id}","starred_url":"https://api.github.com/users/datakurre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/datakurre/subscriptions","organizations_url":"https://api.github.com/users/datakurre/orgs","repos_url":"https://api.github.com/users/datakurre/repos","events_url":"https://api.github.com/users/datakurre/events{/privacy}","received_events_url":"https://api.github.com/users/datakurre/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T19:56:23Z","updated_at":"2015-10-29T19:56:23Z","body":"Fixed in Nix 1.11 with fixes in darwin sandbox."}}