Project

General

Profile

Actions

Bug #7144

closed

[mingw] 1.9.3 backport r37138 breaks build

Added by jonforums (Jon Forums) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.3p277 (2012-09-25 revision 37029) [i386-mingw32]
Backport:
[ruby-core:47918]

Description

On ruby_1_9_3@r37144 (but not trunk@37146) the following error occurs with both GCC 4.6.2 (mingw) and GCC 4.7.2 (mingw-w64)

compiling ../../../../Jenkins/workspace/ruby-1_9_3-svn/io.c
../../../../Jenkins/workspace/ruby-1_9_3-svn/io.c: In function 'rb_cloexec_fcntl_dupfd':
../../../../Jenkins/workspace/ruby-1_9_3-svn/io.c:213:21: error: 'F_DUPFD' undeclared (first use in this function)


Related issues 1 (0 open1 closed)

Is duplicate of Backport193 - Backport #6127: IO#ioctl range error in 1.9.3Closednaruse (Yui NARUSE)03/10/2012Actions

Updated by jonforums (Jon Forums) over 11 years ago

Hiroshi's patch from http://bugs.ruby-lang.org/issues/6127#note-10 enables successful builds on my Win7 32bit using mingw gcc 4.6.2. I expect mingw-w64 gcc 4.7.2 to pass; will reply with details iff failures.

The following complete without error (1 bogus, known openssl config file error):

make test-all TESTS='bigdecimal openssl fiddle psych zlib io json mkmf pathname stringio erb fileutils ruby/test_io.rb ruby/test_io_m17n.rb ruby/test_file.rb'

and make test completes without error:
...
PASS all 947 tests
...
Driver is ruby 1.9.3p279 (2012-10-12 revision 37147) [i386-mingw32]
Target is ruby 1.9.3p279 (2012-10-12 revision 37147) [i386-mingw32]

Updated by usa (Usaku NAKAMURA) over 11 years ago

  • Status changed from Open to Closed

Already committed shirosaki-san's patch.
Thank you for your report.

Actions

Also available in: Atom PDF

Like0
Like0Like0