Hi all,

I ran into linking problems trying to compile with profiling enabled 
(-prof) using ghc 5.03.20020208 on Win32.

I suspect I just need to include some extra library, but I couldn't find 
any mention of which library in the documentation, and trolling through 
the .a and .o files in the installation directory didn't turn up anything.

I'd be grateful for any suggestions.

Thanks!

        -antony

> $ cat World.hs
> module Main(main) where
> 
> main :: IO ()
> main = putStrLn "hello, world!"
> 
> antony@AIRSTREAM ~/src/haskell
> $ ghc -prof -auto-all -o World World.hs
> c:/ghc/ghc-5.03.20020208/libHSrts_p.a(Profiling.p_o)(.text+0x50d):Profiling.c: u
> ndefined reference to `time_str'
> c:/ghc/ghc-5.03.20020208/libHSrts_p.a(Profiling.p_o)(.text+0xf9b):Profiling.c: u
> ndefined reference to `time_str'
> c:/ghc/ghc-5.03.20020208/libHSrts_p.a(ProfHeap.p_o)(.text+0x6ea):ProfHeap.c: und
> efined reference to `time_str'
> c:/ghc/ghc-5.03.20020208/libHSrts_p.a(ProfHeap.p_o)(.text+0x990):ProfHeap.c: und
> efined reference to `snprintf'
> c:/ghc/ghc-5.03.20020208/libHSrts_p.a(Storage.p_o): In function `memInventory':
> //c/fptools/stage2/ghc/rts/Storage.c:797: undefined reference to `countFreeList'
> 
> c:/ghc/ghc-5.03.20020208/libHSrts_p.a(Storage.p_o): In function `checkSanity':
> //c/fptools/stage2/ghc/rts/Storage.c:827: undefined reference to `checkHeap'
> //c/fptools/stage2/ghc/rts/Storage.c:828: undefined reference to `checkChain'
> //c/fptools/stage2/ghc/rts/Storage.c:838: undefined reference to `checkHeap'
> //c/fptools/stage2/ghc/rts/Storage.c:839: undefined reference to `checkChain'
> //c/fptools/stage2/ghc/rts/Storage.c:841: undefined reference to `checkMutableLi
> st'
> //c/fptools/stage2/ghc/rts/Storage.c:842: undefined reference to `checkMutOnceLi
> st'
> //c/fptools/stage2/ghc/rts/Storage.c:846: undefined reference to `checkFreeListS
> anity'
> 
> antony@AIRSTREAM ~/src/haskell
> $



-- 
Antony Courtney
Grad. Student, Dept. of Computer Science, Yale University
[EMAIL PROTECTED]          http://www.apocalypse.org/pub/u/antony

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to