{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm/issues/3831","repository_url":"https://api.github.com/repos/rvm/rvm","labels_url":"https://api.github.com/repos/rvm/rvm/issues/3831/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm/issues/3831/comments","events_url":"https://api.github.com/repos/rvm/rvm/issues/3831/events","html_url":"https://github.com/rvm/rvm/issues/3831","id":192603472,"number":3831,"title":"Error when trying to compile","user":{"login":"mib32","id":8045292,"avatar_url":"https://avatars.githubusercontent.com/u/8045292?v=3","gravatar_id":"","url":"https://api.github.com/users/mib32","html_url":"https://github.com/mib32","followers_url":"https://api.github.com/users/mib32/followers","following_url":"https://api.github.com/users/mib32/following{/other_user}","gists_url":"https://api.github.com/users/mib32/gists{/gist_id}","starred_url":"https://api.github.com/users/mib32/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mib32/subscriptions","organizations_url":"https://api.github.com/users/mib32/orgs","repos_url":"https://api.github.com/users/mib32/repos","events_url":"https://api.github.com/users/mib32/events{/privacy}","received_events_url":"https://api.github.com/users/mib32/received_events","type":"User","site_admin":false},"labels":[{"id":477696427,"url":"https://api.github.com/repos/rvm/rvm/labels/bug","name":"bug","color":"d93f0b","default":true},{"id":15812260,"url":"https://api.github.com/repos/rvm/rvm/labels/feedback%20needed","name":"feedback needed","color":"fbca04","default":false},{"id":21108936,"url":"https://api.github.com/repos/rvm/rvm/labels/platform:%20osx","name":"platform: osx","color":"9091A5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-30T15:56:58Z","updated_at":"2016-12-07T17:45:36Z","closed_at":null,"body":"I have the latest master rvm. \r\nWhen i try to install any version of ruby, when it tries to install binary i have next error:\r\n```\r\nantonmurygin$ rvm install ruby-2.2.4\r\nSearching for binary rubies, this might take some time.\r\nFound remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.2.4.tar.bz2\r\nChecking requirements for osx.\r\nCertificates in '/usr/local/etc/openssl/cert.pem' are already up to date.\r\nRequirements installation successful.\r\nruby-2.2.4 - #configure\r\nruby-2.2.4 - #download\r\n######################################################################## 100,0%\r\nNo checksum for downloaded archive, recording checksum in user configuration.\r\nruby-2.2.4 - #validate archive\r\nruby-2.2.4 - #extract\r\nruby-2.2.4 - #validate binary\r\nLibraries missing for ruby-2.2.4: /Users/travis/.rvm/rubies/ruby-2.2.4/lib/libruby.2.2.0.dylib. Refer to your system manual for installing libraries\r\nMounting remote ruby failed with status 10, trying to compile.Checking requirements for osx.\r\nCertificates in '/usr/local/etc/openssl/cert.pem' are already up to date.\r\nRequirements installation successful.\r\nInstalling Ruby from source to: /Users/antonmurygin/.rvm/rubies/ruby-2.2.4, this may take a while depending on your cpu(s)...\r\nruby-2.2.4 - #downloading ruby-2.2.4, this may take a while depending on your connection...\r\nruby-2.2.4 - #extracting ruby-2.2.4 to /Users/antonmurygin/.rvm/src/ruby-2.2.4....\r\nruby-2.2.4 - #applying patch /Users/antonmurygin/.rvm/patches/ruby/2.2.4/fix_installing_bundled_gems.patch.\r\nruby-2.2.4 - #applying patch /Users/antonmurygin/.rvm/patches/ruby/2.2.4/openssl3.patch.\r\nError running '__rvm_patch -F 25 -p1 -N -f -i /Users/antonmurygin/.rvm/patches/ruby/2.2.4/openssl3.patch',\r\nshowing last 15 lines of /Users/antonmurygin/.rvm/log/1480521380_ruby-2.2.4/patch.apply.openssl3.log\r\n{\r\n    \\patch \"$@\" || return $?\r\n}\r\ncurrent path: /Users/antonmurygin/.rvm/src/ruby-2.2.4\r\nPATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Users/antonmurygin/.rvm/bin\r\ncommand(8): __rvm_patch -F 25 -p1 -N -f -i /Users/antonmurygin/.rvm/patches/ruby/2.2.4/openssl3.patch\r\n++ patch -F 25 -p1 -N -f -i /Users/antonmurygin/.rvm/patches/ruby/2.2.4/openssl3.patch\r\npatching file ext/openssl/extconf.rb\r\nHunk #1 succeeded at 104 with fuzz 3.\r\npatching file ext/openssl/ossl_ssl.c\r\nHunk #1 succeeded at 140 with fuzz 3 (offset 31 lines).\r\npatching file test/openssl/test_ssl.rb\r\nHunk #1 FAILED at 912.\r\n1 out of 1 hunk FAILED -- saving rejects to file test/openssl/test_ssl.rb.rej\r\n++ return 1\r\nruby-2.2.4 - #configuring..........................................................\r\nruby-2.2.4 - #post-configuration.\r\nruby-2.2.4 - #compiling........\r\nError running '__rvm_make -j 1',\r\nshowing last 15 lines of /Users/antonmurygin/.rvm/log/1480521380_ruby-2.2.4/make.log\r\n        ret = clock_gettime(c, &ts);\r\n              ^\r\nprocess.c:7484:9: error: unknown type name 'clockid_t'; did you mean 'clock_id_t'?\r\n        clockid_t c = NUM2CLOCKID(clk_id);\r\n        ^~~~~~~~~\r\n        clock_id_t\r\n/usr/include/mach/clock_types.h:53:13: note: 'clock_id_t' declared here\r\ntypedef int     clock_id_t;                     /* clock identification type */\r\n                ^\r\nprocess.c:7485:19: warning: implicit declaration of function 'clock_getres' is invalid in C99 [-Wimplicit-function-declaration]\r\n        int ret = clock_getres(c, &ts);\r\n                  ^\r\n2 warnings and 2 errors generated.\r\nmake: *** [process.o] Error 1\r\n++ return 2\r\nThere has been an error while running make. Halting the installation.\r\n\r\n```\r\n\r\nExactly when trying to install from binary:\r\n`Libraries missing for ruby-2.2.4: /Users/travis/.rvm/rubies/ruby-2.2.4/lib/libruby.2.2.0.dylib. `\r\n\r\nWhy it searches in `travis` user directory, and why could this error be?\r\n\r\nWhat is the compilation error? It seems to be connected to clang. I use one from XCode 8\r\n"},"comment":{"url":"https://api.github.com/repos/rvm/rvm/issues/comments/265518040","html_url":"https://github.com/rvm/rvm/issues/3831#issuecomment-265518040","issue_url":"https://api.github.com/repos/rvm/rvm/issues/3831","id":265518040,"user":{"login":"ramonsnir","id":1024028,"avatar_url":"https://avatars.githubusercontent.com/u/1024028?v=3","gravatar_id":"","url":"https://api.github.com/users/ramonsnir","html_url":"https://github.com/ramonsnir","followers_url":"https://api.github.com/users/ramonsnir/followers","following_url":"https://api.github.com/users/ramonsnir/following{/other_user}","gists_url":"https://api.github.com/users/ramonsnir/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonsnir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonsnir/subscriptions","organizations_url":"https://api.github.com/users/ramonsnir/orgs","repos_url":"https://api.github.com/users/ramonsnir/repos","events_url":"https://api.github.com/users/ramonsnir/events{/privacy}","received_events_url":"https://api.github.com/users/ramonsnir/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T17:45:36Z","updated_at":"2016-12-07T17:45:36Z","body":"Reproduced on Arch Linux, with Ruby 1.9.3 (I know...) and openssl 1.0.2.j-1\r\n\r\nhttps://gist.github.com/ramonsnir/6b5487b7529ca343ea355f07bb4917b8"}}
{"actor":{"display_login":"ramonsnir"}}