Project

General

Profile

Actions

Bug #13091

closed

2.4.0がコンパイルできない

Added by KOIZUMI_Satoru (Satoru Koizumi) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-dev:49936]

Description

2.4.0のコンパイルができません。

(省略)
compiling array.c
array.c: In function ‘rb_ary_zip’:
array.c:3340: error: syntax error before ‘)’ token
(省略)

となります。(私の古い)Macで発生している現象ですが、nclude/ruby/ruby.hの以下の部分が原因と思われますので影響範囲はそれなりに広いのではないでしょうか。

diff -u include/ruby/ruby.h.orig include/ruby/ruby.h
--- include/ruby/ruby.h.orig 2016-12-23 05:58:55.000000000 +0900
+++ include/ruby/ruby.h 2017-01-01 22:44:46.000000000 +0900
@@ -1633,7 +1633,7 @@
#ifdef C_ALLOCA

define RB_ALLOCV(v, n) rb_alloc_tmp_buffer(&(v), (n))

define RB_ALLOCV_N(type, v, n) \

  • rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))))
    
  • rb_alloc_tmp_buffer2(&(v), (n), sizeof(type))
    

#else

define RUBY_ALLOCV_LIMIT 1024

define RB_ALLOCV(v, n) ((n) < RUBY_ALLOCV_LIMIT ? \

ただ、上記のように修正しても #11054 で結局はコンパイルできないのですけれど、、、、

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0