Project

General

Profile

Actions

Bug #13267

closed

ruby 2.4.0 i686-w64-mingw32 + boost compilation error

Added by ntzrmtthihu777 (Marty Plummer) over 7 years ago. Updated over 7 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby-2.4.0.tar.xz (mingw, can't run ruby directly)
[ruby-core:79859]

Description

When building https://github.com/Ancurio/mkxp for windows (via i686-w64-mingw32), the following build error occurs:

In file included from /usr/i686-w64-mingw32/include/ruby-2.4.0/ruby/defines.h:243:0,
                 from /usr/i686-w64-mingw32/include/ruby-2.4.0/ruby/ruby.h:36,
                 from /usr/i686-w64-mingw32/include/ruby-2.4.0/ruby.h:33,
                 from mkxp/binding-mri/binding-util.h:25,
                 from mkxp/binding-mri/binding-mri.cpp:23:
/usr/i686-w64-mingw32/include/boost/functional/hash/detail/float_functions.hpp: In member function 'Float boost::hash_detail::call_frexp<Float>::operator()(Float, int*) const':
/usr/i686-w64-mingw32/include/ruby-2.4.0/ruby/win32.h:759:23: error: expected unqualified-id before '__extension__'
 #define frexp(_X, _Y) __extension__ ({\
                       ^
/usr/i686-w64-mingw32/include/ruby-2.4.0/ruby/win32.h:759:23: error: expected ';' before '__extension__'

Updated by ntzrmtthihu777 (Marty Plummer) over 7 years ago

When compiling the same program, with the same libraries for linux, this issue does not arise.

Actions #2

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Status changed from Open to Closed

Applied in changeset r57762.


broken mingw

  • configure.in: check whether frexp and modf are broken.

  • include/ruby/win32.h (frexp, modf): ignore bad declarations when
    compiling as C++. [ruby-core:79859] [Bug #13267]

Updated by nobu (Nobuyoshi Nakada) over 7 years ago

  • Description updated (diff)
  • Backport changed from 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED

Updated by naruse (Yui NARUSE) over 7 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: REQUIRED to 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE

ruby_2_4 r57921 merged revision(s) 57762.

Updated by usa (Usaku NAKAMURA) over 7 years ago

  • Backport changed from 2.2: REQUIRED, 2.3: REQUIRED, 2.4: DONE to 2.2: DONE, 2.3: REQUIRED, 2.4: DONE

ruby_2_2 r58096 merged revision(s) 57762.

Updated by nagachika (Tomoyuki Chikanaga) over 7 years ago

  • Backport changed from 2.2: DONE, 2.3: REQUIRED, 2.4: DONE to 2.2: DONE, 2.3: DONE, 2.4: DONE

ruby_2_3 r58182 merged revision(s) 57762.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0