* [ruby-dev:47096] [ruby-trunk - Bug #7946][Open] 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)
@ 2013-02-24 17:06 d6rkaiz (Isao Sugimoto)
2013-02-24 17:08 ` [ruby-dev:47097] [ruby-trunk - Bug #7946] " sorah (Shota Fukumori)
2013-02-24 17:56 ` [ruby-dev:47099] " naruse (Yui NARUSE)
0 siblings, 2 replies; 3+ messages in thread
From: d6rkaiz (Isao Sugimoto) @ 2013-02-24 17:06 UTC (permalink / raw
To: ruby developers list
Issue #7946 has been reported by d6rkaiz (Isao Sugimoto).
----------------------------------------
Bug #7946: 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)
https://bugs.ruby-lang.org/issues/7946
Author: d6rkaiz (Isao Sugimoto)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: 1.9.3-p385 later
=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
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-dev:47097] [ruby-trunk - Bug #7946] 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)
2013-02-24 17:06 [ruby-dev:47096] [ruby-trunk - Bug #7946][Open] 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision) d6rkaiz (Isao Sugimoto)
@ 2013-02-24 17:08 ` sorah (Shota Fukumori)
2013-02-24 17:56 ` [ruby-dev:47099] " naruse (Yui NARUSE)
1 sibling, 0 replies; 3+ messages in thread
From: sorah (Shota Fukumori) @ 2013-02-24 17:08 UTC (permalink / raw
To: ruby developers list
Issue #7946 has been updated by sorah (Shota Fukumori).
Assignee set to mrkn (Kenta Murata)
----------------------------------------
Bug #7946: 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)
https://bugs.ruby-lang.org/issues/7946#change-36948
Author: d6rkaiz (Isao Sugimoto)
Status: Open
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category:
Target version:
ruby -v: 1.9.3-p385 later
=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
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ruby-dev:47099] [ruby-trunk - Bug #7946] 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)
2013-02-24 17:06 [ruby-dev:47096] [ruby-trunk - Bug #7946][Open] 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision) d6rkaiz (Isao Sugimoto)
2013-02-24 17:08 ` [ruby-dev:47097] [ruby-trunk - Bug #7946] " sorah (Shota Fukumori)
@ 2013-02-24 17:56 ` naruse (Yui NARUSE)
1 sibling, 0 replies; 3+ messages in thread
From: naruse (Yui NARUSE) @ 2013-02-24 17:56 UTC (permalink / raw
To: ruby developers list
Issue #7946 has been updated by naruse (Yui NARUSE).
I noticed that clang version 4.1 doesn't fail.
% clang --version
Apple clang version 4.1 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix
But clang version 4.2 fails.
% clang --version
Apple LLVM version 4.2 (clang-425.0.24) (based on LLVM 3.2svn)
Target: x86_64-apple-darwin12.2.1
Thread model: posix
Anyway Ruby should avoid this.
----------------------------------------
Bug #7946: 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision)
https://bugs.ruby-lang.org/issues/7946#change-36951
Author: d6rkaiz (Isao Sugimoto)
Status: Open
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category:
Target version:
ruby -v: 1.9.3-p385 later
=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
--
http://bugs.ruby-lang.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-02-24 18:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-24 17:06 [ruby-dev:47096] [ruby-trunk - Bug #7946][Open] 1.9.3-p385以降でclangでのビルド時にエラー(error: implicit conversion loses integer precision) d6rkaiz (Isao Sugimoto)
2013-02-24 17:08 ` [ruby-dev:47097] [ruby-trunk - Bug #7946] " sorah (Shota Fukumori)
2013-02-24 17:56 ` [ruby-dev:47099] " naruse (Yui NARUSE)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).