Project

General

Profile

ActionsLike0

Bug #21092

closed

error building ruby 3.4.1 on cygwin/msys2

Added by jeremyd2019 (Jeremy Drake) 2 months ago. Updated 17 days ago.

Status:
Closed
Target version:
-
[ruby-core:120802]

Description

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 '
from ../ruby-3.4.1/ext/extmk.rb:653:in 'Array#each'
from ../ruby-3.4.1/ext/extmk.rb:653:in ''

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.

Added by nobu (Nobuyoshi Nakada) 2 months ago

Revision 2b6fc9ea

[Bug #21092] Fallback variables after execonf has done

When reading from a dummy makefile, the global variables initialized
in init_mkmf may not be overridden.

Added by k0kubun (Takashi Kokubun) about 2 months ago

Revision 2ee25f7b

merge revision(s) 2b6fc9ea7212543a1be26768403f59c7a759b5ea: [Backport #21092]

    [Bug #21092] Fallback variables after execonf has done

    When reading from a dummy makefile, the global variables initialized
    in `init_mkmf` may not be overridden.

Added by hsbt (Hiroshi SHIBATA) about 1 month ago

Revision 98fc4568

merge revision(s) 2b6fc9ea7212543a1be26768403f59c7a759b5ea: [Backport #21092]

    [Bug #21092] Fallback variables after execonf has done

    When reading from a dummy makefile, the global variables initialized
    in `init_mkmf` may not be overridden.
    ---
     ext/extmk.rb | 6 +++---
     1 file changed, 3 insertions(+), 3 deletions(-)

Added by nagachika (Tomoyuki Chikanaga) 17 days ago

Revision da86a995

merge revision(s) 2b6fc9ea7212543a1be26768403f59c7a759b5ea: [Backport #21092]

    [Bug #21092] Fallback variables after execonf has done

    When reading from a dummy makefile, the global variables initialized
    in `init_mkmf` may not be overridden.
ActionsLike0

Also available in: Atom PDF