{"action":"created","issue":{"url":"https://api.github.com/repos/samaaron/sonic-pi/issues/1908","repository_url":"https://api.github.com/repos/samaaron/sonic-pi","labels_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/1908/labels{/name}","comments_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/1908/comments","events_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/1908/events","html_url":"https://github.com/samaaron/sonic-pi/issues/1908","id":324912153,"node_id":"MDU6SXNzdWUzMjQ5MTIxNTM=","number":1908,"title":"Rugged fails to compile with latest ruby","user":{"login":"dvzrv","id":432519,"node_id":"MDQ6VXNlcjQzMjUxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/432519?v=4","gravatar_id":"","url":"https://api.github.com/users/dvzrv","html_url":"https://github.com/dvzrv","followers_url":"https://api.github.com/users/dvzrv/followers","following_url":"https://api.github.com/users/dvzrv/following{/other_user}","gists_url":"https://api.github.com/users/dvzrv/gists{/gist_id}","starred_url":"https://api.github.com/users/dvzrv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvzrv/subscriptions","organizations_url":"https://api.github.com/users/dvzrv/orgs","repos_url":"https://api.github.com/users/dvzrv/repos","events_url":"https://api.github.com/users/dvzrv/events{/privacy}","received_events_url":"https://api.github.com/users/dvzrv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-05-21T13:15:51Z","updated_at":"2018-07-05T12:13:19Z","closed_at":null,"author_association":"NONE","body":"Currently, with ruby 2.5.1 the rugged component fails to compile:\r\n\r\n```\r\nCompiling native extension in /build/sonic-pi/src/sonic-pi-3.1.0/app/server/ruby/vendor/rugged-0.26.0/ext/rugged                                                                          \r\nIn file included from /usr/include/ruby-2.5.0/ruby.h:33,                                                                                                                                  \r\n                 from rugged.h:16,                                                                                                                                                        \r\n                 from rugged_blame.c:8:                                                                                                                                                   \r\nIn function ‘rb_git_blame_each.part.0’,                                                                                                                                                   \r\n    inlined from ‘rb_git_blame_each’:                                                                                                                                                     \r\n/usr/include/ruby-2.5.0/ruby/ruby.h:1779:3: error: call to ‘rb_varargs_bad_length’ declared with attribute error:  argument length doesn't match                                          \r\n   rb_varargs_bad_length(argc, vargc)), \\                                                                                                                                                 \r\n   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                                                                                                                                                     \r\n/usr/include/ruby-2.5.0/ruby/ruby.h:2474:6: note: in expansion of macro ‘rb_varargs_argc_check’                                                                                           \r\n      rb_varargs_argc_check(rb_funcall_argc, rb_funcall_nargs), \\                                                                                                                         \r\n      ^~~~~~~~~~~~~~~~~~~~~                                                                                                                                                               \r\nrugged_blame.c:246:10: note: in expansion of macro ‘rb_funcall’                                                                                                                           \r\n   return rb_funcall(self, rb_intern(\"to_enum\"), 1, CSTR2SYM(\"each\"), self);                                                                                                              \r\n          ^~~~~~~~~~                                                                                                                                                                      \r\nmake: *** [Makefile:242: rugged_blame.o] Error 1                                                        \r\n```\r\n\r\n[This](https://bugs.ruby-lang.org/issues/14425) seems to be the related ruby upstream bug.\r\n\r\nAs these compilation steps are not hooked into a build system, this leads to errors only later in the build (when the documentation is about to be built)."},"comment":{"url":"https://api.github.com/repos/samaaron/sonic-pi/issues/comments/402702338","html_url":"https://github.com/samaaron/sonic-pi/issues/1908#issuecomment-402702338","issue_url":"https://api.github.com/repos/samaaron/sonic-pi/issues/1908","id":402702338,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjcwMjMzOA==","user":{"login":"ben01189998819991197253","id":17169802,"node_id":"MDQ6VXNlcjE3MTY5ODAy","avatar_url":"https://avatars0.githubusercontent.com/u/17169802?v=4","gravatar_id":"","url":"https://api.github.com/users/ben01189998819991197253","html_url":"https://github.com/ben01189998819991197253","followers_url":"https://api.github.com/users/ben01189998819991197253/followers","following_url":"https://api.github.com/users/ben01189998819991197253/following{/other_user}","gists_url":"https://api.github.com/users/ben01189998819991197253/gists{/gist_id}","starred_url":"https://api.github.com/users/ben01189998819991197253/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben01189998819991197253/subscriptions","organizations_url":"https://api.github.com/users/ben01189998819991197253/orgs","repos_url":"https://api.github.com/users/ben01189998819991197253/repos","events_url":"https://api.github.com/users/ben01189998819991197253/events{/privacy}","received_events_url":"https://api.github.com/users/ben01189998819991197253/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T12:13:19Z","updated_at":"2018-07-05T12:13:19Z","author_association":"NONE","body":"@dvzrv @MoiRouhs Regarding downgrading to an older version of Ruby, compiling the AUR package, and then upgrading again:\r\n\r\nI was able to manually remove Ruby 2.5 from my system, then install Ruby 2.3.3 from the [Arch Linux Archive](https://archive.archlinux.org/packages/r/ruby/ruby-2.3.3-2-x86_64.pkg.tar.xz) and compile Sonic Pi 3.1.0. It kinda-sort-of worked (occasionally I couldn't get it to start), but I wasn't able to get it to work at all with Ruby 2.5 - it wouldn't start.\r\n\r\nObviously this isn't a real fix, but if there's anyone who _needs Sonic Pi right now_ on their machine, this is an option that can be tried."}}
{"actor":{"display_login":"ben01189998819991197253"}}