Linker change in GHC 7.8 leads to widespread issues

Yitzchak Gale gale at
Thu Dec 4 12:43:48 UTC 2014

Bryan O'Sullivan wrote:
>> It seems that something somewhere in linker-land
>> changed in GHC 7.8 such that packages that include
>> C components now need to be built with
>> position-independent code on some platforms...
>> I am not sure whether the correct fix is to pepper…
>> packages... with "-fPIC"... or to instead teach Cabal
>> to do this.

Aha! Thanks for this explanation of what I have been
suffering from.

Mikhail Glushenkov wrote:
> I've now fixed this issue in Cabal HEAD and also pushed the fix to
> 1.20 and 1.18 branches. 1.20 and 1.18 point releases should be out
> soon.

Thanks a million for the speedy response to this
serious issue!

I can't wait for the point releases. I'll go with HEAD on one
of the branches for now.


More information about the ghc-devs mailing list