Stop! Tickets are now managed at GitHub.

Please enter new tickets, and find and edit existing tickets there:

Ticket #132 (closed defect: wontfix)

Opened 4 years ago

Last modified 4 years ago

Can't find dyn base libraries on OS X

Reported by: pshc Owned by: gregorycollins
Priority: major Milestone:
Component: OSX installer Keywords:
Cc: paching@…


Trying ghc -dynamic --make Test.hs gives

[1 of 1] Compiling Main             ( Test.hs, Test.o )

    Failed to load interface for `Prelude':
      Perhaps you haven't installed the "dyn" libraries for package `base'?
      Use -v to see a list of the files searched for.

Also, trying to install the dynamic library with cabal install --reinstall --enable-shared base gives

Resolving dependencies...
cabal: internal error: impossible

Change History

Changed 4 years ago by pshc

  • cc paching@… added

Changed 4 years ago by pshc

Wondering if this is related to ghc:#3550?

Also, this problem exists in the new Haskell platform even with ghc 6.12.3; verbose output for ghc -dynamic -shared Test.hs -v follows:

Glasgow Haskell Compiler, Version 6.12.3, for Haskell 98, stage 2 booted by GHC version 6.12.2
Using binary package database: /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/package.conf.d/package.cache
hiding package base- to avoid conflict with later version base-
wired-in package ghc-prim mapped to ghc-prim-
wired-in package integer-gmp mapped to integer-gmp-
wired-in package base mapped to base-
wired-in package rts mapped to builtin_rts
wired-in package haskell98 mapped to haskell98-
wired-in package template-haskell mapped to template-haskell-
wired-in package dph-seq mapped to dph-seq-0.4.0-1df951f78b4efbc84e2534bab253505d
wired-in package dph-par mapped to dph-par-0.4.0-436308af1d9725eae22b56265f6035ec
Hsc static flags: 
Created temporary directory: /var/folders/QX/QXmxByTtE4qWNGgWANMafU+++TI/-Tmp-/ghc20912_0
*** Checking old interface for main:Main:
*** Parser:
*** Renamer/typechecker:

    Failed to load interface for `Prelude':
      Perhaps you haven't installed the "dyn" libraries for package `base'?
      locations searched:
*** Deleting temp files:
Deleting: /var/folders/QX/QXmxByTtE4qWNGgWANMafU+++TI/-Tmp-/ghc20912_0/ghc20912_0.s
Warning: deleting non-existent /var/folders/QX/QXmxByTtE4qWNGgWANMafU+++TI/-Tmp-/ghc20912_0/ghc20912_0.s
*** Deleting temp dirs:
Deleting: /var/folders/QX/QXmxByTtE4qWNGgWANMafU+++TI/-Tmp-/ghc20912_0

Changed 4 years ago by gregorycollins

  • status changed from new to closed
  • resolution set to wontfix

Hi guys,

I am 90% sure that the GHC shipped with the OSX installer does not support dynamic linking, sorry. The GHC binary installer is packaged upstream and to fix this "properly" (Macports seems to have 64-bit and dynamic linking) we either need to wait for GHC to make the change or take on that part of the binary packaging ourselves.

If someone wants to pick up the flag on this one, please email me (greg@…).

Note: See TracTickets for help on using tickets.