Bug #19751
closed
Ruby 3.2.2 Fails to Compile from Source
Added by martin_vahi (Martin Vahi) over 1 year ago.
Updated 6 months ago.
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
Could you share version.i
generated with make version.i
?
- Status changed from Open to Feedback
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.
- 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
- Status changed from Assigned to Closed
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.
- 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.
- Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: DONE to 3.1: DONE, 3.2: DONE
Also available in: Atom
PDF
Like0
Like0Like0Like0Like0Like0Like1Like1Like0Like0Like0Like0