[Hackage] #791: Large libraries not installable on OS X

Simon Marlow marlowsd at gmail.com
Mon Mar 28 10:36:47 CEST 2011


Hi Conal,

The Hackage bug you quoted is related to this GHC ticket:

http://hackage.haskell.org/trac/ghc/ticket/4326

the root cause is a size limitation in the OS X linker triggered when 
libraries get particularly large.  We worked around it (actually Ian 
did) in GHC by adding support to the GHCi linker to load .a files.

What's still missing (I presume) is something in Cabal to treat this 
error as non-fatal, and back off to using .a files instead.  Or perhaps 
using .a files should be the default.

Cheers,
	Simon

On 26/03/2011 16:59, Conal Elliott wrote:
> I see that this this trac item has no milestone and an "unknown"
> duration. Has this problem (incompatibility of large libraries and ghci
> on the Mac) slipped through the cracks? Is it thought to be unimportant?
> For me, not being able to count on ghci is a huge detriment. Thanks,
>
>    - Conal
>
> On Sun, Mar 20, 2011 at 9:18 PM, Hackage <cvs-ghc at haskell.org
> <mailto:cvs-ghc at haskell.org>> wrote:
>
>     #791: Large libraries not installable on OS X
>     -----------------------------+----------------------------------------------
>       Reporter:  batterseapower  |        Owner:
>           Type:  defect          |       Status:  new
>       Priority:  high            |    Milestone:
>       Component:  Cabal library   |      Version:  1.8.0.6
>       Severity:  normal          |     Keywords:
>     Difficulty:  unknown         |   Ghcversion:
>       Platform:  Mac OS          |
>     -----------------------------+----------------------------------------------
>     Changes (by conal):
>
>       * cc: conal (added)
>
>
>     Comment:
>
>       I just ran into this same issue while 'cabal install'ing highlighting-
>       kate-0.2.9 with 32-bit ghc 7.0.2 on Mac OS 10.6.6. Is there an
>     up-to-date
>       recommendation for this problem?
>       {{{
>       bash-3.2$ pwd
>       /Users/conal/cabal/highlighting-kate-0.2.9
>       bash-3.2$ cabal install
>       Resolving dependencies...
>       Configuring highlighting-kate-0.2.9...
>       Preprocessing library highlighting-kate-0.2.9...
>       Preprocessing executables for highlighting-kate-0.2.9...
>       Building highlighting-kate-0.2.9...
>       [  1 of 111] Compiling Paths_highlighting_kate (
>       dist/build/autogen/Paths_highlighting_kate.hs,
>       dist/build/Paths_highlighting_kate.o )
>       ...
>       [111 of 111] Compiling Text.Highlighting.Kate (
>     Text/Highlighting/Kate.hs,
>       dist/build/Text/Highlighting/Kate.o )
>       ld: scattered reloc r_address too large
>       cabal: Error: some packages failed to install:
>       highlighting-kate-0.2.9 failed during the building phase. The
>     exception
>       was:
>       ExitFailure 1
>       bash-3.2$ ghc --version
>       The Glorious Glasgow Haskell Compilation System, version 7.0.2
>       bash-3.2$ uname -a
>       Darwin Conals-Mac.local 10.6.0 Darwin Kernel Version 10.6.0: Wed
>     Nov 10
>       18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
>       }}}
>
>     --
>     Ticket URL:
>     <http://hackage.haskell.org/trac/hackage/ticket/791#comment:7>
>     Hackage <http://haskell.org/cabal/>
>     Hackage: Cabal and related projects
>
>     _______________________________________________
>     cabal-devel mailing list
>     cabal-devel at haskell.org <mailto:cabal-devel at haskell.org>
>     http://www.haskell.org/mailman/listinfo/cabal-devel
>
>
>
>
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc




More information about the cabal-devel mailing list