Linker failure: multiple definition of
Linker fails on a normal project built with cabal (-O1), both on my home machine (GNU gold (GNU Binutils for Ubuntu 2.22) 1.11) and on travis with GHC 8.0.1:
and with head:
It compiles fine with -O0 (but if fails with -O2):
with older GHCs:
and after the symbol the linker complains about is removed:
As seen on travis, the way to reproduce it is just cabal install of
which also shows the offending line.
I took the liberty of adding it to 8.0.2 milestone, because if it affects all x86_64 machines, it's pretty serious. Please feel free to downgrade.
If the bug is confirmed, I can attempt creating a small reproducing case, but it would require gtk, so it would compile forever anyway.