Issue #13611 has been reported by MSP-Greg (Greg L).

----------------------------------------
Bug #13611: MinGW spec/rubyspec/optional/capi compile/link issues
https://bugs.ruby-lang.org/issues/13611

* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: ruby 2.5.0dev (2017-05-29 trunk 58958) [x64-mingw32]
* Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN
----------------------------------------
For the last two weeks, I have been successfully running `make test-spec` in [MinGW builds](https://msp-greg.github.io/file.mingw_test-all.html#test-spec-Failure-Error-Summary).  Over this past weekend, there were several changes to the build system for the [spec/rubyspec/optional/capi](https://github.com/ruby/ruby/tree/trunk/spec/rubyspec/optional/capi) tests.

I built `ruby 2.5.0dev (2017-05-29 trunk 58958) [x64-mingw32]`, and had the following errors:

Console output:

```
E:\GitHub\ruby-loco\src\build-x86_64>make.exe -ij1 "MSPECOPT=-fs" test-spec

$ E:/GitHub/ruby-loco/src/build-x86_64/miniruby -IE:/GitHub/ruby-loco/src/ruby/lib E:/GitHub/ruby-loco/src/ruby/tool/runruby.rb --archdir=E:/GitHub/ruby-loco/src/build-x8
6_64 --extout=.ext -- E:/GitHub/ruby-loco/src/ruby/spec/mspec/bin/mspec-run -B ../ruby/spec/default.mspec -fs

x86_64-w64-mingw32-gcc: error: $(DEFFILE): No such file or directory
-- above line repeated 26 times
```

Log file - 35 similar errors ('E:/GitHub/ruby-loco/src/ruby/' removed from all file listings to shorten):

```
4)
An exception occurred during: loading spec/rubyspec/optional/capi/array_spec.rb ERROR
RuntimeError: Unable to link "spec/rubyspec/optional/capi/ext/array_spec.c"
spec/rubyspec/optional/capi/spec_helper.rb:104:in `compile_extension'
spec/rubyspec/optional/capi/spec_helper.rb:146:in `load_extension'
spec/rubyspec/optional/capi/array_spec.rb:3:in `<top (required)>'
```

Otherwise, build and test-all are as expected, running mspec from install/pkg directory (and without optional/capi) ran fine, etc.




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>