https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112011-11-01T13:40:53ZRuby Issue Tracking SystemRuby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=217582011-11-01T13:40:53Zmrkn (Kenta Murata)muraken@gmail.com
<ul><li><strong>Category</strong> set to <i>ext</i></li><li><strong>Assignee</strong> set to <i>mrkn (Kenta Murata)</i></li></ul><p>Please attach your mkmf.log.</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=217592011-11-01T13:43:15Zmrkn (Kenta Murata)muraken@gmail.com
<ul></ul><blockquote>
<p>linking static-library libruby191-static.a</p>
</blockquote>
<p>Is your ruby really version 1.8.7?</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=217612011-11-01T14:26:30Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul><li><strong>File</strong> <a href="/attachments/2178">mkmf.log</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/2178/mkmf.log">mkmf.log</a> added</li></ul><p>mkmf.log attached. Hope this helps.</p>
<p>The pre-installed version of ruby, used as 'baseruby' I guess, is indeed 1.8.7.</p>
<p>But I'm trying to build trunk, so that's I guess where messages such as "linking static-library libruby191-static.a" come from.</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=217632011-11-01T14:44:41Zmrkn (Kenta Murata)muraken@gmail.com
<ul><li><strong>Assignee</strong> deleted (<del><i>mrkn (Kenta Murata)</i></del>)</li><li><strong>Target version</strong> set to <i>2.0.0</i></li></ul><p>The following error is the matter of this issue.</p>
<blockquote>
<p>/usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld: cannot find -lruby191</p>
</blockquote>
<p>Unfortunately, I don't know cygwin well so I cannot help you.<br>
I'm sorry.</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=218162011-11-02T15:32:24Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul></ul><p>Does this patch help you?<br>
(Sorry, I've not tested it.)</p>
<a name="Index-configurein"></a>
<h1 >Index: configure.in<a href="#Index-configurein" class="wiki-anchor">¶</a></h1>
<p>--- configure.in (revision 33590)<br>
+++ configure.in (working copy)<br>
@@ -2506,8 +2506,9 @@ AS_CASE(["$target_os"],<br>
LIBRUBY_DLDFLAGS="${DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)'<br>
AS_CASE(["$target_os"],<br>
[cygwin*], [</p>
<ul>
<li>
<pre><code> RUBY_SO_NAME="cyg${RUBY_SO_NAME}"
if test x"$enable_shared" = xyes; then
</code></pre>
</li>
</ul>
<ul>
<li>
<pre><code> LIBRUBY_SO='cyg$(RUBY_SO_NAME)'.dll
</code></pre>
</li>
</ul>
<ul>
<li>
<pre><code> LIBRUBY_SO='$(RUBY_SO_NAME)'.dll
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)'
fi
],
</code></pre>
</li>
</ul> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=218172011-11-02T15:52:37Zusa (Usaku NAKAMURA)usa@garbagecollect.jp
<ul></ul><p>eban-san says that libruby191.dll.a is correct (it was cygwin team's request).<br>
So, please ignore above patch. orz</p>
<p>BTW, eban-san also says that he built cygwin ruby from trunk yesterday and there was no problem.<br>
Martin-sensei, could you show us your configure options?</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=218822011-11-04T17:53:12Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul><li><strong>ruby -v</strong> changed from <i>ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]</i> to <i>-</i></li></ul><p>Hi,</p>
<p>(11/11/04 17:02), "Martin J. Dürst" wrote:</p>
<blockquote>
<blockquote>
<p>BTW, eban-san also says that he built cygwin ruby from trunk yesterday and there was no problem.<br>
Martin-sensei, could you show us your configure options?</p>
</blockquote>
<p>Are they stored somewhere? If yes, where?</p>
</blockquote>
<p>In config.status file.</p>
<p>$ grep configure_args config.status</p>
<p>Or</p>
<p>$ make showconfig</p>
<p>--<br>
Nobu Nakada</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=218842011-11-04T18:58:45Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul></ul><p>Here is my configuration:<br>
$ make showconfig<br>
'--with-baseruby=/usr/bin/ruby'</p>
<p>$ /usr/bin/ruby -v<br>
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=219772011-11-08T01:01:00Zphasis68 (Heesob Park)phasis@gmail.com
<ul></ul><p>I managed to reproduce this issue and found that it is due to the capital letter in the path name.</p>
<p>If you use capital letter in the path name like "/cygdrive/c/Data/Ruby",<br>
in the line #157-159 of lib/mkmf.rb<br>
topdir = File.dirname(File.dirname(<strong>FILE</strong>)) #=> "/cygdrive/c/Data/Ruby"<br>
path = File.expand_path($0) #=> "/cygdrive/c/data/ruby/ext/extmk.rb"<br>
$extmk = path[0, topdir.size+1] == topdir+"/" #=> false</p>
<p>The workaround is to avoid capital letter in the path name.</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=219992011-11-08T19:25:31Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Hello Heesob,</p>
<p>Many thanks for solving this problem. You are right that it is about case differences in the path name. However, your description might be slightly misunderstood. The problem is not upper-case letters per se, but letters for which case differs from how they are stored by the OS. In my case /cygdrive/c/Data/ruby/ is correct, because Data is indeed upper-case (Windows remembers the case of a letter, but matches upper- and lowercase).</p>
<p>Regards, Martin.</p>
<p>(I'm still not able to compile completely, but I'll try to get further and open another bug if necessary.)</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=220012011-11-08T21:38:53Zphasis68 (Heesob Park)phasis@gmail.com
<ul></ul><p>Hi,</p>
<p>I noticed that the problem started when you executed "cd /cygdrive/c/Data/Ruby"<br>
instead of "cd /cygdrive/c/Data/ruby".</p>
<p>Here is the test case.</p>
<p>$ mkdir -p /cygdrive/c/Data/ruby<br>
$ cd /cygdrive/c/Data/Ruby</p>
<p>phasis@phasis-PC /cygdrive/c/Data/Ruby<br>
$ irb<br>
irb(main):001:0> Dir.pwd<br>
=> "/cygdrive/c/Data/Ruby"<br>
irb(main):002:0> File.expand_path("./test.txt")<br>
=> "/cygdrive/c/Data/Ruby/test.txt"<br>
irb(main):003:0> exit</p>
<p>phasis@phasis-PC /cygdrive/c/Data/Ruby<br>
$ cd /cygdrive/c/Data/ruby</p>
<p>phasis@phasis-PC /cygdrive/c/Data/ruby<br>
$ irb<br>
irb(main):001:0> Dir.pwd<br>
=> "/cygdrive/c/Data/ruby"<br>
irb(main):002:0> File.expand_path("./test.txt")<br>
=> "/cygdrive/c/Data/ruby/test.txt"<br>
irb(main):003:0> exit</p>
<p>Notice the diffrence between "/cygdrive/c/Data/Ruby/test.txt"<br>
and "/cygdrive/c/Data/ruby/test.txt".</p>
<p>Regards,<br>
Park Heesob</p> Ruby master - Bug #5532: Compile problem for bigdecimal on cygwinhttps://bugs.ruby-lang.org/issues/5532?journal_id=220232011-11-09T09:41:28Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul></ul><p>Yes, exactly. And the problem went away when I cd'd back to /cygdrive/c/Data/ruby/. Many thanks again!</p>