Conference Room SAD
[thread display] [new arrival display] [word search] [past log] [管理用]

Subject Re: Intel MacにおけるSADの現状
Date: 2006/04/08(Sat) 03:23:07
ContributorShin-ichi Yoshimoto < >

吉本@羽田エクセルホテル東急です。

すこし進展がありました。昨夜gmp関係のメーリングリストでパッチが投げられ、

> a) gmp-4.2をmakeする際には--host=non-apple-darwinをつける。こうすれば
> make checkまでは通ります。

ですが、--host=non-apple-darwinをつけなくても良いようになりました。パッチは以下の通り。

--- gmp-4.2.orig/tests/x86call.asm 2006-03-14 16:57:54.000000000 +0100
+++ gmp-4.2/tests/x86call.asm 2006-04-07 09:58:50.000000000 +0200
@@ -115,3 +115,14 @@

EPILOGUE()

+C void gmp_x86check_workaround_apple_ld_bug()
+C
+C Apple ld has an annoying bug that causes it to only load members from
+C static archives that satisfy text symbol dependencies. This procedure
+C creates a bogus dependency on a text symbol in x86check.o (in libtests.a)
+C to ensure that ld loads it, also making all of the needed non-text
+C symbols available.
+
+PROLOGUE(gmp_x86check_workaround_apple_ld_bug)
+ jmp *G(calling_conventions_check)
+EPILOGUE()

これを当てれば、./configure && make && make check が問題なく通るようになりました。
これから、このgmpを使ってgfortranを作って、SADの方を試してみます。


- 関連一覧ツリー (Click ▼ to display all articles in a thread.)