ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:49936] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない
       [not found] <redmine.issue-13091.20170101135321@ruby-lang.org>
@ 2017-01-01 13:53 ` koizumistr
  2017-01-01 16:52 ` [ruby-dev:49937] " naruse
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 4+ messages in thread
From: koizumistr @ 2017-01-01 13:53 UTC (permalink / raw
  To: ruby-dev

Issue #13091 has been reported by Satoru Koizumi.

----------------------------------------
Bug #13091: 2.4.0がコンパイルできない
https://bugs.ruby-lang.org/issues/13091

* Author: Satoru Koizumi
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.4.0
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
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 で結局はコンパイルできないのですけれど、、、、



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:49937] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない
       [not found] <redmine.issue-13091.20170101135321@ruby-lang.org>
  2017-01-01 13:53 ` [ruby-dev:49936] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない koizumistr
@ 2017-01-01 16:52 ` naruse
  2017-03-11 12:47 ` [ruby-dev:50008] " naruse
  2017-03-11 13:35 ` [ruby-dev:50009] " naruse
  3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2017-01-01 16:52 UTC (permalink / raw
  To: ruby-dev

Issue #13091 has been updated by Yui NARUSE.

Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED

修正しました。

#11054 は修正されたはずだけどなー、っと思ったら別の場所で分岐無しで使ってるんですね。
しかし、7世代以上前のmacOSを今サポートすべきだとは思わないのでそのままですかね。

なお、手元で動かす分にはfgetattrlistをgetattrlistで置き換えれば突破できるんじゃないかと思います。

----------------------------------------
Bug #13091: 2.4.0がコンパイルできない
https://bugs.ruby-lang.org/issues/13091#change-62351

* Author: Satoru Koizumi
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.4.0
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED
----------------------------------------
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 で結局はコンパイルできないのですけれど、、、、



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:50008] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない
       [not found] <redmine.issue-13091.20170101135321@ruby-lang.org>
  2017-01-01 13:53 ` [ruby-dev:49936] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない koizumistr
  2017-01-01 16:52 ` [ruby-dev:49937] " naruse
@ 2017-03-11 12:47 ` naruse
  2017-03-11 13:35 ` [ruby-dev:50009] " naruse
  3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2017-03-11 12:47 UTC (permalink / raw
  To: ruby-dev

Issue #13091 has been updated by Yui NARUSE.

Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: REQUIRED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONTNEED

2.4へのバックポートはrejectします

----------------------------------------
Bug #13091: 2.4.0がコンパイルできない
https://bugs.ruby-lang.org/issues/13091#change-63433

* Author: Satoru Koizumi
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.4.0
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONTNEED
----------------------------------------
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 で結局はコンパイルできないのですけれど、、、、



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [ruby-dev:50009] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない
       [not found] <redmine.issue-13091.20170101135321@ruby-lang.org>
                   ` (2 preceding siblings ...)
  2017-03-11 12:47 ` [ruby-dev:50008] " naruse
@ 2017-03-11 13:35 ` naruse
  3 siblings, 0 replies; 4+ messages in thread
From: naruse @ 2017-03-11 13:35 UTC (permalink / raw
  To: ruby-dev

Issue #13091 has been updated by Yui NARUSE.

Backport changed from 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONTNEED to 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE

ruby_2_4 r57844 merged revision(s) 57246.

----------------------------------------
Bug #13091: 2.4.0がコンパイルできない
https://bugs.ruby-lang.org/issues/13091#change-63438

* Author: Satoru Koizumi
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.4.0
* Backport: 2.2: DONTNEED, 2.3: DONTNEED, 2.4: DONE
----------------------------------------
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 で結局はコンパイルできないのですけれど、、、、



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-11 13:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <redmine.issue-13091.20170101135321@ruby-lang.org>
2017-01-01 13:53 ` [ruby-dev:49936] [Ruby trunk Bug#13091] 2.4.0がコンパイルできない koizumistr
2017-01-01 16:52 ` [ruby-dev:49937] " naruse
2017-03-11 12:47 ` [ruby-dev:50008] " naruse
2017-03-11 13:35 ` [ruby-dev:50009] " naruse

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).