[GHC] #545: GHCi + profiling doesn't work

GHC ghc-devs at haskell.org
Thu Oct 29 13:34:06 UTC 2015


#545: GHCi + profiling doesn't work
-------------------------------------+-------------------------------------
        Reporter:  nilsanders        |                Owner:
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:  8.0.1
       Component:  GHCi              |              Version:  5.0
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------
Changes (by simonmar):

 * status:  closed => new
 * type:  bug => feature request
 * os:   => Unknown/Multiple
 * component:  Compiler => GHCi
 * failure:   => None/Unknown
 * architecture:   => Unknown/Multiple
 * milestone:   => 8.0.1
 * owner:  nobody =>
 * resolution:  Wont Fix =>


Old description:

> {{{
> Main.hs:
>
> module Main where
>
> main = putStrLn "Hi!"
>
> Compile this with profiling turned on:
>
> > ghc -prof -auto-all -o hello --make Main.hs
> ghc-5.00: chasing modules from: Main.hs
> Compiling Main             ( Main.hs, ./Main.o )
> ghc: linking ...
>
> Try to load the file with GHCi:
>
> > ghci Main
>    ___         ___ _
>   / _ \ /\  /\/ __(_)
>  / /_\// /_/ / /  | |      GHC Interactive, version
> 5.00, For Haskell 98.
> / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
> \____/\/ /_/\____/|_|      Type :? for help.
>
> Loading package std ... linking ... done.
> Skipping  Main             ( Main.hs, ./Main.o )
> ghc-5.00: fatal error: do_Elf32_Rel_relocations:
> ./Main.o: unknown symbol `CC_LIST'
>
> }}}

New description:

 {{{
 Main.hs:

 module Main where

 main = putStrLn "Hi!"

 Compile this with profiling turned on:

 > ghc -prof -auto-all -o hello --make Main.hs
 ghc-5.00: chasing modules from: Main.hs
 Compiling Main             ( Main.hs, ./Main.o )
 ghc: linking ...

 Try to load the file with GHCi:

 > ghci Main
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version
 5.00, For Haskell 98.
 / /_\\/ __  / /___| |      http://www.haskell.org/ghc/
 \____/\/ /_/\____/|_|      Type :? for help.

 Loading package std ... linking ... done.
 Skipping  Main             ( Main.hs, ./Main.o )
 ghc-5.00: fatal error: do_Elf32_Rel_relocations:
 ./Main.o: unknown symbol `CC_LIST'

 }}}

--

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/545#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list