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

Bug 648324

Summary: dev-lang/ghc-8.0.2 : configure: error: Building ghc-pwd failed (gcc without -no-pie support)
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED OBSOLETE    
Severity: normal CC: mgorny, rickrick
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 536984    
Attachments: emerge-info.txt
dev-lang:ghc-8.0.2:20180220-181752.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2

Description Toralf Förster gentoo-dev 2018-02-20 18:25:12 UTC
x86_64-pc-linux-gnu-gcc: error: unrecognized command line option '-no-pie'
`x86_64-pc-linux-gnu-gcc' failed in phase `Linker'. (Exit code: 1)
configure: error: Building ghc-pwd failed

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/ghc-8.0.2/work/ghc-8.0.2/config.log

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0-desktop_libressl_20180219-235058

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-5.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.5
  [2]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby22 (with Rubygems)
  [2]   ruby23 (with Rubygems) *
java-config:
The following VMs are available for generation-2:
*)	IcedTea JDK 3.6.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

emerge -qpv dev-lang/ghc
[nomerge      ] dev-lang/ghc-8.0.2  USE="gmp profile -binary -doc -ghcbootstrap -ghcmakebinary" 
[ebuild  N    ]  app-admin/haskell-updater-1.2.12 
[ebuild  N    ]   dev-lang/ghc-8.0.2  USE="gmp profile -binary -doc -ghcbootstrap -ghcmakebinary"
Comment 1 Toralf Förster gentoo-dev 2018-02-20 18:25:16 UTC
Created attachment 520326 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2018-02-20 18:25:20 UTC
Created attachment 520328 [details]
dev-lang:ghc-8.0.2:20180220-181752.log
Comment 3 Toralf Förster gentoo-dev 2018-02-20 18:25:23 UTC
Created attachment 520330 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2018-02-20 18:25:27 UTC
Created attachment 520332 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2018-02-20 18:25:31 UTC
Created attachment 520334 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2018-02-20 18:25:34 UTC
Created attachment 520336 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2018-02-20 18:25:38 UTC
Created attachment 520338 [details]
temp.tbz2
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2018-02-20 22:03:16 UTC
I think this error is caused by gcc-5.4.0. gcc-6 should be fine. 17.0 profiles do mask <gcc-6.

Is use of gcc-5.4.0 intentional?
Comment 9 Toralf Förster gentoo-dev 2018-02-21 18:07:37 UTC
(In reply to Sergei Trofimovich from comment #8)
for 1 image I reactivated it but plan to do it on a small fraction of images (maybe 10% ?)
Comment 10 Sergei Trofimovich (RETIRED) gentoo-dev 2018-08-27 20:40:52 UTC
*** Bug 664492 has been marked as a duplicate of this bug. ***
Comment 11 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2019-04-03 09:06:32 UTC
Closing as obsolete, presuming GCC-6+ is fine.