Project

General

Profile

Bug #21092

Updated by jeremyd2019 (Jeremy Drake) about 1 month ago

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.

Back