Different behavior in ghci 7.8.3 vs 7.10.1?

Dominick Samperi djsamperi at gmail.com
Sat Jun 27 13:07:53 UTC 2015

I've attached the output of ghc --info. Will have to work on
crafting a small example...

On Sat, Jun 27, 2015 at 8:16 AM, Sergei Trofimovich <slyich at gmail.com> wrote:
> On Sat, 27 Jun 2015 07:59:33 -0400
> Dominick Samperi <djsamperi at gmail.com> wrote:
>> To test ghci 7.10.1 I compiled from source and simply placed the
>> resulting bin in my PATH. Perhaps this is not enough?
> Sounds right. What does 'ghc --info' show?
>> On the second suggestion, I tried ldd and found that the undefined
>> symbol is flagged 'B' in the nm output (.bss section).
>> This symbol is defined in the shared library, and the output of ghc
>> -v2 shows that this shared library is
>> linked without problems on startup of ghci. When the Haskell/FFI
>> function is run the symbol is undefined.
> Can you craft a complete small example with a build script that shows the error?
> --
>   Sergei
-------------- next part --------------
 [("Project name","The Glorious Glasgow Haskell Compilation System")
 ,("GCC extra via C opts"," -fwrapv")
 ,("C compiler command","/usr/bin/gcc")
 ,("C compiler flags"," -fno-stack-protector")
 ,("C compiler link flags","")
 ,("Haskell CPP command","/usr/bin/gcc")
 ,("Haskell CPP flags","-E -undef -traditional ")
 ,("ld command","/usr/bin/ld")
 ,("ld flags","")
 ,("ld supports compact unwind","YES")
 ,("ld supports build-id","YES")
 ,("ld supports filelist","NO")
 ,("ld is GNU ld","YES")
 ,("ar command","/usr/bin/ar")
 ,("ar flags","q")
 ,("ar supports at file","YES")
 ,("touch command","touch")
 ,("dllwrap command","/bin/false")
 ,("windres command","/bin/false")
 ,("libtool command","libtool")
 ,("perl command","/usr/bin/perl")
 ,("target os","OSLinux")
 ,("target arch","ArchX86_64")
 ,("target word size","8")
 ,("target has GNU nonexec stack","True")
 ,("target has .ident directive","True")
 ,("target has subsections via symbols","False")
 ,("LLVM llc command","llc")
 ,("LLVM opt command","opt")
 ,("Project version","7.10.1")
 ,("Project Git commit id","ca00def1d7093d6b5b2a937ddfc8a01c152038eb")
 ,("Booter version","7.8.3")
 ,("Build platform","x86_64-unknown-linux")
 ,("Host platform","x86_64-unknown-linux")
 ,("Target platform","x86_64-unknown-linux")
 ,("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","YES")
 ,("Support reexported-modules","YES")
 ,("Support thinning and renaming package flags","YES")
 ,("Uses package keys","YES")
 ,("Dynamic by default","NO")
 ,("GHC Dynamic","YES")
 ,("Leading underscore","NO")
 ,("Debug on","False")
 ,("Global Package DB","/home/dsamperi/bin/ghc-7.10.1/lib/ghc-7.10.1/package.conf.d")

More information about the ghc-devs mailing list