
#14931: Segfault compiling files with -fprof-all -------------------------------------+------------------------------------- Reporter: RyanGlScott | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Profiling | Version: 8.4.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: Compile-time | Unknown/Multiple crash or panic | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by RyanGlScott): This bug has an interesting history. On GHC 8.0.2, doing the same thing yielded [https://github.com/llvm-hs/llvm- hs/issues/86#issuecomment-301194192 this error]: {{{ $ /opt/ghc/8.0.2/bin/ghc -c -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi State.hs $ /opt/ghc/8.0.2/bin/ghc -c -O -prof -osuf p_o -hisuf p_hi State.hs -fprof-auto $ /opt/ghc/8.0.2/bin/ghc -c -O -prof -osuf p_o -hisuf p_hi Bug.hs ByteCodeLink.lookupCE During interactive linking, GHCi couldn't find the following symbol: State_zdfMonadStatesStateTzuzdcget_closure This may be due to you not asking GHCi to load extra object files, archives or DLLs needed by your current session. Restart GHCi, specifying the missing library using the -L/path/to/object/dir and -lmissinglibname flags, or simply by naming the relevant files on the GHCi command line. Alternatively, this link failure might indicate a bug in GHCi. If you suspect the latter, please send a bug report to: glasgow-haskell-bugs@haskell.org }}} However, on GHC 8.2.1 and 8.2.2, it appeared to work without issue. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14931#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler