All versions 3.2.0 and up fail to build on Ubuntu 23.04 #2212
-
I'm not seeing anyone else with this issue so I have a strong suspicion it's specifically something related to my setup; but I'm getting the same error with a new user account I created to test so I decided to post. The specific error I'm getting occurs directly after documentation is generated, the specific lines being:
*I will post a full log in a comment directly below this. All failures are exactly the same when trying to build 3.2.0, 3.2.1, 3.2.2, and 3.3.0-preview1. Using ruby-build independently or as a plugin to rbenv yield the same results. I can however build all of these rubies from source by hand, so both by that fact and by what I can gleam from the error this appears to be an issue with a specific mid-build or post-build check/test(?). The specific lines of code fake.rb.in are: def src.value(name)
unless val = self[/\bruby_#{name}(?:\[\])?\s*=\s*((?:"(?:\\.|[^\"\\])*"\s*)*(?=;)|[^{};]+)/m, 1]
return
end
eval(val.gsub(/#/, '\\#').gsub(/((?:\G|[^\\])(?:\\\\)*)\n/, '\1'))
end I can't spot any specifically problematic portions but I'm also not completely sure what that eval is actually trying to do - I can only assume that most people aren't encountering this issue so I'm assuming that eval is doing something system specific that my environment isn't handling properly. Note: The same error occurs with or without system Ruby installed. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for reporting. Weird that this only fails through ruby-build. Can you try compiling manually with |
Beta Was this translation helpful? Give feedback.
-
Just to follow up in case anyone else is having this issue: Somebody else put up an issue on the Ruby Language issue tracker: https://bugs.ruby-lang.org/issues/19751#change-103758 . I'll follow up as this gets handled and unless someone has already closed this I'll close it when it's resolved. |
Beta Was this translation helpful? Give feedback.
Thanks for reporting. Weird that this only fails through ruby-build. Can you try compiling manually with
--enable-shared
passed to the./configure
step? That brings the manual compilation a step closer to what ruby-build does, and maybe that can reproduce the error? Then we could rule out ruby-build and consider this to be a bug in Ruby's own build system. I do not understand whatfake.rb
does, however.