Link fails when trying to generate a profiling executable
Bug generating profiling code:
Link fails when trying to generate a profiling executable. I'm
running on MacOS X. Output and source below. The bug
doesn't occur when all the code is in a single module.
------------------------------------------------------------
ghc --make -prof Tmp2.hs
ghc-5.04.2: chasing modules from: Tmp2.hs
Compiling Tmp ( Tmp.hs, Tmp.o )
Compiling Main ( Tmp2.hs, ./Tmp2.o )
ghc: linking ...
ld: Undefined symbols:
_GHCziHandle_ReadMode_static_info
::::::::::::::
Tmp.hs
::::::::::::::
module Tmp where
import System.IO
name = "Tmp.hs"
main' = do
h <- openFile name ReadMode
inp <- hGetContents h
putStr "Here it is: "
putStr inp
::::::::::::::
Tmp2.hs
::::::::::::::
module Main where
import Tmp
main = main'
Trac metadata
Trac field |
Value |
Version |
5.04.2 |
Type |
Bug |
TypeOfFailure |
OtherFailure |
Priority |
normal |
Resolution |
ResolvedFixed |
Component |
Profiling |
Test case |
|
Differential revisions |
|
BlockedBy |
|
Related |
|
Blocking |
|
CC |
|
Operating system |
|
Architecture |
|