https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112021-07-30T05:41:18ZRuby Issue Tracking SystemRuby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=930602021-07-30T05:41:18Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>Do <code>ext/-test-/thread_fd</code> directory and <code>Makefile</code> there exist?</p>
<p>Probably <code>make -C ext/-test-/thread_fd_close distclean</code> may help you.<br>
Although <code>configure-ext</code> should remove no longer existing directory but may have a bug for deeper paths.</p> Ruby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=931172021-08-05T08:08:10Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul></ul><p>(sorry this answer is late)</p>
<p>nobu (Nobuyoshi Nakada) wrote in <a href="#note-1">#note-1</a>:</p>
<blockquote>
<p>Do <code>ext/-test-/thread_fd</code> directory and <code>Makefile</code> there exist?</p>
</blockquote>
<p>The directory exists, but the Makefile doesn't exist.</p>
<blockquote>
<p>Probably <code>make -C ext/-test-/thread_fd_close distclean</code> may help you.</p>
</blockquote>
<p>This says <code>make: *** No rule to make target 'distclean'. Stop.</code>. It doesn't help, unfortunately.</p>
<blockquote>
<p>Although <code>configure-ext</code> should remove no longer existing directory but may have a bug for deeper paths.</p>
</blockquote>
<p>Do you mean <code>ext/-test-/thread_fd_close</code> should no longer exist? Or something else?</p> Ruby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=931212021-08-05T10:05:48Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>duerst (Martin Dürst) wrote in <a href="#note-2">#note-2</a>:</p>
<blockquote>
<p>Do you mean <code>ext/-test-/thread_fd_close</code> should no longer exist? Or something else?</p>
</blockquote>
<p>Yes,renamed as <code>ext/-test-/thread_fd</code>.</p>
<p>You can remove the old directory, and <code>ext/-test-/exts.mk</code> file.</p> Ruby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=931332021-08-06T08:59:18Zduerst (Martin Dürst)duerst@it.aoyama.ac.jp
<ul></ul><p>nobu (Nobuyoshi Nakada) wrote in <a href="#note-3">#note-3</a>:</p>
<blockquote>
<p>You can remove the old directory, and <code>ext/-test-/exts.mk</code> file.</p>
</blockquote>
<p>Many thanks for your help. I removed both the directory and the file. Now I'm getting the following:</p>
<pre><code>transdb.h unchanged
generating makefiles ext/configure-ext.mk
ext/configure-ext.mk unchanged
make[1]: Entering directory '/home/duerst/ruby3'
make[2]: Entering directory '/home/duerst/ruby3'
make[2]: *** ext/-test-/thread_fd_close: No such file or directory. Stop.
make[2]: Leaving directory '/home/duerst/ruby3'
make[1]: *** [exts.mk:195: ext/-test-/thread_fd_close/all] Error 2
make[1]: Leaving directory '/home/duerst/ruby3'
make: *** [uncommon.mk:301: build-ext] Error 2
</code></pre> Ruby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=931342021-08-06T10:14:42ZEregon (Benoit Daloze)
<ul></ul><p><code>make clean</code> is sometimes needed when building CRuby (correct C files dependencies is still a mess to this day, not CRuby-specific).<br>
Would that help here?</p> Ruby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=931412021-08-06T11:55:11Znobu (Nobuyoshi Nakada)nobu@ruby-lang.org
<ul></ul><p>duerst (Martin Dürst) wrote in <a href="#note-4">#note-4</a>:</p>
<blockquote>
<pre><code>generating makefiles ext/configure-ext.mk
ext/configure-ext.mk unchanged
</code></pre>
</blockquote>
<p>This file should be updated, but actually wasn't.<br>
Could you try again after removing that file?</p> Ruby master - Bug #18054: No rule to make target 'thread_fd_close.c', needed by 'thread_fd_close.o'https://bugs.ruby-lang.org/issues/18054?journal_id=931452021-08-06T12:30:17Zduerst (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>Eregon (Benoit Daloze) wrote in <a href="#note-5">#note-5</a>:</p>
<blockquote>
<p><code>make clean</code> is sometimes needed when building CRuby (correct C files dependencies is still a mess to this day, not CRuby-specific).<br>
Would that help here?</p>
</blockquote>
<p>Thanks, that helped.</p>