{"action":"created","issue":{"url":"https://api.github.com/repos/sstephenson/ruby-build/issues/779","labels_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/779/labels{/name}","comments_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/779/comments","events_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/779/events","html_url":"https://github.com/sstephenson/ruby-build/issues/779","id":93053857,"number":779,"title":"\"C compiler cannot create executables\" error trying to install Ruby (any version) on Fedora 22","user":{"login":"GeoffreyEmerson","id":5684761,"avatar_url":"https://avatars.githubusercontent.com/u/5684761?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoffreyEmerson","html_url":"https://github.com/GeoffreyEmerson","followers_url":"https://api.github.com/users/GeoffreyEmerson/followers","following_url":"https://api.github.com/users/GeoffreyEmerson/following{/other_user}","gists_url":"https://api.github.com/users/GeoffreyEmerson/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffreyEmerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffreyEmerson/subscriptions","organizations_url":"https://api.github.com/users/GeoffreyEmerson/orgs","repos_url":"https://api.github.com/users/GeoffreyEmerson/repos","events_url":"https://api.github.com/users/GeoffreyEmerson/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffreyEmerson/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sstephenson/ruby-build/labels/unconfirmed","name":"unconfirmed","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-04T22:33:54Z","updated_at":"2015-07-06T18:19:18Z","closed_at":"2015-07-06T18:19:18Z","body":"```\r\n$ rbenv -v\r\nrbenv 0.4.0-151-g83ac0fb\r\n```\r\n\r\n```\r\n$ rbenv install 2.2.0\r\nDownloading ruby-2.2.0.tar.gz...\r\n-> http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fc\r\nInstalling ruby-2.2.0...\r\n\r\nBUILD FAILED (Fedora 22 using ruby-build 20150519-13-g702b410)\r\n\r\nInspect or clean up the working tree at /tmp/ruby-build.20150704141301.2979\r\nResults logged to /tmp/ruby-build.20150704141301.2979.log\r\n\r\nLast 10 log lines:\r\nconfig.guess already exists\r\nconfig.sub already exists\r\nchecking build system type... x86_64-unknown-linux-gnu\r\nchecking host system type... x86_64-unknown-linux-gnu\r\nchecking target system type... x86_64-unknown-linux-gnu\r\nchecking for gcc... gcc\r\nchecking whether the C compiler works... no\r\nconfigure: error: in `/tmp/ruby-build.20150704141301.2979/ruby-2.2.0':\r\nconfigure: error: C compiler cannot create executables\r\nSee `config.log' for more details\r\n$\r\n```\r\n\r\nRelevant lines in the config.log:\r\n```\r\nconfigure:4146: checking whether the C compiler works\r\nconfigure:4168: gcc  -O3 -Wno-error=shorten-64-to-32  -I/home/geoff/.rbenv/versions/2.2.0/include  -L/home/geoff/.rbenv/versions/2.2.0/lib  conftest.c  >&5\r\ncc1: error: -Werror=shorten-64-to-32: no option -Wshorten-64-to-32\r\nconfigure:4172: $? = 1\r\nconfigure:4210: result: no\r\n```\r\n\r\nFull log at: https://gist.github.com/GeoffreyEmerson/3c8c315bd27766cb8f5d\r\n\r\nWhile writing up this issue, I discovered a workaround from #319 which was `CC=gcc rbenv install 2.2.0` but I don't have clang installed, so that issue's cause seems to be different.\r\n\r\n```\r\n$ clang --version\r\nbash: clang: command not found...\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/sstephenson/ruby-build/issues/comments/118944294","html_url":"https://github.com/sstephenson/ruby-build/issues/779#issuecomment-118944294","issue_url":"https://api.github.com/repos/sstephenson/ruby-build/issues/779","id":118944294,"user":{"login":"mislav","id":887,"avatar_url":"https://avatars.githubusercontent.com/u/887?v=3","gravatar_id":"","url":"https://api.github.com/users/mislav","html_url":"https://github.com/mislav","followers_url":"https://api.github.com/users/mislav/followers","following_url":"https://api.github.com/users/mislav/following{/other_user}","gists_url":"https://api.github.com/users/mislav/gists{/gist_id}","starred_url":"https://api.github.com/users/mislav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mislav/subscriptions","organizations_url":"https://api.github.com/users/mislav/orgs","repos_url":"https://api.github.com/users/mislav/repos","events_url":"https://api.github.com/users/mislav/events{/privacy}","received_events_url":"https://api.github.com/users/mislav/received_events","type":"User","site_admin":true},"created_at":"2015-07-06T18:19:18Z","updated_at":"2015-07-06T18:19:18Z","body":"Thanks for reporting. Glad you solved it."}}