Problem with cabal's --enable-library-coverage on 7.8.1rc2
Carter Schonwald
carter.schonwald at gmail.com
Fri Mar 7 19:58:55 UTC 2014
No. Try real GCC. Follow my linked directions. Xcode GCC is fake. It's
clang. Follow my directions please.
On Friday, March 7, 2014, Federico Mastellone <fmaste at gmail.com> wrote:
> It’s the same error with and without the clang-xcode5-wrapper that is
> named as an alternative solution
>
> On Mar 7, 2014, at 13:10, Carter Schonwald <carter.schonwald at gmail.com>
> wrote:
>
> try using real GCC
>
> i have these directions https://gist.github.com/cartazio/7131371
>
>
> On Fri, Mar 7, 2014 at 10:47 AM, Federico Mastellone <fmaste at gmail.com>wrote:
>
> Hi,
>
> On Mac OS X 10.9.2 with ghc 7.8.0.20140228 and cabal 1.18.0.3
>
> Doing:
> cabal configure --enable-library-coverage
> cabal build
>
> Fails with:
>
> ld: illegal text reloc in
> '_enablezmlibraryzmcoveragezm0zi0zi1_Library_sendMsg2_info' to
> '__hpc_tickboxes_enablezmlibraryzmcoveragezm0zi0zi1_Util_hpc' for
> architecture x86_64
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
>
> But without the coverage flag it’s OK.
>
> 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:
> https://github.com/fmaste/ghc-7.8.0.20140228-enable-library-coverage
>
> Don’t know if this is a cabal or ghc problem and I don’t know how to
> continue.
>
> Thanks!
>
> My ghc —info:
> [("Project name","The Glorious Glasgow Haskell Compilation System")
> ,("GCC extra via C opts"," -fwrapv")
> ,("C compiler command","/usr/bin/gcc")
> ,("C compiler flags"," -m64 -fno-stack-protector")
> ,("C compiler link flags"," -m64")
> ,("ld command","/usr/bin/ld")
> ,("ld flags"," -arch x86_64")
> ,("ld supports compact unwind","YES")
> ,("ld supports build-id","NO")
> ,("ld supports filelist","YES")
> ,("ld is GNU ld","NO")
> ,("ar command","/usr/bin/ar")
> ,("ar flags","clqs")
> ,("ar supports at file","NO")
> ,("touch command","touch")
> ,("dllwrap command","/bin/false")
> ,("windres command","/bin/false")
> ,("libtool command","libtool")
> ,("perl command","/usr/bin/perl")
> ,("target os","OSDarwin")
> ,("target arch","ArchX86_64")
> ,("target word size","8")
> ,("target has GNU nonexec stack","False")
> ,("target has .ident directive","True")
> ,("target has subsections via symbols","True")
> ,("Unregisterised","NO")
> ,("LLVM llc command","llc")
> ,("LLVM opt command","opt")
> ,("Project version","7.8.0.20140228")
> ,("Booter version","7.6.3")
> ,("Stage","2")
> ,("Build platform","x86_64-apple-darwin")
> ,("Host platform","x86_64-apple-darwin")
> ,("Target platform","x86_64-apple-darwin")
> ,("Have interpreter","YES")
> ,("Object splitting supported","YES")
> ,("Have native code generator","YES")
> ,("Support SMP","YES")
> ,("Tables next to code","YES")
> ,("RTS ways","l debug thr thr_debug thr_l thr_p dyn debug_dyn
> thr_dyn thr_debug_dyn l_dyn thr_l_dyn")
> ,("Support dynamic-too","YES")
> ,("Support parallel --make",
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20140307/90a0816a/attachment.html>
More information about the Glasgow-haskell-users
mailing list