From: "jonforums (Jon Forums)" Date: 2012-04-05T10:14:31+09:00 Subject: [ruby-core:44137] [ruby-trunk - Bug #6257][Open] [mingw] -Wshorten-64-to-32 error in io.c using clang Issue #6257 has been reported by jonforums (Jon Forums). ---------------------------------------- Bug #6257: [mingw] -Wshorten-64-to-32 error in io.c using clang https://bugs.ruby-lang.org/issues/6257 Author: jonforums (Jon Forums) Status: Open Priority: Normal Assignee: Category: core Target version: ruby -v: ruby 1.9.3p174 (2012-04-03 revision 35222) [i386-mingw32] Building trunk@35349 on Win7 32bit with clang 3.1 (trunk build on Win7) + MinGW GCC 4.6.2 I get the following error: C:\Users\Jon\Documents\RubyDev\ruby-git\build>sh -c "../configure --enable-shared --disable-install-doc --with-gcc=c:/clang/bin/clang.exe" C:\Users\Jon\Documents\RubyDev\ruby-git\build>make ... compiling ../io.c ../io.c:458:21: error: implicit conversion loses integer precision: 'long long' to 'long' [-Werror,-Wshorten-64-to-32] extra_max = pos - fptr->rbuf.len; ~ ~~~~^~~~~~~~~~~~~~~~ 1 error generated. make: *** [io.o] Error 1 -- http://bugs.ruby-lang.org/