Bugs item #707763, was opened at 2003-03-21 23:24
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=707763&group_id=8032

Category: Profiling
Group: 5.04.2
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: E Nedervold (nedervold)
>Assigned to: Wolfgang Thaller (wthaller)
Summary: Link fails when trying to generate a profiling executable

Initial Comment:
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'

----------------------------------------------------------------------

>Comment By: Wolfgang Thaller (wthaller)
Date: 2003-03-23 22:00

Message:
Logged In: YES 
user_id=566359

This bug has been fixed for 5.04.3.
On my machine, it _did_ occur when all code was in a single
module, and I would be very surprised if that was different
anywhere else... are you really positively sure?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=707763&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to