From: <cod...@go...> - 2009-01-27 06:45:22
|
Comment #5 on issue 12 by kevinwvfowler: Can't build with cabal install http://code.google.com/p/hoc/issues/detail?id=12 I'm trying to build from svn. $ ghc --version The Glorious Glasgow Haskell Compilation System, version 6.10.1 $ system_profiler ... System Version: Mac OS X 10.5.6 (9G55) Kernel Version: Darwin 9.6.0 ... When I try to $ autogen.sh $ ./configure $ make && make install I get: + Control.Exception errors (because of base 4.0) + linkage errors (HOC_cbits.o not used because not linking or something) The attached patch lets me build with base 4.0.0 (using Control.OldExceptions) with some hand-tweaking of libHOC_cbits.dylib: $ ./configure OBJCFLAGS='-arch i686' CFLAGS='-arch i686' LDFLAGS='-arch i686' --with-dynamic-haskell CFLAGS='-fpic -dynamic' OBJCFLAGS='-fpic -dynamic' LDFLAGS='-fpic -dynamic -read_only_relocs suppress' $ make (will build HOC_cbits and HOC, then fail) copy libHOC_cbits.dylib to ~/.cabal/lib (or elsewhere in my ghc-pkg config library path) $ cabal configure && cabal build && cabal install (make sure HOC_cbits is an extra library in ghc-pkg's HOC package descriptor) $ cd Bindings $ sh ./make-bindings-macos.sh $ ghc-pkg list /Users/kfowler/.ghc/i386-darwin-6.10.1/package.conf: EdisonAPI-1.2.1, EdisonCore-1.2.1.3, GLUT-2.1.1.2, GoogleChart-0.2, HAppS-Data-0.9.3, HAppS-IxSet-0.9.3, HAppS-Server-0.9.3.1, HAppS-State-0.9.3, HAppS-Util-0.9.3, HDBC-1.1.6, HDBC-postgresql-1.1.6.0, HDBC-sqlite3-1.1.6.0, HGL-3.2.0.0, HJavaScript-0.4.4, HOC-1.0, HOC-AppKit-1.0, HOC-Cocoa-1.0, HOC-CoreData-1.0, HOC-Foundation-1.0, HOC-QuartzCore-1.0, HTTP-3001.1.3, HTTP-4000.0.1, HTTP-4000.0.3, HTTP-4000.0.4, HaXml-1.13.3, HaXml-1.19.4, MemoTrie-0.4.1, MemoTrie-0.4.3, MonadRandom-0.1.3, OpenAL-1.3.1.1, OpenGL-2.2.1.1, SDL-0.5.4, Stream-0.2.6, TypeCompose-0.6.3, TypeCompose-0.6.4, Vec-0.9.5, Attachments: 0001-enough-to-get-HOC_bits-HOC-hoc-ifgen-and-bindings.patch 8.1 KB -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings |