relocation R_X86_64_32 (Was: GHC HQ on Launchpad)

Simon Marlow marlowsd at
Fri Apr 11 09:28:45 UTC 2014

On 08/04/2014 09:58, Joachim Breitner wrote:
> Hi,
> Am Dienstag, den 08.04.2014, 10:31 +0200 schrieb Herbert Valerio Riedel:
>> Just a reminder, as not everybody may be aware yet:
>> There's already daily GHC HEAD packages for Debian at
> thanks for the reminder. I guess I need to set up something that
> notifies me of failures...
> Since March 27 weeks, it seems, it is failing:
> [..]
> configure: Building in-tree ghc-pwd
> /usr/bin/ld: utils/ghc-pwd/dist-boot/Main.o: relocation R_X86_64_32 against `stg_CHARLIKE_closure' can not be used when making a shared object; recompile with -fPIC
> utils/ghc-pwd/dist-boot/Main.o: could not read symbols: Bad value
> collect2: error: ld returned 1 exit status
> configure: error: Building ghc-pwd failed
> make: *** [configure-stamp] Error 1
> dpkg-buildpackage: error: debian/rules build gave error exit status 2
> Any ideas? I’m not an expert on linker issues.

What LDFLAGS are being passed to the configure script?

This change I made recently forwards LDFLAGS to GHC when building ghc-pwd:


More information about the ghc-devs mailing list