<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>On Mac OS X 10.9.2 with ghc 7.8.0.20140228 and cabal 1.18.0.3</div><div><br></div><div>Doing:</div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Courier, monospace; line-height: 18px; white-space: pre; background-color: rgb(255, 255, 255);">cabal configure --enable-library-coverage</span></div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Courier, monospace; line-height: 18px; white-space: pre; background-color: rgb(255, 255, 255);">cabal build</span></div><div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Courier, monospace; line-height: 18px; white-space: pre; background-color: rgb(255, 255, 255);"><br></span></div><div>Fails with:</div><div><blockquote type="cite"><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(254, 244, 156); position: static; z-index: auto;">ld: illegal text reloc in '_enablezmlibraryzmcoveragezm0zi0zi1_Library_sendMsg2_info' to '__hpc_tickboxes_enablezmlibraryzmcoveragezm0zi0zi1_Util_hpc' for architecture x86_64</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; background-color: rgb(254, 244, 156); position: static; z-index: auto;">clang: error: linker command failed with exit code 1 (use -v to see invocation)</div></blockquote><br></div><div>But without the coverage flag it’s OK.</div><div><br></div><div>I found it when switching from 7.6.3 to 7.8.1RC2 on a project I have and was able to strip it to this:</div><div><a href="https://github.com/fmaste/ghc-7.8.0.20140228-enable-library-coverage">https://github.com/fmaste/ghc-7.8.0.20140228-enable-library-coverage</a></div><div><br></div><div>Don’t know if this is a cabal or ghc problem and I don’t know how to continue.</div><div><br></div><div>Thanks!</div><div><br></div><div>My ghc —info:</div><div> [("Project name","The Glorious Glasgow Haskell Compilation System")<br> ,("GCC extra via C opts"," -fwrapv")<br> ,("C compiler command","/usr/bin/gcc")<br> ,("C compiler flags"," -m64 -fno-stack-protector")<br> ,("C compiler link flags"," -m64")<br> ,("ld command","/usr/bin/ld")<br> ,("ld flags"," -arch x86_64")<br> ,("ld supports compact unwind","YES")<br> ,("ld supports build-id","NO")<br> ,("ld supports filelist","YES")<br> ,("ld is GNU ld","NO")<br> ,("ar command","/usr/bin/ar")<br> ,("ar flags","clqs")<br> ,("ar supports at file","NO")<br> ,("touch command","touch")<br> ,("dllwrap command","/bin/false")<br> ,("windres command","/bin/false")<br> ,("libtool command","libtool")<br> ,("perl command","/usr/bin/perl")<br> ,("target os","OSDarwin")<br> ,("target arch","ArchX86_64")<br> ,("target word size","8")<br> ,("target has GNU nonexec stack","False")<br> ,("target has .ident directive","True")<br> ,("target has subsections via symbols","True")<br> ,("Unregisterised","NO")<br> ,("LLVM llc command","llc")<br> ,("LLVM opt command","opt")<br> ,("Project version","7.8.0.20140228")<br> ,("Booter version","7.6.3")<br> ,("Stage","2")<br> ,("Build platform","x86_64-apple-darwin")<br> ,("Host platform","x86_64-apple-darwin")<br> ,("Target platform","x86_64-apple-darwin")<br> ,("Have interpreter","YES")<br> ,("Object splitting supported","YES")<br> ,("Have native code generator","YES")<br> ,("Support SMP","YES")<br> ,("Tables next to code","YES")<br> ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn thr_dyn thr_debug_dyn l_dyn thr_l_dyn")<br> ,("Support dynamic-too","YES")<br> ,("Support parallel --make","YES")<br> ,("Dynamic by default","NO")<br> ,("GHC Dynamic","YES")<br> ,("Leading underscore","YES")<br> ,("Debug on","False")<br> ]</div></body></html>