https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112009-09-07T11:46:27ZRuby Issue Tracking SystemRuby master - Bug #1977: test failed in test_isdigit in test/dl/test_func.rb on sparc-solaris-2.10 (64bit)https://redmine.ruby-lang.org/issues/1977?journal_id=56592009-09-07T11:46:27Zyugui (Yuki Sonoda)yugui@yugui.jp
<ul><li><strong>Category</strong> set to <i>ext</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1977: test failed in test_isdigit in test/dl/test_func.rb on sparc-solaris-2.10 (64bit)https://redmine.ruby-lang.org/issues/1977?journal_id=70462009-11-29T06:53:21Ztenderlovemaking (Aaron Patterson)tenderlove@ruby-lang.org
<ul><li><strong>Assignee</strong> set to <i>tenderlovemaking (Aaron Patterson)</i></li></ul><p>=begin</p>
<p>=end</p> Ruby master - Bug #1977: test failed in test_isdigit in test/dl/test_func.rb on sparc-solaris-2.10 (64bit)https://redmine.ruby-lang.org/issues/1977?journal_id=81142010-02-03T10:51:31Ztenderlovemaking (Aaron Patterson)tenderlove@ruby-lang.org
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>=begin<br>
libffi で DL を変換しましたので、もうこの問題はない筈です。しかし、私の手元に sparc-solaris のコンピューターがないので、sparc-solaris でテストは出来ませんでした。<br>
=end</p> Ruby master - Bug #1977: test failed in test_isdigit in test/dl/test_func.rb on sparc-solaris-2.10 (64bit)https://redmine.ruby-lang.org/issues/1977?journal_id=81172010-02-03T13:54:37Zngoto (Naohisa Goto)ngotogenome@gmail.com
<ul></ul><p>=begin<br>
On Wed, 3 Feb 2010 10:51:32 +0900<br>
Aaron Patterson <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>libffi で DL を変換しましたので、もうこの問題はない筈です。しかし、私の手元に sparc-solaris のコンピューターがないので、sparc-solaris でテストは出来ませんでした。</p>
</blockquote>
<p>libffi-3.0.9.tar.gz をダウンロードし、makeしようとしたのですが、<br>
libffi が gcc 独自拡張の <strong>attribute</strong> を使っているためか、<br>
Sun Workshop 5.8 (SunStudio 11) の cc ではコンパイルできませんでした。</p>
<p>DLをlibffi依存にしたということは、RubyもGCCを要求することになるのでしょうか?</p>
<p>以下、libffiのmake時のエラーです。<br>
"./include/ffi_common.h", line 103: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 103: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 103: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 104: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 104: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 104: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 103<br>
"./include/ffi_common.h", line 104: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 105: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 105: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 105: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 104<br>
"./include/ffi_common.h", line 105: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 106: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 106: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 106: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 105<br>
"./include/ffi_common.h", line 106: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 107: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 107: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 107: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 106<br>
"./include/ffi_common.h", line 107: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 108: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 108: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 108: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 107<br>
"./include/ffi_common.h", line 108: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 109: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 109: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 109: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 108<br>
"./include/ffi_common.h", line 109: warning: syntax error: empty declaration<br>
"./include/ffi_common.h", line 110: syntax error before or at: <strong>attribute</strong><br>
"./include/ffi_common.h", line 110: warning: old-style declaration or incorrect type for: <strong>attribute</strong><br>
"./include/ffi_common.h", line 110: identifier redefined: <strong>attribute</strong><br>
current : function() returning int<br>
previous: function() returning int : "./include/ffi_common.h", line 109<br>
"./include/ffi_common.h", line 110: warning: syntax error: empty declaration<br>
cc: acomp failed for src/debug.c</p>
<p>--<br>
後藤 直久 <a href="mailto:ngoto@gen-info.osaka-u.ac.jp" class="email">ngoto@gen-info.osaka-u.ac.jp</a></p>
<p>=end</p> Ruby master - Bug #1977: test failed in test_isdigit in test/dl/test_func.rb on sparc-solaris-2.10 (64bit)https://redmine.ruby-lang.org/issues/1977?journal_id=81192010-02-03T16:10:56Znaruse (Yui NARUSE)naruse@airemix.jp
<ul></ul><p>=begin<br>
成瀬です。</p>
<p>2010/2/3 Naohisa GOTO <a href="mailto:ngoto@gen-info.osaka-u.ac.jp" class="email">ngoto@gen-info.osaka-u.ac.jp</a>:</p>
<blockquote>
<p>On Wed, 3 Feb 2010 10:51:32 +0900<br>
Aaron Patterson <a href="mailto:redmine@ruby-lang.org" class="email">redmine@ruby-lang.org</a> wrote:</p>
<blockquote>
<p>libffi で DL を変換しましたので、もうこの問題はない筈です。しかし、私の手元に sparc-solaris のコンピューターがないので、sparc-solaris でテストは出来ませんでした。</p>
</blockquote>
<p>libffi-3.0.9.tar.gz をダウンロードし、makeしようとしたのですが、<br>
libffi が gcc 独自拡張の <strong>attribute</strong> を使っているためか、<br>
Sun Workshop 5.8 (SunStudio 11) の cc ではコンパイルできませんでした。</p>
<p>DLをlibffi依存にしたということは、RubyもGCCを要求することになるのでしょうか?</p>
</blockquote>
<p>テストありがとうございます。</p>
<p>仰る通り、Sun Studio 11 ではダメなのですが、Sun Studio 12 では libffi をコンパイル可能なようです。<br>
<a href="http://sourceware.org/ml/libffi-discuss/2010/msg00016.html" class="external">http://sourceware.org/ml/libffi-discuss/2010/msg00016.html</a><br>
<a href="http://jp.sun.com/products/software/tools/studio12/documentation/ss12/whatsnew.html" class="external">http://jp.sun.com/products/software/tools/studio12/documentation/ss12/whatsnew.html</a></p>
<p>また、Python 方面によると、頑張れば 11 でも <strong>attribute</strong> の問題は回避できるようです。<br>
<a href="http://inside.ascade.co.jp/node/54" class="external">http://inside.ascade.co.jp/node/54</a></p>
<p>以上で現実問題として解決可能なのかはわたしには判断つきかねますが。。</p>
<p>--<br>
NARUSE, Yui<br>
<a href="mailto:naruse@airemix.jp" class="email">naruse@airemix.jp</a></p>
<p>=end</p>