Re: low-level profiling

2013-02-18 Thread Simon Marlow
On 15/02/13 20:31, Johan Tibell wrote: On Fri, Feb 15, 2013 at 12:02 PM, Nicolas Frisby nicolas.fri...@gmail.com mailto:nicolas.fri...@gmail.com wrote: Thanks for rallying everyone! I made a bit of a breakthrough while trying to pinpoint where the linker is invoked. Here's the

Re: unprotected use of global variables in base:GHC.IO.Encoding

2013-02-18 Thread Simon Marlow
On 17/02/13 16:41, Nicolas Frisby wrote: I've noticed some suspicious code in base:GHC.IO.Encoding. setLocaleEncoding, setFileSystemEncoding, setForeignEncoding :: TextEncoding - IO () (getLocaleEncoding, setLocaleEncoding) = mkGlobal initLocaleEncoding

Re: Top-level type signatures in TcGblEnv?

2013-02-18 Thread Simon Marlow
On 18/02/13 14:02, Edsko de Vries wrote: Dear Simon, other ghc devs, I hooked into genericHscRecompile to traverse the typechecked source and construct an environment of type [(SrcSpan, Id)] recording all identifiers in the source with their type, definition site, etc. To be precise, I

Re: ticky/cc profiling and heap checks

2013-02-18 Thread Simon Marlow
On 18/02/13 17:38, Nicolas Frisby wrote: Moving all ticky bumps after the heapcheck did prevent the wiggling I noticed. Could you also weigh in on the location of the cost centre profiling entries? The cost centre bumps should definitely be after the heap check too. Cheers, Simon

Re: low-level profiling

2013-02-18 Thread Simon Marlow
On 18/02/13 17:37, Nicolas Frisby wrote: Hmm. build.mk.sample includes STRIP_CMD = : (so do the build.mk http://build.mk files I'm using) Is that symbol for something else or is there a typo somewhere? It looks like the GHC build system uses STRIP_CMD, but the nofib build system uses STRIP.

Re: ticky/cc profiling and heap checks

2013-02-18 Thread Nicolas Frisby
Got it. Will do. On Mon, Feb 18, 2013 at 8:10 PM, Simon Marlow marlo...@gmail.com wrote: On 18/02/13 17:38, Nicolas Frisby wrote: Moving all ticky bumps after the heapcheck did prevent the wiggling I noticed. Could you also weigh in on the location of the cost centre profiling entries?

Dreaded ... has stopped working with LLVM back end on Win64

2013-02-18 Thread Geoffrey Mainland
I'm using the 7.6.2 Win64 port to try to compile HEAD with the quick-llvm BuildFlavour (I'm using LLVM 3.1). This entails setting -optlc-mtriple=x86_64-w64-mingw32 since the LLVM back-end doesn't output the right triple when producing .ll files. Unfortunately I get the dreaded ghc-cabal.exe has

libraries/unix: ghc-cabal: No buildable component found

2013-02-18 Thread Karel Gardas
Hello, I'm trying to build GHC cross-compiler to RTEMS OS, but I'm stuck on getting this error message from ghc-cabal while configuring libraries/unix: ghc-cabal: No buildable component found gmake[1]: *** [libraries/unix/dist-install/package-data.mk] Error 1 I'm not able to find out under

Re: libraries/unix: ghc-cabal: No buildable component found

2013-02-18 Thread Sergei Trofimovich
On Mon, 18 Feb 2013 23:01:38 +0100 Karel Gardas karel.gar...@centrum.cz wrote: Hello, I'm trying to build GHC cross-compiler to RTEMS OS, but I'm stuck on getting this error message from ghc-cabal while configuring libraries/unix: ghc-cabal: No buildable component found gmake[1]: ***