<div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Thanks, that worked!</div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br>Ömer<br><br></div></div><div class="gmail_quote"><div dir="ltr">Vanessa McHale <<a href="mailto:vanessa.mchale@iohk.io">vanessa.mchale@iohk.io</a>>, 5 Eyl 2018 Çar, 17:35 tarihinde şunu yazdı:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <p>GHC 7.10.3 works fine for me when I use the hvr ppa
      <a class="m_-6038157749036942876moz-txt-link-freetext" href="https://launchpad.net/~hvr/+archive/ubuntu/ghc" target="_blank">https://launchpad.net/~hvr/+archive/ubuntu/ghc</a><br>
    </p>
    <br>
    <div class="m_-6038157749036942876moz-cite-prefix">On 09/05/2018 09:23 AM, Ömer Sinan
      Ağacan wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>Hi,

I'm trying to use GHC 7.10.2 (the Debian 8 bindist from <a href="http://haskell.org" target="_blank">haskell.org</a>) 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="m_-6038157749036942876moz-txt-link-abbreviated" href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a>
<a class="m_-6038157749036942876moz-txt-link-freetext" href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a>
</pre>
    </blockquote>
    <br>
    <div class="m_-6038157749036942876moz-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" target="_blank">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" target="_blank"><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" target="_blank"><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" target="_blank"><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" target="_blank"><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>
  </div>

_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div>