Running GHC 7.10.2 on Ubuntu 18.04 ?
Ömer Sinan Ağacan
omeragacan at gmail.com
Wed Sep 5 14:23:22 UTC 2018
Hi,
I'm trying to use GHC 7.10.2 (the Debian 8 bindist from haskell.org) on Ubuntu
18.04. It's currently failing with linker errors when I compile `main = return
()`:
/usr/bin/x86_64-linux-gnu-ld:
/home/omer/ghc_bins/ghc-7.10.3-bin/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/libHSbase-4.8.2.0-HQfYBxpPvuw8OunzQu6JGM.a(Base__5.o):
relocation R_X86_64_32S against `.text' can not be used when making a
PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld:
/home/omer/ghc_bins/ghc-7.10.3-bin/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/libHSbase-4.8.2.0-HQfYBxpPvuw8OunzQu6JGM.a(Base__125.o):
relocation R_X86_64_32S against `.text' can not be used when making a
PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld:
/home/omer/ghc_bins/ghc-7.10.3-bin/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/libHSbase-4.8.2.0-HQfYBxpPvuw8OunzQu6JGM.a(Signal__13.o):
relocation R_X86_64_32S against `.text' can not be used when making a
PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld:
/home/omer/ghc_bins/ghc-7.10.3-bin/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/libHSbase-4.8.2.0-HQfYBxpPvuw8OunzQu6JGM.a(Sync__199.o):
relocation R_X86_64_32S against `.text' can not be used when making a
PIE object; recompile with -fPIC
/usr/bin/x86_64-linux-gnu-ld:
/home/omer/ghc_bins/ghc-7.10.3-bin/lib/ghc-7.10.3/base_HQfYBxpPvuw8OunzQu6JGM/libHSbase-4.8.2.0-HQfYBxpPvuw8OunzQu6JGM.a(Exception__170.o):
relocation R_X86_64_32S against symbol `stg_bh_upd_frame_info' can not
be used when making a PIE object; recompile with -fPIC
I'm getting about 700 of these. Does anyone know a way to make GHC 7.10.2 work
on Ubuntu 18.04? Not sure if related but the ld version is
~ $ /usr/bin/x86_64-linux-gnu-ld --version
GNU ld (GNU Binutils for Ubuntu) 2.30
Copyright (C) 2018 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a
later version.
This program has absolutely no warranty.
Thanks,
Ömer
More information about the ghc-devs
mailing list