[ruby-core:121378] [Ruby Bug#21092] error building ruby 3.4.1 on cygwin/msys2
From:
"nagachika (Tomoyuki Chikanaga) via ruby-core" <ruby-core@...>
Date:
2025-03-16 07:10:34 UTC
List:
ruby-core #121378
Issue #21092 has been updated by nagachika (Tomoyuki Chikanaga).
Backport changed from 3.1: REQUIRED, 3.2: DONE, 3.3: REQUIRED, 3.4: DONE to 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: DONE
ruby_3_3 commit:da86a9959b4c5bbdefb6fd1000a0251a151ffbc1 merged revision(s) commit:2b6fc9ea7212543a1be26768403f59c7a759b5ea.
----------------------------------------
Bug #21092: error building ruby 3.4.1 on cygwin/msys2
https://bugs.ruby-lang.org/issues/21092#change-112349
* Author: jeremyd2019 (Jeremy Drake)
* Status: Closed
* Assignee: hsbt (Hiroshi SHIBATA)
* Backport: 3.1: REQUIRED, 3.2: DONE, 3.3: DONE, 3.4: DONE
----------------------------------------
While building from the release tarball ruby-3.4.1.tar.xz on cygwin (also confirmed in snapshot-master.tar.gz from Jan 27, 2025), I get the following error:
../ruby-3.4.1/ext/extmk.rb:279:in 'Array#-': no implicit conversion of nil into Array (TypeError)
from ../ruby-3.4.1/ext/extmk.rb:279:in 'Object#extmake'
from ../ruby-3.4.1/ext/extmk.rb:659:in 'block in <main>'
from ../ruby-3.4.1/ext/extmk.rb:653:in 'Array#each'
from ../ruby-3.4.1/ext/extmk.rb:653:in '<main>'
I have tracked this down to happening when an ext writes a dummy makefile. In this case, that ext is .bundle/gems/syslog-0.2.0.
See https://github.com/ruby/syslog/pull/16 for fixing why it is writing a dummy makefile to begin with, but still, it seems like extmk.rb should handle this case gracefully rather than breaking the build.
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- ruby-core@ml.ruby-lang.org
To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
ruby-core info -- https://ml.ruby-lang.org/mailman3/lists/ruby-core.ml.ruby-lang.org/