[ruby-core:77550] [Ruby trunk Bug#12829] Compile error on cygwin (io.c)

From: duerst@...
Date: 2016-10-11 06:58:12 UTC
List: ruby-core #77550
Issue #12829 has been reported by Martin Dürst.

----------------------------------------
Bug #12829: Compile error on cygwin (io.c)
https://bugs.ruby-lang.org/issues/12829

* Author: Martin Dürst
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: ruby 2.4.0dev (2016-10-09 trunk 56382) [x86_64-cygwin]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
I get the following error when trying to compile the latest version of Ruby trunk on cygwin:

Thread model: posix
gcc version 5.4.0 (GCC)
compiling io.c
io.c: In function ‘prep_io’:
io.c:7378:4: error: ‘rb_io_t {aka struct rb_io_t}’ has no member named ‘fmode’
  fp->fmode |= FMODE_BINMODE;
    ^
io.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
make: *** [Makefile:365: io.o] Error 1
compiling io.c
io.c: In function ‘prep_io’:
io.c:7378:4: error: ‘rb_io_t {aka struct rb_io_t}’ has no member named ‘fmode’
  fp->fmode |= FMODE_BINMODE;
    ^
io.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’
make: *** [Makefile:365: io.o] Error 1




-- 
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>

In This Thread

Prev Next