Problem with profiling support on ghc 5.03.20020208 on Win32
Antony Courtney
antony at apocalypse.org
Mon Apr 29 22:27:00 EDT 2002
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 at 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 at AIRSTREAM ~/src/haskell
> $
--
Antony Courtney
Grad. Student, Dept. of Computer Science, Yale University
antony at apocalypse.org http://www.apocalypse.org/pub/u/antony
More information about the Glasgow-haskell-bugs
mailing list