Missing symbols with -fprof-auto-calls
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.)
Trac metadata
Trac field | Value |
---|---|
Version | 7.6.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |