Bug#844598: [haskell-stack] relocations errors on compiling

frederic wagner frederic.wagner at imag.fr
Thu Nov 17 12:35:06 UTC 2016


Package: haskell-stack
Version: 1.1.2-1
Severity: important

--- Please enter the report below this line. ---

I cannot build anything using stack.

to reproduce :

  stack new test simple
  cd test
  stack build

-> gives following output :
[1 of 1] Compiling Main             ( /tmp/stack28309/Setup.hs, 
/tmp/stack28309/Setup.o )
Linking 
/home/wagnerf/.stack/setup-exe-cache/x86_64-linux/tmp-setup-Simple-Cabal-1.24.0.0-ghc-8.0.1 
...
/usr/bin/ld: /tmp/stack28309/Setup.o: relocation R_X86_64_32S against 
symbol `stg_bh_upd_frame_info' can not be used when making a shared 
object; recompile with -fPIC
/usr/bin/ld: 
/home/wagnerf/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/Cabal-1.24.0.0/libHSCabal-1.24.0.0.a(Simple__87.o): 
relocation R_X86_64_32S against `.text' can not be used when making a 
shared object; recompile with -fPIC
...
...
/usr/bin/ld: 
/home/wagnerf/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/rts/libHSrts.a(Evac.o): 
relocation R_X86_64_32S against symbol `stg_WHITEHOLE_info' can not be 
used when making a shared object; recompile with -fPIC
/usr/bin/ld: 
/home/wagnerf/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/rts/libHSrts.a(Arena.o): 
relocation R_X86_64_32 against `.rodata.str1.1' can not be used when 
making a shared object; recompile with -fPIC
/usr/bin/ld: 
/home/wagnerf/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/rts/libCffi.a(closures.o): 
relocation R_X86_64_32 against `.rodata' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: 
/home/wagnerf/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/rts/libCffi.a(ffi64.o): 
relocation R_X86_64_32S against `.rodata' can not be used when making a 
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
Exit code ExitFailure 1 while running 
["ghc","-clear-package-db","-global-package-db","-hide-all-packages","-package","base","-package","Cabal-1.24.0.0","/tmp/stack28309/Setup.hs","-o","/home/wagnerf/.stack/setup-exe-cache/x86_64-linux/tmp-setup-Simple-Cabal-1.24.0.0-ghc-8.0.1","-rtsopts"] 
in /tmp/stack28309/




--- System information. ---
Architecture:
Kernel: Linux 4.8.0-1-amd64

Debian Release: stretch/sid
500 testing ftp.fr.debian.org

--- Package information. ---
Depends (Version) | Installed
=============================-+-=============
libc6 (>= 2.14) | 2.24-5
libffi6 (>= 3.0.4) | 3.2.1-6
libgmp10 | 2:6.1.1+dfsg-1
libsqlite3-0 (>= 3.6.0) | 3.15.1-1
libyaml-0-2 | 0.1.7-2
zlib1g (>= 1:1.1.4) | 1:1.2.8.dfsg-2+b3
make | 4.1-9
libgmp-dev | 2:6.1.1+dfsg-1
gcc | 4:6.1.1-1
xz-utils | 5.2.2-1.2


Package's Recommends field is empty.

Package's Suggests field is empty.



More information about the Pkg-haskell-maintainers mailing list