{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/1235","repository_url":"https://api.github.com/repos/unbit/uwsgi","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/1235/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/1235/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/1235/events","html_url":"https://github.com/unbit/uwsgi/issues/1235","id":148962343,"number":1235,"title":"Version number in C compiler string causing error","user":{"login":"justsostephen","id":6893614,"avatar_url":"https://avatars.githubusercontent.com/u/6893614?v=3","gravatar_id":"","url":"https://api.github.com/users/justsostephen","html_url":"https://github.com/justsostephen","followers_url":"https://api.github.com/users/justsostephen/followers","following_url":"https://api.github.com/users/justsostephen/following{/other_user}","gists_url":"https://api.github.com/users/justsostephen/gists{/gist_id}","starred_url":"https://api.github.com/users/justsostephen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justsostephen/subscriptions","organizations_url":"https://api.github.com/users/justsostephen/orgs","repos_url":"https://api.github.com/users/justsostephen/repos","events_url":"https://api.github.com/users/justsostephen/events{/privacy}","received_events_url":"https://api.github.com/users/justsostephen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-17T15:10:05Z","updated_at":"2016-04-18T15:27:17Z","closed_at":null,"body":"On line 33 of `uwsgiconfig.py`, `os.environ.get('CC', sysconfig.get_config_var('CC'))` is used to detect the installed C compiler. On OS X 10.11.3 with Xcode 7.2.1 the `CC` environment variable isn't set by default, so `sysconfig.get_config_var('CC')` is used. On my system, this returns `gcc-4.2`, which is stored as the constant `GCC`.\r\n\r\nConsequently, when `gcc_version = spcall(\"%s -dumpversion\" % GCC)` runs on line 682, Bash reports that the command `gcc-4.2` cannot be found. Seemingly taking this into account, `llvm-` is prepended onto the `GCC` constant, resulting in the string `llvm-gcc-4.2`. On line 688, `gcc_version = spcall(\"%s -dumpversion\" % GCC)` runs again using the modified value, however Bash once again reports that the command cannot be found.\r\n\r\nNeither `gcc-4.2` or `llvm-gcc-4.2` are valid commands. Removing `-4.2` makes them both valid. Unless I'm missing something (and that could well be the case!), revising `uwsgiconfig.py` to remove the version number from the string returned by `sysconfig.get_config_var('CC')` would fix this issue."},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/211431103","html_url":"https://github.com/unbit/uwsgi/issues/1235#issuecomment-211431103","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/1235","id":211431103,"user":{"login":"xrmx","id":12932,"avatar_url":"https://avatars.githubusercontent.com/u/12932?v=3","gravatar_id":"","url":"https://api.github.com/users/xrmx","html_url":"https://github.com/xrmx","followers_url":"https://api.github.com/users/xrmx/followers","following_url":"https://api.github.com/users/xrmx/following{/other_user}","gists_url":"https://api.github.com/users/xrmx/gists{/gist_id}","starred_url":"https://api.github.com/users/xrmx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xrmx/subscriptions","organizations_url":"https://api.github.com/users/xrmx/orgs","repos_url":"https://api.github.com/users/xrmx/repos","events_url":"https://api.github.com/users/xrmx/events{/privacy}","received_events_url":"https://api.github.com/users/xrmx/received_events","type":"User","site_admin":false},"created_at":"2016-04-18T15:27:17Z","updated_at":"2016-04-18T15:27:17Z","body":"It doesn't matter on other operating systems, they don't play games making a compiler chain look like another one."}}