Bug #19751
closedRuby 3.2.2 Fails to Compile from Source
Description
Details are at the attached file, but the build-crash-log seems to be:
compiling addr2line.c compiling dmyenc.c linking miniruby /bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp rbconfig.rb updated generating encdb.h encdb.h updated generating x86_64-linux-fake.rb ./template/fake.rb.in:19:in `eval': (eval):1: syntax error, unexpected backslash (SyntaxError) \\# 71 "./version.c" 3 ... ^ from ./template/fake.rb.in:19:in `value' from ./template/fake.rb.in:24:in `block (3 levels) in <main>' from ./template/fake.rb.in:23:in `scan' from ./template/fake.rb.in:23:in `block (2 levels) in <main>' from /home/mmmv/applications/Ruby/v_3_1_2/lib/ruby/3.1.0/erb.rb:905:in `eval' from /home/mmmv/applications/Ruby/v_3_1_2/lib/ruby/3.1.0/erb.rb:905:in `result' from ./tool/generic_erb.rb:36:in `block (2 levels) in <main>' from ./tool/generic_erb.rb:36:in `block in <main>' from ./tool/generic_erb.rb:29:in `map' from ./tool/generic_erb.rb:29:in `<main>' make: *** [uncommon.mk:791: x86_64-linux-fake.rb] Error 1 mmmv@hoidla01:~/tmp_/kompil/2023_03_30_v_3_2_2/ruby-3.2.2$ uname -a Linux hoidla01 4.19.0-22-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64 GNU/Linux mmmv@hoidla01:~/tmp_/kompil/2023_03_30_v_3_2_2/ruby-3.2.2$ The source was the official one from the
https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.xz
Thank You for reading this bug report :-)
Files
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
Could you share version.i generated with make version.i?
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
- Status changed from Open to Feedback
Waiting for feedback.
Updated by Kagetsuki (零 影月) over 2 years ago
I have what looks to be the exact same issue, with the same errors and a very similar log. The issue manifests with both the tarball and with the git repo on the ruby_3_2 branch. I can provide a full log if needed just for quick comparison here are about the same lines as what Martin provided:
building Rust YJIT (release mode) touch yjit/target/release/libyjit.a linking miniruby /usr/bin/mkdir -p enc/jis + cp enc/jis/props.h.blt enc/jis/props.h /bin/sh ./tool/ifchange "--timestamp=.rbconfig.time" rbconfig.rb rbconfig.tmp rbconfig.rb updated generating encdb.h encdb.h updated generating x86_64-linux-fake.rb ./template/fake.rb.in:19:in `eval': (eval):1: syntax error, unexpected backslash (SyntaxError) \\# 71 "./version.c" 3 ... ^ from ./template/fake.rb.in:19:in `value' from ./template/fake.rb.in:24:in `block (3 levels) in <main>' from ./template/fake.rb.in:23:in `scan' from ./template/fake.rb.in:23:in `block (2 levels) in <main>' from /home/zero/.rbenv/versions/3.1.4/lib/ruby/3.1.0/erb.rb:905:in `eval' from /home/zero/.rbenv/versions/3.1.4/lib/ruby/3.1.0/erb.rb:905:in `result' from ./tool/generic_erb.rb:36:in `block (2 levels) in <main>' from ./tool/generic_erb.rb:36:in `block in <main>' from ./tool/generic_erb.rb:29:in `map' from ./tool/generic_erb.rb:29:in `<main>' make: *** [uncommon.mk:791: x86_64-linux-fake.rb] エラー 1 My system is a bit different though: Linux tsuki 6.2.0-24-generic #24-Ubuntu SMP PREEMPT_DYNAMIC Fri Jun 16 12:03:50 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
@nobu (Nobuyoshi Nakada) I have attached my version.i. Please let me know if I can provide any more information.
Updated by martin_vahi (Martin Vahi) over 2 years ago
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
- Status changed from Feedback to Assigned
- Backport changed from 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN to 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED
Updated by nobu (Nobuyoshi Nakada) over 2 years ago
- Status changed from Assigned to Closed
Applied in changeset git|99162dee7aa478d8a65f028b098bdaa69e1ecad5.
[Bug #19751] Remove linemarkers in middle
Updated by Kagetsuki (零 影月) over 2 years ago
Thank you very much @nobu (Nobuyoshi Nakada). Allow me to confirm that with this patch I have successfully built Ruby on the systems it was not building on previously.
Updated by nagachika (Tomoyuki Chikanaga) over 2 years ago
- Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: REQUIRED to 3.0: REQUIRED, 3.1: REQUIRED, 3.2: DONE
ruby_3_2 9f5c32ce85db830459768c588b82a6d07f5d22dc merged revision(s) 99162dee7aa478d8a65f028b098bdaa69e1ecad5.
Updated by hsbt (Hiroshi SHIBATA) over 1 year ago
- Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: DONE to 3.1: DONE, 3.2: DONE
Updated by hsbt (Hiroshi SHIBATA) over 1 year ago
https://github.com/ruby/ruby/pull/10829 is for Ruby 3.1