Created attachment 519716 [details] build.log I'm currently unable to compile dev-haskell/semigroups-0.18.2, nor am I able to compile 0.18.4 from the gentoo-haskell overlay. The error appears to be with the use of the `-nopie` option: Linking setup ... x86_64-pc-linux-gnu-gcc: error: unrecognized command line option ‘-nopie’; did you mean ‘-no-pie’? `x86_64-pc-linux-gnu-gcc' failed in phase `C Compiler'. (Exit code: 1) * ERROR: dev-haskell/semigroups-0.18.2::gentoo failed (configure phase): * compiling /var/tmp/portage/dev-haskell/semigroups-0.18.2/work/semigroups-0.18.2/Setup.lhs failed It is possible this is related to https://bugs.gentoo.org/644004.
Created attachment 519718 [details] emerge --info
This turns out to be a user error with a messed up dev-lang/ghc build. Recompiling ghc with the new version of gcc 6.4.0-r1 (pie enabled) resolves the issue.
Thanks @kballou, I had the same issue with dev-haskell/base-compat-0.9.1, reinstalling ghc fixed it.