<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Levent,<div class=""><br class=""></div><div class="">For a quick fix, you may want to create a wrapper script which uses LD_PRELOAD to inject `set_threadname_np` to your runtime. An example is given in this blog page:</div><div class=""><br class=""></div><div class=""><a href="http://hackerboss.com/overriding-system-functions-for-fun-and-profit/" class="">http://hackerboss.com/overriding-system-functions-for-fun-and-profit/</a></div><div class=""><br class=""></div><div class="">-aycan</div><div class=""> <br class=""><div><blockquote type="cite" class=""><div class="">On 30 Aug 2015, at 03:02, Levent Erkok <<a href="mailto:erkokl@gmail.com" class="">erkokl@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">I really like the idea of nix. Alas, generating native binaries that can run on SuSE without being in the nix environment is a requirement that's hard to let go. (Everyone in my group would have to start using nix, a tall order.)</div><div class=""><br class=""></div><div class="">Thanks for the advice however, it can indeed come handy for one-off trials if needed. In the meantime, I'm still looking for a binary-linux-distro that doesn't require the set_threadname_np functionality, if anyone can point me in that direction.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class=""><br class=""></div><div class="">-Levent.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Sat, Aug 29, 2015 at 3:23 PM, Kosyrev Serge <span dir="ltr" class=""><<a href="mailto:_deepfire@feelingofgreen.ru" target="_blank" class="">_deepfire@feelingofgreen.ru</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">Levent Erkok <<a href="mailto:erkokl@gmail.com" class="">erkokl@gmail.com</a>> writes:<br class="">
> Hello all,<br class="">
><br class="">
> I've been having a lot of trouble installing the binary-distro's on a<br class="">
> SuSE machine. Unfortunately, I don't have root privileges and thus my<br class="">
> options are rather limited.<br class="">
><br class="">
> The problem seem to boil down to the use of the function<br class="">
> pthread_setname_np. It appears the problem was noted before, and Simon<br class="">
> Marlow added a corresponding configure check for platforms that do not<br class="">
> have this function. See here:<br class="">
> <a href="https://mail.haskell.org/pipermail/ghc-devs/2014-October/006707.html" rel="noreferrer" target="_blank" class="">https://mail.haskell.org/pipermail/ghc-devs/2014-October/006707.html</a><br class="">
><br class="">
> Alas, none of the binary distributions listed on<br class="">
> <a href="https://www.haskell.org/ghc/download_ghc_7_10_2#binaries" rel="noreferrer" target="_blank" class="">https://www.haskell.org/ghc/download_ghc_7_10_2#binaries</a> seem to be<br class="">
> built against a system that does not have this function. So, I was<br class="">
> unable to install 7.10.2 successfully.<br class="">
><br class="">
> Essentially, I'm looking for a binary distro on SuSE, or with a libc<br class="">
> that doesn't have the GNU extensions such as pthread_setname_np; if<br class="">
> anyone would be kind enough to put out such a binary distro, that'd<br class="">
> really be appreciated.<br class="">
><br class="">
> (Yes, I tried building from the source; but in the corporate<br class="">
> environment with so many things controlled, that did not go very far.)<br class="">
<br class="">
</span>You could try the Nix route, which, conceptually, would boil down to:<br class="">
<br class="">
1. Installing the Nix package manager into your $HOME on the SuSE system<br class="">
2. Use Nix to install GHC<br class="">
<br class="">
Which expands to:<br class="">
<br class="">
1. Following the instructions at:<br class="">
<br class="">
<a href="https://nixos.org/wiki/How_to_install_nix_in_home_%28on_another_distribution%29#PRoot_Installation" rel="noreferrer" target="_blank" class="">https://nixos.org/wiki/How_to_install_nix_in_home_%28on_another_distribution%29#PRoot_Installation</a><br class="">
<br class="">
2. Invoking:<br class="">
<br class="">
nix-env -iA haskellPackages.ghc<br class="">
<br class="">
This would require only HTTP access, which, I presume, should be<br class="">
available within the corporate environment.<br class="">
<br class="">
All the packages from Hackage can be had precompiled from Nixpkgs,<br class="">
but that's slightly more involved and requires some reading:<br class="">
<br class="">
<a href="http://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure" rel="noreferrer" target="_blank" class="">http://nixos.org/nixpkgs/manual/#users-guide-to-the-haskell-infrastructure</a><br class="">
<br class="">
Should you meet trouble, you can always seek help either at<br class="">
<a href="mailto:nix-dev@lists.science.uu.nl" class="">nix-dev@lists.science.uu.nl</a>, or on the #nixos/<a href="http://irc.freenode.net/" rel="noreferrer" target="_blank" class="">irc.freenode.net</a> IRC<br class="">
channel -- both have a vibrant nightlife^W Haskell community.<br class="">
<span class="HOEnZb"><font color="#888888" class=""><br class="">
--<br class="">
с уважениeм / respectfully,<br class="">
Косырев Серёга<br class="">
--<br class="">
“And those who were seen dancing were thought to be insane<br class="">
by those who could not hear the music.”<br class="">
– Friedrich Wilhelm Nietzsche<br class="">
</font></span></blockquote></div><br class=""></div>
_______________________________________________<br class="">ghc-devs mailing list<br class=""><a href="mailto:ghc-devs@haskell.org" class="">ghc-devs@haskell.org</a><br class="">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs<br class=""></div></blockquote></div><br class=""></div></body></html>