<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>GHC 7.10.3 works fine for me when I use the hvr ppa
<a class="moz-txt-link-freetext" href="https://launchpad.net/~hvr/+archive/ubuntu/ghc">https://launchpad.net/~hvr/+archive/ubuntu/ghc</a><br>
</p>
<br>
<div class="moz-cite-prefix">On 09/05/2018 09:23 AM, Ömer Sinan
Ağacan wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAMQQO3n-dcpkNgdVdTem4zvouWv1_+d1t8KntTjswgmthF2DqQ@mail.gmail.com">
<pre wrap="">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
<a class="moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org">ghc-devs@haskell.org</a>
<a class="moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<br>
<br>
<br>
<strong
style="color:#000;font-family:Helvetica,Arial;font-size:116%;">Vanessa
McHale</strong><br>
<span
style="color:#000;font-family:Helvetica,Arial;font-size:100%;"><span
style="color:#f00">Functional Compiler Engineer |</span>
Chicago, IL</span>
<br>
<br>
<span
style="color:#999;font-family:Helvetica,Arial;font-size:85%;">Website:
<a href="http://iohk.io" style="color:#f00;">www.iohk.io</a></span><br>
<span
style="color:#999;font-family:Helvetica,Arial;font-size:85%;">Twitter:
@vamchale</span><br>
<span
style="color:#999;font-family:Helvetica,Arial;font-size:85%;">PGP
Key ID: 4209B7B5</span><br>
<br>
<a href="http://iohk.io"><img
src="https://static.iohk.io/logo/logo-email.png" alt="Input
Output" height="46" width="200"></a>
<br>
<br>
<a href="https://twitter.com/InputOutputHK"><img
src="https://static.iohk.io/images/ic-tw.png" alt="Twitter"
height="16" width="18"></a>
<a href="https://github.com/input-output-hk"><img
src="https://static.iohk.io/images/ic-gh.png" alt="Github"
height="16" width="21"></a>
<a href="https://www.linkedin.com/company/input-output-global"><img
src="https://static.iohk.io/images/ic-li.png" alt="LinkedIn"
height="16" width="19"></a>
<br>
<br>
<br>
<span
style="color:#444;font-family:Helvetica,Arial;font-size:77%;"><small>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</small></span></div>
</body>
</html>