Created attachment 381998 [details] emerge --info Specifically, I am working with dev-lang/ghc-7.6.3-r1, but it is unlikely that it is specific to this version. I've been talking to slyfox on #gentoo-haskell about this, and it appears the issue has to do with cp -p not copying xattrs.
Created attachment 382000 [details] build.log Note: I've built it from the gentoo-haskell overlay, but the version in the portage tree is identical.
Pushed to overlay only: https://github.com/gentoo-haskell/gentoo-haskell/commit/9988cd5085c3de84aa06098f5dba65df75d39e11 Please, try if that patch helps you. #gentoo-hardened folks say portage's install should preserve that marking.
Wrong link. This one is better: https://github.com/gentoo-haskell/gentoo-haskell/commit/02e2f0f2e17dd965e1aeb2a998061ece2fc896c4
Pushed fix to the main tree as: > 01 Aug 2014; Sergei Trofimovich <slyfox@gentoo.org> > +files/ghc-7.6.3-preserve-inplace-xattr.patch, ghc-7.6.3-r1.ebuild, > ghc-7.8.3.ebuild: > Fix hardened installation in PAX_MARKINGS=XT mode (bug #518734). Proposed patch upstream as: https://phabricator.haskell.org/D108 Thanks!