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@…

Description

Trying ghc -dynamic --make Test.hs gives

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

Test.hs:1:0:
    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-3.0.3.2 to avoid conflict with later version base-4.2.0.2
wired-in package ghc-prim mapped to ghc-prim-0.2.0.0-9df3bd825ad17ca739e158c880a25b11
wired-in package integer-gmp mapped to integer-gmp-0.2.0.1-72436e28c79d056c87cc0d2d2f9f3773
wired-in package base mapped to base-4.2.0.2-99442781c4fd10a8c30c35c9ce5fac5c
wired-in package rts mapped to builtin_rts
wired-in package haskell98 mapped to haskell98-1.0.1.1-4d2891ad99eae334ff8234bcfbddce06
wired-in package template-haskell mapped to template-haskell-2.4.0.1-7f84d967c8ff6750b3d865aff2a093e1
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:

Test.hs:1:0:
    Failed to load interface for `Prelude':
      Perhaps you haven't installed the "dyn" libraries for package `base'?
      locations searched:
        Prelude.hi
        Prelude.hi-boot
        /Library/Frameworks/GHC.framework/Versions/612/usr/lib/ghc-6.12.3/base-4.2.0.2/Prelude.dyn_hi
*** 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.