<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix"><br>
hi,<br>
<br>
ghc is working for me ; only stack is causing troubles.<br>
<br>
i tried the latest upstream stack version with the same problem.<br>
<br>
luckily someone pointed me to this thread :
<a class="moz-txt-link-freetext" href="https://github.com/commercialhaskell/stack/issues/2712">https://github.com/commercialhaskell/stack/issues/2712</a><br>
<br>
using this hint made everything work :<br>
<br>
"""<br>
<div class="comment-body markdown-body markdown-format
js-comment-body">
<p>It builds in my case<br>
Just adapt the ghc version which has the error (ghc-8.0.01
above or ghc-7.10 in my case:<br>
~/.stack/programs/x86_64-linux/ghc-7.10.3/lib/ghc-7.10.3/settings )</p>
<p>cp settings settings.bak</p>
<p>And change the options as <a
href="https://github.com/senorhesles" class="user-mention">@senorhesles</a>
mentionned previously:<br>
("C compiler flags", "-fno-PIE -fno-stack-protector"),<br>
("C compiler link flags", "-no-pie"),<br>
("ld flags", "-no-pie"),</p>
<p>It builds, yes, but I wonder the effects of adding such
options (-no-pie) in long term use.<br>
Ok for the hack but how long should we maintain it (mv
settings.bak settings) ?</p>
</div>
"""<br>
<br>
i'm not too sure about upgrading to unstable.<br>
<br>
thanks for the suggestion though<br>
<br>
Fred<br>
<br>
Le 17/11/2016 à 16:36, Ilias Tsitsimpis a écrit :<br>
</div>
<blockquote cite="mid:20161117153639.qvunpqlslz5qppc5@gmail.com"
type="cite">
<pre wrap="">Hi Frederic,
On Thu, Nov 17, 2016 at 01:35PM, frederic wagner wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I cannot build anything using stack.
to reproduce :
stack new test simple
cd test
stack build
-> gives following output :
[1 of 1] Compiling Main ( /tmp/stack28309/Setup.hs,
/tmp/stack28309/Setup.o )
Linking /home/wagnerf/.stack/setup-exe-cache/x86_64-linux/tmp-setup-Simple-Cabal-1.24.0.0-ghc-8.0.1
...
/usr/bin/ld: /tmp/stack28309/Setup.o: relocation R_X86_64_32S against symbol
`stg_bh_upd_frame_info' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: /home/wagnerf/.stack/programs/x86_64-linux/ghc-8.0.1/lib/ghc-8.0.1/Cabal-1.24.0.0/libHSCabal-1.24.0.0.a(Simple__87.o):
relocation R_X86_64_32S against `.text' can not be used when making a shared
object; recompile with -fPIC
</pre>
</blockquote>
<pre wrap="">
Thanks for reporting this.
The above works for me with haskell-stack and ghc both from unstable.
The current version of ghc in testing is known to be broken (see #712228):
<a class="moz-txt-link-freetext" href="https://bugs.debian.org/712228">https://bugs.debian.org/712228</a>
Could you give it a try?
Best,
</pre>
</blockquote>
<p><br>
</p>
</body>
</html>