Project

General

Profile

Actions

Backport #7946

closed

1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)

Added by d6rkaiz (Isao Sugimoto) over 11 years ago. Updated over 11 years ago.

Status:
Closed
[ruby-dev:47096]

Description

=begin

OS X 10.8.2でclangでビルドを行う際にruby 1.9.3-p385以降でclangでコンパイル時にエラーとなるようになりました。

バグとのことですので報告します。
1.9.3-p385 および 1.9.3-p392 で発生します。

 BUILD FAILED
 
 Inspect or clean up the working tree at /var/folders/t0/n008mdzj4nz0_cswflz6xwch0000gn/T/ruby-build.20130223143931.52037
 Results logged to /var/folders/t0/n008mdzj4nz0_cswflz6xwch0000gn/T/ruby-build.20130223143931.52037.log
 
 Last 10 log lines:
 compiling safe.c
 compiling signal.c
 compiling sprintf.c
 compiling st.c
 st.c:520:35: error: implicit conversion loses integer precision: 'st_index_t' (aka 'unsigned long') to 'int' [-Werror,-Wshorten-64-to-32]
             i = table->num_entries++;
               ~ ~~~~~~~~~~~~~~~~~~^~
 1 error generated.
 make: *** [st.o] Error 1
 make: *** Waiting for unfinished jobs....

clangのバージョンなど

 $ clang -v
 Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
 Target: x86_64-apple-darwin12.2.1
 Thread model: posix

参考 http://qiita.com/items/e7c4374d25ba2056a7b7

=end


Related issues 1 (0 open1 closed)

Related to Ruby master - Bug #7938: Stack consistency error while compiling 2.0.0-p0Third Party's Issuemrkn (Kenta Murata)02/24/2013Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0