Project

General

Profile

Actions

Bug #18727

closed

Make failed on x86_64-cygwin (LoadError)

Added by fd0 (Daisuke Fujimura) almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 3.2.0dev (2022-04-14T01:16:45Z master 3728f83b2d) [x86_64-cygwin]
[ruby-dev:51176]

Description

Make failed on x86_64-cygwin (LoadError)

$ git clone https://github.com/ruby/ruby.git
$ cd ruby
$ autoreconf -fiv && ./configure && make V=1
(snip)
Generating RDoc documentation
/tmp/ruby/.ext/common/pathname.rb:13:in `require': No such process - ruby_abi_version (LoadError)
        from /tmp/ruby/.ext/common/pathname.rb:13:in `<top (required)>'
        from /tmp/ruby/lib/rdoc/rdoc.rb:6:in `require'
        from /tmp/ruby/lib/rdoc/rdoc.rb:6:in `<top (required)>'
        from ./libexec/rdoc:16:in `require'
        from ./libexec/rdoc:16:in `<main>'
make: *** [uncommon.mk:574: rdoc] Error 1

Updated by fd0 (Daisuke Fujimura) almost 2 years ago

diff --git a/include/ruby/internal/abi.h b/include/ruby/internal/abi.h
index 98a63927c5..ed779f3558 100644
--- a/include/ruby/internal/abi.h
+++ b/include/ruby/internal/abi.h
@@ -26,7 +26,7 @@
 
 /* Windows does not support weak symbols so ruby_abi_version will not exist
  * in the shared library. */
-#if defined(HAVE_FUNC_WEAK) && !defined(_WIN32) && !defined(__MINGW32__)
+#if defined(HAVE_FUNC_WEAK) && !defined(_WIN32) && !defined(__MINGW32__) && !defined(__CYGWIN__)
 # define RUBY_DLN_CHECK_ABI
 #endif
 

Updated by hsbt (Hiroshi SHIBATA) almost 2 years ago

  • Status changed from Open to Assigned
  • Assignee set to peterzhu2118 (Peter Zhu)

Updated by peterzhu2118 (Peter Zhu) almost 2 years ago

Thank you for the bug report. That patch looks good, could you open a Pull Request on GitHub and I can merge.

Actions #5

Updated by peterzhu2118 (Peter Zhu) over 1 year ago

  • Status changed from Assigned to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0