Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 647866

Summary: dev-haskell/semigroups-0.18.2: error: unrecognized command line option ‘-nopie’; did you mean ‘-no-pie’
Product: Gentoo Linux Reporter: kballou <kballou>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED INVALID    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info

Description kballou 2018-02-16 16:25:07 UTC
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.
Comment 1 kballou 2018-02-16 16:25:43 UTC
Created attachment 519718 [details]
emerge --info
Comment 2 kballou 2018-02-19 18:50:11 UTC
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.
Comment 3 Philippe Chaintreuil 2018-08-30 15:55:22 UTC
Thanks @kballou, I had the same issue with dev-haskell/base-compat-0.9.1, reinstalling ghc fixed it.