[GHC] #8798: Missing symbols with -fprof-auto-calls

GHC ghc-devs at haskell.org
Tue Feb 18 16:12:22 UTC 2014


#8798: Missing symbols with -fprof-auto-calls
------------------------------------+-------------------------------------
       Reporter:  edsko             |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Compiler          |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 To reproduce: in an empty environment (no packages installed), run

 {{{
 cabal install --only-dependencies --enable-library-profiling --ghc-option
 =-fprof-auto-calls
 }}}

 for the attached test case. This will seem to work okay (no errors), but
 if you then do

 {{{
 cabal configure --enable-executable-profiling --enable-library-profiling
 --ghc-option=-fprof-auto-calls
 }}}

 then

 {{{
 cabal build
 }}}

 will fail with

 {{{
 Building autocallsbug-0.1.0.0...
 Preprocessing executable 'autocallsbug' for autocallsbug-0.1.0.0...
 [1 of 1] Compiling Main             ( Main.hs, dist/build/autocallsbug
 /autocallsbug-tmp/Main.p_o )
 Linking dist/build/autocallsbug/autocallsbug ...
 Undefined symbols for architecture x86_64:
 "_attoparseczm0zi11zi1zi0_DataziAttoparsecziInternalziTypes_manyzimanyzuv_Cb_cc",
 referenced from:
       _sR1Q_info in libHSxml-conduit-1.1.0.9_p.a(Parse.p_o)
       _sR5p_info in libHSxml-conduit-1.1.0.9_p.a(Parse.p_o)
 ld: symbol(s) not found for architecture x86_64
 collect2: ld returned 1 exit status
 }}}

 (Haven't yet confirmed with 7.8RC1 because that failed to build on my
 system; reported separately.)

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


More information about the ghc-tickets mailing list