Forum: Ruby-dev [ruby-trunk - Bug #7344][Open] gem pristine bigdecimal が失敗してしまう

Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2012-11-13 12:11
(Received via mailing list)
Issue #7344 has been reported by hsbt (Hiroshi SHIBATA).

----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344

Author: hsbt (Hiroshi SHIBATA)
Status: Open
Priority: Normal
Assignee: nahi (Hiroshi Nakamura)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mame (Yusuke Endoh) (Guest)
on 2012-11-13 12:16
(Received via mailing list)
Issue #7344 has been updated by mame (Yusuke Endoh).

Status changed from Open to Assigned
Assignee changed from nahi (Hiroshi Nakamura) to mrkn (Kenta Murata)

mrkn さんの作った gem が悪いのでは、という説なので、
とりあえず mrkn さん調べてみてもらえますか?

--
Yusuke Endoh <mame@tsg.ne.jp>
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-32852

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2012-11-13 17:04
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


ほかの built-in 拡張ライブラリは問題ないんですかねぇ。
そうだとすれば gemspec を真似すればいいのかな。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-32867

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2012-11-24 18:16
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


他のライブラリは pure-ruby なので問題無いようです。EM 等にならってビルド時の working ディレクトリを tmp 
とかにすれば良さそうな気もしますが、rubygems や fake_gem.rb 
の仕組みをあまりよくわかってないので、パッチまでは作れませんでした。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-33821

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2012-11-25 05:46
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).


RubyGemsに https://github.com/rubygems/rubygems/pull/377 
がマージされて、RubyGemsがRuby本体にマージされれば #7427 解決しそうな気がします。RubyGemsの方のpull 
requestではdefault gemのpristineはスキップするようにしてあるので。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-33849

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2012-11-25 13:42
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


gem install bigdecimal でも同様の結果になってしまいました。rubygems/rubygems の #377 
でインストールできない問題も解決するのであれば、rubygems 側の変更でよさそうです。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-33855

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2012-11-25 14:40
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).


あぁ、それは解決しないです。そっちはrubygems.orgにあるbigdecimal-1.1.0.gemをダウンロードしてビルドするのでdefault 
gemとかは関係ない世界になります。

gem install bigdecimalする機会があるのかどうかはおいておくとして、bigdecimal 
gemがトップレベルにextconf.rbとかbigdecimal.cとかを転がしているのをext/bigdecimal/以下に移動すれば解決するような気がします!

コマンドでいえばこんな感じです。

  % mkdir -p ext/bigdecimal
  % mv bigdecimal.{c,h} depend extconf.rb ext/bigdecimal/

で、それにあわせてbigdecimal.gemspecをこんな感じに編集します。

Index: bigdecimal.gemspec
===================================================================
--- bigdecimal.gemspec  (revision 37766)
+++ bigdecimal.gemspec  (working copy)
@@ -10,13 +10,13 @@
   s.email = "mrkn@mrkn.jp"
   s.description = "This library provides arbitrary-precision decimal 
floating-point number class."
   s.authors = ["Kenta Murata", "Shigeo Kobayashi"]
-  s.require_path = %[.]
   s.files = %w[
     bigdecimal.gemspec
-    bigdecimal.c
-    bigdecimal.h
+    ext/bigdecimal/bigdecimal.c
+    ext/bigdecimal/bigdecimal.h
     README
-    depend extconf.rb
+    ext/bigdecimal/depend
+    ext/bigdecimal/extconf.rb
     lib/bigdecimal/jacobian.rb
     lib/bigdecimal/ludcmp.rb
     lib/bigdecimal/math.rb
@@ -26,5 +26,5 @@
     sample/nlsolve.rb
     sample/pi.rb
   ]
-  s.extensions = %w[extconf.rb]
+  s.extensions = %w[ext/bigdecimal/extconf.rb]
 end

これで作ったbigdecimal 
gemをrubygems.orgにpushしておくといいんじゃないかと思います。(バージョンはあげないといけないと思います。)
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-33858

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2012-11-25 20:52
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


須藤さんありがとうございます。直りそうな気がします!

mrkn よろしくお願いします!

----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-33870

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2012-12-02 14:54
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


> で、それにあわせてbigdecimal.gemspecをこんな感じに編集します。

このパッチは trunk の ext/bigdecimal/bigdecimal.gemspec に当てれば良いのでしょうか?
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34318

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2012-12-02 15:21
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).


はい。
(もしかして、bigdecimal用の別のリポジトリがあったりします?)
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34319

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2012-12-03 15:10
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


> (もしかして、bigdecimal用の別のリポジトリがあったりします?)

いえ、ありません。ruby の trunk が唯一のリポジトリです。

ところで、io/console にも同じ問題があったりしますか?
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34362

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2012-12-03 16:46
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


私の手元の環境では、以下の patch を適用し、ruby の top_srcdir で gem build 
ext/bigdecimal/bigdecimal.gemspec を実行してビルドした gem 
パッケージを使う事で、install/pristine/uninstall などがきちんと動くことを確認できました。

私は本来の問題を再現する環境の作り方が分からないので、以下の変更で問題ないかどうかレビューまたは確認をしていただけないでしょうか。

diff --git a/ext/bigdecimal/bigdecimal.gemspec 
b/ext/bigdecimal/bigdecimal.gemspec
index 362808c..f52ac22 100644
--- a/ext/bigdecimal/bigdecimal.gemspec
+++ b/ext/bigdecimal/bigdecimal.gemspec
@@ -10,21 +10,22 @@ Gem::Specification.new do |s|
   s.email = "mrkn@mrkn.jp"
   s.description = "This library provides arbitrary-precision decimal 
floating-point number class."
   s.authors = ["Kenta Murata", "Shigeo Kobayashi"]
-  s.require_path = %[.]
+  s.require_path = %[ext/bigdecimal/lib/]
   s.files = %w[
-    bigdecimal.gemspec
-    bigdecimal.c
-    bigdecimal.h
-    README
-    depend extconf.rb
-    lib/bigdecimal/jacobian.rb
-    lib/bigdecimal/ludcmp.rb
-    lib/bigdecimal/math.rb
-    lib/bigdecimal/newton.rb
-    lib/bigdecimal/util.rb
-    sample/linear.rb
-    sample/nlsolve.rb
-    sample/pi.rb
+    ext/bigdecimal/bigdecimal.gemspec
+    ext/bigdecimal/bigdecimal.c
+    ext/bigdecimal/bigdecimal.h
+    ext/bigdecimal/README
+    ext/bigdecimal/depend
+    ext/bigdecimal/extconf.rb
+    ext/bigdecimal/lib/bigdecimal/jacobian.rb
+    ext/bigdecimal/lib/bigdecimal/ludcmp.rb
+    ext/bigdecimal/lib/bigdecimal/math.rb
+    ext/bigdecimal/lib/bigdecimal/newton.rb
+    ext/bigdecimal/lib/bigdecimal/util.rb
+    ext/bigdecimal/sample/linear.rb
+    ext/bigdecimal/sample/nlsolve.rb
+    ext/bigdecimal/sample/pi.rb
   ]
-  s.extensions = %w[extconf.rb]
+  s.extensions = %w[ext/bigdecimal/extconf.rb]
 end
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34365

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by Nobuyoshi Nakada (nobu)
on 2012-12-04 06:01
(Received via mailing list)
Issue #7344 has been updated by nobu (Nobuyoshi Nakada).

Assignee changed from mrkn (Kenta Murata) to drbrain (Eric Hodel)

いや、これはソースディレクトリとビルドディレクトリ、インストールディレクトリを区別していないrubygemsのバグじゃないでしょうか。

I think the culprit is rubygems, which doesn't separate build, source 
and install directories.
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34388

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by drbrain (Eric Hodel) (Guest)
on 2012-12-06 05:28
(Received via mailing list)
Issue #7344 has been updated by drbrain (Eric Hodel).


