{"action":"created","issue":{"url":"https://api.github.com/repos/rebar/rebar/issues/576","labels_url":"https://api.github.com/repos/rebar/rebar/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/rebar/rebar/issues/576/comments","events_url":"https://api.github.com/repos/rebar/rebar/issues/576/events","html_url":"https://github.com/rebar/rebar/issues/576","id":124091545,"number":576,"title":"rebar on a linux with non-smp kernel","user":{"login":"brigadier","id":5342151,"avatar_url":"https://avatars.githubusercontent.com/u/5342151?v=3","gravatar_id":"","url":"https://api.github.com/users/brigadier","html_url":"https://github.com/brigadier","followers_url":"https://api.github.com/users/brigadier/followers","following_url":"https://api.github.com/users/brigadier/following{/other_user}","gists_url":"https://api.github.com/users/brigadier/gists{/gist_id}","starred_url":"https://api.github.com/users/brigadier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brigadier/subscriptions","organizations_url":"https://api.github.com/users/brigadier/orgs","repos_url":"https://api.github.com/users/brigadier/repos","events_url":"https://api.github.com/users/brigadier/events{/privacy}","received_events_url":"https://api.github.com/users/brigadier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-28T17:00:22Z","updated_at":"2015-12-28T21:41:04Z","closed_at":null,"body":"I've recently had an issue on a cheap VPS which had kernel built apparently without smp support. rebar (rebar2) just hangs wor a while on such VPS, then fails with the 'cannot create aux thread' error or something like that. `erl`, built for smp kernels, fails with the same error, but it is still possible to start it with the `-smp disabled` command line option. Is there somethink like this for rebar? The only way to run it that i found is to use `ERL_AFLAGS` env."},"comment":{"url":"https://api.github.com/repos/rebar/rebar/issues/comments/167662905","html_url":"https://github.com/rebar/rebar/issues/576#issuecomment-167662905","issue_url":"https://api.github.com/repos/rebar/rebar/issues/576","id":167662905,"user":{"login":"tuncer","id":4232,"avatar_url":"https://avatars.githubusercontent.com/u/4232?v=3","gravatar_id":"","url":"https://api.github.com/users/tuncer","html_url":"https://github.com/tuncer","followers_url":"https://api.github.com/users/tuncer/followers","following_url":"https://api.github.com/users/tuncer/following{/other_user}","gists_url":"https://api.github.com/users/tuncer/gists{/gist_id}","starred_url":"https://api.github.com/users/tuncer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuncer/subscriptions","organizations_url":"https://api.github.com/users/tuncer/orgs","repos_url":"https://api.github.com/users/tuncer/repos","events_url":"https://api.github.com/users/tuncer/events{/privacy}","received_events_url":"https://api.github.com/users/tuncer/received_events","type":"User","site_admin":false},"created_at":"2015-12-28T21:41:04Z","updated_at":"2015-12-28T21:41:04Z","body":"You can (1) configure the environment to always have `ERL_FLAGS=\"-smp disable\"` (you wrote `disabled`, but it must be `disable`) and (2) use a patched rebar binary, where you override the default `escript_emu_args` by adding `{escript_emu_args, \"%%! -pa rebar/rebar/ebin -smp disable\"}` in `rebar/rebar.config` before building. Perhaps you also need `+A0`."}}