[Haskell-cafe] libgmp for GHC 6.10.1 on Mac OS X 10.5

Dean Herington heringtonlacey at mindspring.com
Wed Mar 18 00:22:01 EDT 2009


At 8:56 PM -0700 3/17/09, David Leimbach wrote:
>Did you get past this point?  I'm hitting:
>
>== make way=dyn -f GNUmakefile all;
>/Users/dave/Downloads/ghc-6.10.1/ghc/stage1-inplace/ghc 
>-package-name ghc-prim-0.1.0.0 -hide-all-packages 
>-no-user-package-conf -split-objs -i -idist/build -i. 
>-idist/build/autogen -Idist/build/autogen -Idist/build -optP-include 
>-optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir 
>dist/build -stubdir dist/build -package rts-1.0 -O -package-name 
>ghc-prim -XCPP -XMagicHash -XForeignFunctionInterface 
>-XUnliftedFFITypes -XUnboxedTuples -XEmptyDataDecls 
>-XNoImplicitPrelude -fPIC -dynamic -hisuf dyn_hi -hcsuf dyn_hc -osuf 
>dyn_o -idist/build  -H32m -O -O2 -Rghc-timing -XGenerics -Wall 
>-fno-warn-deprecated-flags -c GHC/PrimopWrappers.hs -o 
>dist/build/GHC/PrimopWrappers.dyn_o  -ohi 
>dist/build/GHC/PrimopWrappers.dyn_hi
>/var/folders/+U/+U7M7S-rGmSi8lNlphaibU+++TI/-Tmp-//ghc36177_0/ghc36177_0.split__54.s:unknown:missing 
>indirect symbols for section (__DATA,__nl_symbol_ptr)
><<ghc: 105811188 bytes, 9 GCs, 606208/1093632 avg/max bytes 
>residency (2 samples), 32M in use, 0.00 INIT (0.00 elapsed), 0.27 
>MUT (1.97 elapsed), 0.04 GC (0.05 elapsed) :ghc>>
>make[3]: *** [dist/build/GHC/PrimopWrappers.dyn_o] Error 1
>make[2]: *** [all] Error 1
>make[1]: *** [make.library.ghc-prim] Error 2
>make: *** [stage1] Error 2

I installed a pre-built GHC, which seems to work with the libgmp I 
built (with ABI=32) and installed.  I haven't tried building GHC 
itself.

>
>I would really like to have a ghc that doesn't statically link GMP ;-)
>
>Dave
>
>On Sun, Mar 15, 2009 at 9:03 PM, Alan Mock 
><<mailto:docmach at gmail.com>docmach at gmail.com> wrote:
>
>By default GMP builds for x86_64.  Do ./configure ABI=32 to build 
>32-bit libraries for GHC.
>
>
>On Mar 15, 2009, at 10:54 PM, Dean Herington wrote:
>
>I'm trying to install GHC 6.10.1 on Mac OS X 10.5 (PowerPC).  I 
>installed Xcode 3.1.2.  I built libgmp 4.2.4 and installed it in 
>/usr/local/lib.  When I do "./configure" in GHC's dist directory, 
>however, I get:
>
>bash-3.2$ ./configure
>checking build system type... powerpc-apple-darwin9.6.0
>checking host system type... powerpc-apple-darwin9.6.0
>checking target system type... powerpc-apple-darwin9.6.0
>Which we'll further canonicalise into: powerpc-apple-darwin
>checking for path to top of build tree... dyld: Library not loaded: 
>/usr/local/lib/libgmp.3.dylib
>  Referenced from: 
>/Users/family/Desktop/Downloads/ghc-6.10.1/dist/utils/pwd/pwd
>  Reason: no suitable image found.  Did find:
>        /usr/local/lib/libgmp.3.dylib: mach-o, but wrong architecture
>        /usr/local/lib/libgmp.3.dylib: mach-o, but wrong architecture
>configure: error: cannot determine current directory
>
>Any ideas what I'm doing wrong?
>
>Thanks.
>_______________________________________________
>Haskell-Cafe mailing list
><mailto:Haskell-Cafe at haskell.org>Haskell-Cafe at haskell.org
><http://www.haskell.org/mailman/listinfo/haskell-cafe>http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>_______________________________________________
>Haskell-Cafe mailing list
><mailto:Haskell-Cafe at haskell.org>Haskell-Cafe at haskell.org
><http://www.haskell.org/mailman/listinfo/haskell-cafe>http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
>
>_______________________________________________
>Haskell-Cafe mailing list
>Haskell-Cafe at haskell.org
>http://www.haskell.org/mailman/listinfo/haskell-cafe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20090318/77ffa563/attachment.htm


More information about the Haskell-Cafe mailing list