=begin
This seems fixed in ruby 2.0.0 preview2 which includes RubyGems 
2.0.0.preview2 and default gems:

  $ gem20 pristine bigdecimal
  Restoring gems to pristine condition...
  Skipped bigdecimal-1.1.0, it is a default gem
  $ gem20 env
  RubyGems Environment:
    - RUBYGEMS VERSION: 2.0.0.preview2
    - RUBY VERSION: 2.0.0 (2012-12-05 patchlevel -1) 
[x86_64-darwin12.2.0]
    - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.0.0
    - RUBY EXECUTABLE: /usr/local/bin/ruby20
    - EXECUTABLE DIRECTORY: /usr/local/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-darwin-12
    - GEM PATHS:
       - /usr/local/lib/ruby/gems/2.0.0
       - /Users/drbrain/.gem/ruby/2.0.0
    - GEM CONFIGURATION:
       - :update_sources => true
       - :verbose => true
       - :backtrace => false
       - :bulk_threshold => 1000
       - :benchmark => false
       - "gemcutter_key" => "********************************"
       - "install" => "--format-executable --no-user-install"
       - "update" => "--format-executable --no-user-install"
       - "uninstall" => "--format-executable --no-user-install"
    - REMOTE SOURCES:
       - http://rubygems.org/

=end

----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34445

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2012-12-08 08:57
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


latest rubygems fixed this issue. I confirmed to solve `gem pristine 
bigdecimal`.

But `gem install bigdecimal` always failed now. I think that bigdecimal 
problems at first. but nobu said it's rubygems defects.
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34536

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by drbrain (Eric Hodel) (Guest)
on 2012-12-14 22:55
(Received via mailing list)
Issue #7344 has been updated by drbrain (Eric Hodel).


=begin
I think I understand the comments on this bug thanks to google translate 
but please inform me of anything important I did not address.

Using recent ruby and rubygems:

  $ gem20 env
  RubyGems Environment:
    - RUBYGEMS VERSION: 2.0.0.preview2.1
    - RUBY VERSION: 2.0.0 (2012-12-15 patchlevel -1) 
[x86_64-darwin12.2.1]
    - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/2.0.0
    - RUBY EXECUTABLE: /usr/local/bin/ruby20
    - EXECUTABLE DIRECTORY: /usr/local/bin
    - RUBYGEMS PLATFORMS:
      - ruby
      - x86_64-darwin-12
    - GEM PATHS:
       - /usr/local/lib/ruby/gems/2.0.0
       - /Users/drbrain/.gem/ruby/2.0.0
    - GEM CONFIGURATION:
       - :update_sources => true
       - :verbose => true
       - :backtrace => false
       - :bulk_threshold => 1000
       - :benchmark => false
       - "gemcutter_key" => "********************************"
       - "install" => "--format-executable --no-user-install"
       - "update" => "--format-executable --no-user-install"
       - "uninstall" => "--format-executable --no-user-install"
    - REMOTE SOURCES:
       - http://rubygems.org/

I can pristine big decimal (like hsbt):

  $ gem20 pristine bigdecimal
  Restoring gems to pristine condition...
  Skipped bigdecimal-1.1.0, it is a default gem

and ((%gem pristine --all%)) works:

  $ sudo gem20 pristine --all
  Password:
  Restoring gems to pristine condition…
  […]
  Skipped bigdecimal-1.1.0, it is a default gem
  […]

I can install bigdecimal:

  $ gem20 install bigdecimal
  Building native extensions.  This could take a while...
  Successfully installed bigdecimal-1.1.0
  Parsing documentation for bigdecimal-1.1.0
  Done installing documentation for bigdecimal (1 sec).
  1 gem installed

The installed version of bigdecimal and the default gem version are the 
same, so the installed version can't be used:

  $ ruby20 -rbigdecimal -e 'p $".grep(/bigdecimal/)'
  ["/usr/local/lib/ruby/2.0.0/x86_64-darwin12.2.1/bigdecimal.bundle"]

I don't know if this is a bug in RubyGems or not. kou, can you comment?

You also can't uninstall the duplicate version you installed, this is a 
bug:

  $ gem20 uninstall bigdecimal
  ERROR:  While executing gem ... (Gem::InstallError)
      gem "bigdecimal" cannot be uninstalled because it is a default gem

I will fix this bug ^

NOTE: RubyGems will build bigdecimal.so then install bigdecimal.so and 
ext/bigdecimal/lib/ into lib/.  RubyGems edits the Makefile so ((%make 
install%)) will copy the files:

https://github.com/rubygems/rubygems/blob/master/l...

So source/build directories and lib directories can be separate (but not 
source, build and lib).

=end
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34753

Author: hsbt (Hiroshi SHIBATA)
Status: Assigned
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2012-12-17 16:40
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).

Status changed from Assigned to Feedback

I think we need more precise information to reproduce the issue that 
`gem install bigdecimal` is still failed on trunk.

----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34801

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2012-12-18 15:40
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).


> The installed version of bigdecimal and the default gem version are the same, so 
the installed version can't be used:
>
> $ ruby20 -rbigdecimal -e 'p $".grep(/bigdecimal/)'
> ["/usr/local/lib/ruby/2.0.0/x86_64-darwin12.2.1/bigdecimal.bundle"]
>
> I don't know if this is a bug in RubyGems or not. kou, can you comment?

Umm... It is difficult... OK. It's a bug in RubyGems. We can fix it by 
the following change:

Index: specification.rb
===================================================================
--- specification.rb  (revision 38448)
+++ specification.rb  (working copy)
@@ -648,10 +648,10 @@
     unless defined?(@@all) && @@all then

       specs = {}
-      each_default do |spec|
+      each_normal do |spec|
         specs[spec.full_name] ||= spec
       end
-      each_normal do |spec|
+      each_default do |spec|
         specs[spec.full_name] ||= spec
       end


> I think we need more precise information to reproduce the issue that `gem 
install bigdecimal` is still failed on trunk.

I think that install command on Mac OS X doesn't report error for the 
same source and destination file. Could you try the following commands?

  % touch a
  % install a a
  % echo $?

Here is the result on my Debian GNU/Linux:

  % touch a
  % install a a
  install: 'a' and 'a' are the same file
  % echo $?
  1

I think that install on Mac OS X returns 0 for "echo $?".
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34830

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2012-12-18 17:27
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


> Could you try the following commands?

This is my result:

  $ touch a
  $ install a a
  install: a and a are the same file
  $ echo $?
  64
  $ which install
  /usr/bin/install
  $ uname -a
  Darwin mrkn-mbp15.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 
25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64

----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34832

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2012-12-19 05:05
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


I used GNU install(includes coreutils) in Mac OS. my result is same as 
kou's result of GNU/Linux.
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34838

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2012-12-19 05:09
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).


Thanks.

It seems that the following commands show a difference:

  % touch a
  % install a ./
  % echo $?

"$?" is 1 on my Debian GNU/Linux. "$?" will be 0 with Mac OS X's native 
install.
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-34839

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2013-01-14 01:53
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


mrkn へ(担当者の変更ができない...)

RC1 も出てしまいましたし、以下の変更を trunk に入れて、bigdecimal のバージョンナンバーを更新したのち、gem push 
をしてもらえないでしょうか。

https://bugs.ruby-lang.org/issues/7344#note-11

現状だと、GNU coreutils の環境、だいたいの Linux で gem install bigdecimal 
を実行すると失敗します。1.9 でも pristine 
コマンドで失敗します。標準添付ライブラリがインストールできないというのは格好悪いのでこれだけでも修正できないでしょうか。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35390

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: drbrain (Eric Hodel)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2013-01-14 03:18
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).

Assignee changed from drbrain (Eric Hodel) to mrkn (Kenta Murata)


----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35393

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2013-01-14 06:04
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


hsbt (Hiroshi SHIBATA) wrote:
> RC1 も出てしまいましたし、以下の変更を trunk に入れて、bigdecimal のバージョンナンバーを更新したのち、gem push 
をしてもらえないでしょうか。

bigdecimal の修正については了解しました。やります。

io-console も bigdecimal と同じ gemspec の構成になっていますが、こっちは修正しなくても良いのですか?

----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35399

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2013-01-14 07:16
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


io-console も同じなのにエラーが出ないのは何故と調べてみると、io-console は LOAD_PATH の下でビルドした後に、io 
というディレクトリを作成して、io/console.so と移動しているため、gnu install でエラーがでないようでした。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35401

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by Tadashi Saito (Guest)
on 2013-01-14 16:52
(Received via mailing list)
$B:XF#$H?=$7$^$9!#2#$+$i<:Ni$7$^$9!#(B

gem install 
bigdecimal$B$,<:GT$9$kLdBj$O!"(BBigDecimal$B$N(Bgem$B$K8B$i$:!"8=>u$NB>$N(B
gem$B$K$bGH5Z$9$kLdBj$G$"$k!"$H$$$&;v$rCN$C$F$$$?$@$-$?$$$G$9!#(B

$B$?$H$($P@[:n%i%$%V%i%j$N(Bgem$B$O!"(B1.9.3$B$G$O2?$NLdBj$b$J$/(Bgem 
install$B$G$-$^$9$,!"(B
$B:G?7$N(B2.0.0$B$KF1:-$5$l$F$$$k(Bgem$B$G;n$7$?$H$3$m!"0J2<$N$h$&$K!"(Bbigdecimal$B$N(B
$B%1!<%9$K9s;w$7$?%(%i!<%a%C%;!<%8$H6&$K!"(Binstall$B$,<:GT$7$^$9!#(B

$ ruby-2.0.0  -v
ruby 2.0.0dev (2013-01-14 trunk 38812) [x86_64-linux]

$ gem-2.0.0  -v
2.0.0.preview3.1

$ gem-2.0.0 install decimal # gem$B$NL>A0$,;w$F$$$k$N$O$?$^$?$^$G$9(B ;)
Building native extensions.  This could take a while...
ERROR:  Error installing decimal:
    ERROR: Failed to build gem native extension.

    /home/tadashi/rubies/2.0.0/bin/ruby-2.0.0 extconf.rb
checking for RUBY_VERSION in version.h... no
checking for rb_big_div()... yes
checking for rb_big_modulo()... yes
checking for rb_bigzero_p()... yes
checking for rb_usascii_str_new()... yes
creating Makefile

make
compiling decimal.c
decimal.c: In function $B!F(Bdivmod$B!G(B:
decimal.c:1030:8: warning: unused variable $B!F(Bdiv_inum$B!G(B 
[-Wunused-variable]
decimal.c: In function $B!F(Bdo_round$B!G(B:
decimal.c:855:47: warning: $B!F(Binum$B!G(B may be used uninitialized in 
this
function [-Wmaybe-uninitialized]
linking shared-object decimal.so

make install
/usr/bin/install -c -m 0755 decimal.so
/home/tadashi/rubies/2.0.0/lib/ruby/gems/2.0.0/gems/decimal-0.1.0/lib
installing default decimal libraries
/usr/bin/install: `./lib/decimal.rb' and
`/home/tadashi/rubies/2.0.0/lib/ruby/gems/2.0.0/gems/decimal-0.1.0/lib/decimal.rb'
are the same file
make: *** 
[/home/tadashi/rubies/2.0.0/lib/ruby/gems/2.0.0/gems/decimal-0.1.0/lib/decimal.rb]
Error 1


Gem files will remain installed in
/home/tadashi/rubies/2.0.0/lib/ruby/gems/2.0.0/gems/decimal-0.1.0 for
inspection.
Results logged to
/home/tadashi/rubies/2.0.0/lib/ruby/gems/2.0.0/gems/decimal-0.1.0/./gem_make.out


$B%m%0$+$i$O!"(Bmake$B$K$h$k%S%k%I$O(B(warning$B$,=P$k$b$N$N(B)$B@.8y$7$F$$$^$9$,!"(Bmake 
install$B$G(B
$B<:GT$7$F$$$k$N$,$*J,$+$j$$$?$@$1$k$H;W$$$^$9!#(B

$B$3$l$O$?$7$+$K(Bgem$B:n<T$,%G%#%l%/%H%j9=@.$rJQ$($l$P2sHr$G$-$^$9$,!"5U$K?=$7(B
$B>e$2$k$H!"8=:_(Binstall$B$G$-$k(Bgem$B$G$b9=@.$rJQ$($J$$8B$j!"(B2.0.0$B$K$J$C$?ESC<$K(B(API$B!&(B
$B%3!<%I$K8_49@-$O$"$C$F$b(B)install$B$G$-$J$/$J$k2DG=@-$,$"$k$H$$$&$3$H$K$J$j$^$9!#(B
$B$3$l$,%P%0$+$I$&$+<+J,$K$O$O$C$-$j$7$^$;$s$,!"Bg$-$JHs8_49$G$"$k$N$OL@$i$+(B
$B$G$O$J$$$G$7$g$&$+!#(B

$B$3$N$h$&$K%$%s%9%H!<%k$K<:GT$9$k(Bgem$B$,$$$/$D$"$k$N$+$b!"<B:]$K%$%s%9%H!<%k(B
$B$9$k$+!"9=@.$r%A%'%C%/$7$F$_$J$1$l$PJ,$+$j$^$;$s!#(B2.0$B%j%j!<%98e$K0$I!6+4-$9$k(B
$BFCDj$N(Bgem$BMxMQ<T$,=P$k$N$O4V0c$$$J$$$G$7$g$&!#$^$?$3$N%G%#%l%/%H%j$N;EMMJQ99$K(B
$B$h$C$F!"$I$s$J%a%j%C%H$,$"$k$N$+$b<+J,$OJ,$+$j$^$;$s$G$7$?!#(B

$B$H$$$&$o$1$G$$$A(Bgem$B:n<T$N$*4j$$$H$7$F!"(B

1. 
2.0.0$B$N%j%j!<%9$+!"$;$a$FD>8e$N%Q%C%A%j%j!<%9$^$G$K$O!">e5-$N?6$kIq$$$r85$K(B
  $BLa$7$F%$%s%9%H!<%k$G$-$k$h$&$K$7$F$[$7$$(B
2. 
$BLa$;$J$$$N$G$"$l$P!"8=9T$NA4(Bgem$B$K$D$$$F5!3#E*$K(B2.0.0ready$B$G$"$k$+%A%'%C%/$7(B
  gem$B:n<T$KDLCN$7$F$[$7$$(B 
($B$H$$$&$N$O(Brubygems.org$B$N;E;v$K$J$j$=$&$G$9$M(B)

$B$H$$$&$b$N$rMWK>$5$;$F$$$?$@$-$?$$$G$9!#!J$?$@(B2$B$O!"$+$J$j%3%9%H$,9b$/46$8$^$9!K(B

$B$=$NB>$K$b!"(B

3. 
gem$B:n<T$K!"%$%s%9%H!<%kITG=$K$J$kHs8_49$,H/@8$9$k;]$r%"%J%&%s%9$9$k(B

$B$H$$$&A*Br;h$b$"$k$+$b$7$l$^$;$s$,!":#$^$G$O%"%J%&%s%9$r8+$?$3$H$,$J$$$G$9$7!"(B
$B$3$N;~4|$+$i?7$7$/=P$9$N$G$O!"$9$G$KCY$9$.$k$N$G$O$J$$$+$H$$$&5$$,$7$F$$$^$9!#(B

$B$48!F$$r$h$m$7$/$*4j$$$$$?$7$^$9!#(B

2013/1/14 hsbt (Hiroshi SHIBATA) <shibata.hiroshi@gmail.com>:
Posted by Shota Fukumori (sora_h) (Guest)
on 2013-01-14 17:42
(Received via mailing list)
sora_h $B$G$9!#(B

2013/1/15 Tadashi Saito <tad.a.digger@gmail.com>:
> 1. 
2.0.0$B$N%j%j!<%9$+!"$;$a$FD>8e$N%Q%C%A%j%j!<%9$^$G$K$O!">e5-$N?6$kIq$$$r85$K(B
>   $BLa$7$F%$%s%9%H!<%k$G$-$k$h$&$K$7$F$[$7$$(B
> 2. 
$BLa$;$J$$$N$G$"$l$P!"8=9T$NA4(Bgem$B$K$D$$$F5!3#E*$K(B2.0.0ready$B$G$"$k$+%A%'%C%/$7(B
>   gem$B:n<T$KDLCN$7$F$[$7$$(B 
($B$H$$$&$N$O(Brubygems.org$B$N;E;v$K$J$j$=$&$G$9$M(B)
>
> 
$B$H$$$&$b$N$rMWK>$5$;$F$$$?$@$-$?$$$G$9!#!J$?$@(B2$B$O!"$+$J$j%3%9%H$,9b$/46$8$^$9!K(B

$B$3$NOCBj$O(B ruby-core $B$NJ}$,NI$5$=$&$@$H;W$$$^$7$?!#(B
$BJL%A%1%C%H$H$7$F(B ruby-core $B$K1Q8l$GEj$2$k;v$O2DG=$G$7$g$&$+(B?
Posted by hsbt (Hiroshi SHIBATA) (Guest)
on 2013-01-15 01:26
(Received via mailing list)
Issue #7344 has been updated by hsbt (Hiroshi SHIBATA).


tad さんのご報告にある 1.9 でインストール出来ていた gem が 2.0 ではインストールできない
という問題は bigdecimal に限らないと思いますので、改めて issue を立てて報告した方が良いと思います。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35415

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by mrkn (Kenta Murata) (Guest)
on 2013-01-15 05:13
(Received via mailing list)
Issue #7344 has been updated by mrkn (Kenta Murata).


続きは #7698 で。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35421

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by tad (Tadashi Saito) (Guest)
on 2013-01-16 15:11
(Received via mailing list)
Issue #7344 has been updated by tad (Tadashi Saito).


sorahさん、mrknさん、hsbtさん、アドバイスありがとうございます。
(特にチケットの完璧な英訳、ありがとうございました!)

#7698 で須藤さんがそれらしいパッチを投げてくださっているので、
期待したり動作テストしたりしながら待とうと思います。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35447

Author: hsbt (Hiroshi SHIBATA)
Status: Feedback
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Posted by kou (Kouhei Sutou) (Guest)
on 2013-01-17 14:26
(Received via mailing list)
Issue #7344 has been updated by kou (Kouhei Sutou).

Status changed from Feedback to Closed
% Done changed from 0 to 100

#7698 を閉じたのでこっちも閉じますね。
----------------------------------------
Bug #7344: gem pristine bigdecimal が失敗してしまう
https://bugs.ruby-lang.org/issues/7344#change-35461

Author: hsbt (Hiroshi SHIBATA)
Status: Closed
Priority: Normal
Assignee: mrkn (Kenta Murata)
Category: core
Target version: 2.0.0
ruby -v: ruby 2.0.0dev (2012-11-13) [x86_64-darwin12.2.1]


gem pristine bigdecimal を実行すると以下のエラーが発生して落ちてしまいます。

% gem pristine bigdecimal
Restoring gems to pristine condition...
Building native extensions.  This could take a while...
ERROR:  While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

/Users/hsbt/.rbenv/versions/2.0.0-dev/bin/ruby extconf.rb
checking for labs() in stdlib.h... yes
checking for llabs() in stdlib.h... yes
creating Makefile

make
compiling bigdecimal.c
linking shared-object bigdecimal.bundle

make install
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install -c -m 0755 
bigdecimal.bundle 
/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/.
/usr/local/Cellar/coreutils/8.19/libexec/gnubin/install: 
‘bigdecimal.bundle’ and 
‘/Users/hsbt/.rbenv/versions/2.0.0-dev/lib/ruby/gems/2.0.0/gems/bigdecimal-1.1.0/./bigdecimal.bundle’ 
are the same file
make: *** [install-so] Error 1

単独で実行している時は影響がないのですが、 OS アップデート時などに gem pristine --all を実行した時は b 
で必ず止まってしまうので困っています。
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.