Running GHC 7.10.2 on Ubuntu 18.04 ?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Running GHC 7.10.2 on Ubuntu 18.04 ?

Ömer Sinan Ağacan
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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Running GHC 7.10.2 on Ubuntu 18.04 ?

Ryan Scott
This is likely caused by an old GHC bug that interacts poorly with newer version of binutils (I can't remember the exact bug, unfortunately).

I personally use hvr's Ubuntu PPA [1] whenever installing GHC on Ubuntu. This PPA backports patches to old versions of GHC to keep them working with newer versions of binutils, and I can confirm that the version of GHC 7.10.2 offered from here works well with Ubuntu 18.04.

Ryan S.
-----

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs
Reply | Threaded
Open this post in threaded view
|

Re: Running GHC 7.10.2 on Ubuntu 18.04 ?

Vanessa McHale
In reply to this post by Ömer Sinan Ağacan

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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

--



Vanessa McHale
Functional Compiler Engineer | Chicago, IL

Website: www.iohk.io
Twitter: @vamchale
PGP Key ID: 4209B7B5

Input
          Output

Twitter Github LinkedIn


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

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

signature.asc (499 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Running GHC 7.10.2 on Ubuntu 18.04 ?

Ömer Sinan Ağacan
Thanks, that worked!

Ömer

Vanessa McHale <[hidden email]>, 5 Eyl 2018 Çar, 17:35 tarihinde şunu yazdı:

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
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

--



Vanessa McHale
Functional Compiler Engineer | Chicago, IL

Website: www.iohk.io
Twitter: @vamchale
PGP Key ID: 4209B7B5

Input
          Output

Twitter Github LinkedIn


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
_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

_______________________________________________
ghc-devs mailing list
[hidden email]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs