Running GHC 7.10.2 on Ubuntu 18.04 ?

Vanessa McHale vanessa.mchale at iohk.io
Wed Sep 5 14:35:07 UTC 2018


GHC 7.10.3 works fine for me when I use the hvr ppa
https://launchpad.net/~hvr/+archive/ubuntu/ghc


On 09/05/2018 09:23 AM, Ömer Sinan Ağacan wrote:
> 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
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

-- 



*Vanessa McHale*
Functional Compiler Engineer | Chicago, IL

Website: www.iohk.io <http://iohk.io>
Twitter: @vamchale
PGP Key ID: 4209B7B5

Input Output <http://iohk.io>

Twitter <https://twitter.com/InputOutputHK> Github
<https://github.com/input-output-hk> LinkedIn
<https://www.linkedin.com/company/input-output-global>


This e-mail and any file transmitted with it are confidential and
intended solely for the use of the recipient(s) to whom it is addressed.
Dissemination, distribution, and/or copying of the transmission by
anyone other than the intended recipient(s) is prohibited. If you have
received this transmission in error please notify IOHK immediately and
delete it from your system. E-mail transmissions cannot be guaranteed to
be secure or error free. We do not accept liability for any loss,
damage, or error arising from this transmission
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180905/b81b8f8e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/ghc-devs/attachments/20180905/b81b8f8e/attachment.sig>


More information about the ghc-devs mailing list