From: xtkoba+ruby@... Date: 2021-03-03T21:14:45+00:00 Subject: [ruby-core:102731] [Ruby master Bug#17606] Make failed on i386-cygwin (miniruby.exe aborted) Issue #17606 has been updated by xtkoba (Tee KOBAYASHI). Strictly speaking, another assertion is needed to ensure that there be no padding between `v2` and `v3` of `struct RVALUE`: ```c assert(offsetof(struct RVALUE, v3) == offsetof(struct RVALUE, v2) + sizeof(VALUE)); ``` It will be desirable that compilers test these assertions statically and emit an error if any fails. I don't know whether there is a way to make them do so. Another way of avoiding trouble with structure padding will be to implement the structure by an array and use macros to enable accessing its members by names. ---------------------------------------- Bug #17606: Make failed on i386-cygwin (miniruby.exe aborted) https://bugs.ruby-lang.org/issues/17606#change-90729 * Author: fd0 (Daisuke Fujimura) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.0dev (2021-02-01T20:20:34Z master 8ef30bcc04) [i386-cygwin] * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN ---------------------------------------- Make failed on i386-cygwin (miniruby.exe aborted) ``` $ git clone https://github.com/ruby/ruby.git $ cd ruby $ (./configure && make V=1) |& tee i386-cygwin-make.log 2>&1 (snip) ./miniruby.exe -I./lib -I. -I.ext/common ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc :9: [BUG] vm_get_cref: unreachable ruby 3.1.0dev (2021-02-01T20:20:34Z master 8ef30bcc04) [i386-cygwin] -- Control frame information ----------------------------------------------- c:0002 p:0012 s:0006 e:000005 TOP :9 [FINISH] c:0001 p:0000 s:0003 E:ffffe4f8 (none) [FINISH] -- Ruby level backtrace information ---------------------------------------- :9:in `' -- Other runtime information ----------------------------------------------- * Loaded script: ./miniruby * Loaded features: 0 enumerator.so 1 thread.rb 2 fiber.so 3 rational.so 4 complex.so 5 ruby2_keywords.rb make: *** [uncommon.mk:1098: encdb.h] Aborted (core dumped) $ ``` This problem seems to have occurred since e7fc353f044f9280222ca41b029b1368d2bf2fe3. - https://github.com/ruby/ruby/commit/e7fc353f044f9280222ca41b029b1368d2bf2fe3 (I am aware that it may not be possible to fix it because of the absence of an active maintainer for cygwin.) ---Files-------------------------------- i386-cygwin-make.log (107 KB) ruby-iseq_inline_constant_cache_entry.patch (432 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: