Project

General

Profile

Actions

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.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
[ruby-core:114062]

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

Ruby_v_3_2_2_fails_to_compile.txt (31.6 KB) Ruby_v_3_2_2_fails_to_compile.txt martin_vahi (Martin Vahi), 07/01/2023 05:55 AM
version.i (647 KB) version.i Kagetsuki (零 影月), 07/04/2023 10:27 AM
version.i (620 KB) version.i martin_vahi (Martin Vahi), 07/07/2023 04:03 AM

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

Could you share version.i generated with make version.i?

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Open to Feedback

Waiting for feedback.

Updated by Kagetsuki (零 影月) over 1 year 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.

Actions #5

Updated by nobu (Nobuyoshi Nakada) over 1 year 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
Actions #7

Updated by nobu (Nobuyoshi Nakada) over 1 year ago

  • Status changed from Assigned to Closed

Applied in changeset git|99162dee7aa478d8a65f028b098bdaa69e1ecad5.


[Bug #19751] Remove linemarkers in middle

Updated by Kagetsuki (零 影月) over 1 year 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 1 year 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.

Actions #10

Updated by hsbt (Hiroshi SHIBATA) 6 months ago

  • Backport changed from 3.0: REQUIRED, 3.1: REQUIRED, 3.2: DONE to 3.1: DONE, 3.2: DONE
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like1Like1Like0Like0Like0Like0