{"action":"created","issue":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/3472","repository_url":"https://api.github.com/repos/commercialhaskell/stack","labels_url":"https://api.github.com/repos/commercialhaskell/stack/issues/3472/labels{/name}","comments_url":"https://api.github.com/repos/commercialhaskell/stack/issues/3472/comments","events_url":"https://api.github.com/repos/commercialhaskell/stack/issues/3472/events","html_url":"https://github.com/commercialhaskell/stack/issues/3472","id":262647204,"number":3472,"title":"undefined reference to symbol 'pthread_setname_np@@GLIBC_2.12' while setting ghc for stack","user":{"login":"rajcspsg","id":10123965,"avatar_url":"https://avatars2.githubusercontent.com/u/10123965?v=4","gravatar_id":"","url":"https://api.github.com/users/rajcspsg","html_url":"https://github.com/rajcspsg","followers_url":"https://api.github.com/users/rajcspsg/followers","following_url":"https://api.github.com/users/rajcspsg/following{/other_user}","gists_url":"https://api.github.com/users/rajcspsg/gists{/gist_id}","starred_url":"https://api.github.com/users/rajcspsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajcspsg/subscriptions","organizations_url":"https://api.github.com/users/rajcspsg/orgs","repos_url":"https://api.github.com/users/rajcspsg/repos","events_url":"https://api.github.com/users/rajcspsg/events{/privacy}","received_events_url":"https://api.github.com/users/rajcspsg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8","html_url":"https://github.com/commercialhaskell/stack/milestone/8","labels_url":"https://api.github.com/repos/commercialhaskell/stack/milestones/8/labels","id":1208081,"number":8,"title":"Support","description":"Issues without clear work items for the codebase","creator":{"login":"snoyberg","id":49415,"avatar_url":"https://avatars3.githubusercontent.com/u/49415?v=4","gravatar_id":"","url":"https://api.github.com/users/snoyberg","html_url":"https://github.com/snoyberg","followers_url":"https://api.github.com/users/snoyberg/followers","following_url":"https://api.github.com/users/snoyberg/following{/other_user}","gists_url":"https://api.github.com/users/snoyberg/gists{/gist_id}","starred_url":"https://api.github.com/users/snoyberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snoyberg/subscriptions","organizations_url":"https://api.github.com/users/snoyberg/orgs","repos_url":"https://api.github.com/users/snoyberg/repos","events_url":"https://api.github.com/users/snoyberg/events{/privacy}","received_events_url":"https://api.github.com/users/snoyberg/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":337,"state":"open","created_at":"2015-07-14T20:38:48Z","updated_at":"2018-02-02T11:13:24Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-10-04T02:26:27Z","updated_at":"2018-02-04T21:37:31Z","closed_at":null,"author_association":"NONE","body":"### General summary/comments (optional)\r\nOperating System - OpenSuse 42.3 Leap\r\n\r\n### Steps to reproduce\r\n\r\nFor example:\r\n\r\n1. Install stack using `curl -sSL https://get.haskellstack.org/ | sh` as mentioned in https://docs.haskellstack.org/en/stable/README/.\r\n2. update ` ~/.stack/global-project/stack.yaml` file with key value `resolver: ghc-8.2.1` .\r\n3. run `stack setup`.\r\n4. you will encounter some missing libraries. Install those libraries (For example glibc etc).\r\n5. After installing any missing libraries run `stack setup`.\r\n6. You will get error `undefined reference to symbol 'pthread_setname_np@@GLIBC_2.12' /lib64/libpthread.so.0`\r\n\r\n\r\n### Expected\r\n\r\n`stack setup` should go through without any error.\r\n\r\n### Actual\r\n\r\nGetting below error\r\n\r\n```\r\nstack setup\r\n  The GHC located at /home/rajkumar/.stack/programs/x86_64-linux/ghc-8.2.1/bin/ghc failed to compile a sanity check. Please see:\r\n\r\n  http://docs.haskellstack.org/en/stable/install_and_upgrade/\r\n\r\n  for more information. Exception was:\r\n  Running /home/rajkumar/.stack/programs/x86_64-linux/ghc-8.2.1/bin/ghc /tmp/stack-sanity-check3048/Main.hs -no-user-package-db in directory /tmp/stack-sanity-check3048/ exited with ExitFailure 1\r\n\r\n  [1 of 1] Compiling Main             ( /tmp/stack-sanity-check3048/Main.hs, /tmp/stack-sanity-check3048/Main.o )\r\n  Linking /tmp/stack-sanity-check3048/Main ...\r\n\r\n /usr/bin/ld.bfd: /home/rajkumar/.stack/programs/x86_64-linux/ghc-8.2.1/lib64/ghc-8.2.1/rts/libHSrts.a(OSThreads.o): undefined reference to symbol 'pthread_setname_np@@GLIBC_2.12'\r\n /lib64/libpthread.so.0: error adding symbols: DSO missing from command line\r\n collect2: error: ld returned 1 exit status\r\n`gcc' failed in phase `Linker'. (Exit code: 1)\r\n```\r\n\r\n### Stack version\r\n\r\n```\r\nstack --version\r\nVersion 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e (4861 commits) x86_64 hpack-0.17.1\r\n```\r\n\r\n### Method of installation\r\n\r\nInstall stack using `curl -sSL https://get.haskellstack.org/ | sh` as mentioned in https://docs.haskellstack.org/en/stable/README/.\r\n\r\nI have asked question regarding this on stackoverflow. Here is the [link](https://stackoverflow.com/questions/46519307/undefined-reference-to-symbol-pthread-setname-npglibc-2-12-haskell-stack-err).\r\n\r\nPlease let me know if you need more details.\r\n"},"comment":{"url":"https://api.github.com/repos/commercialhaskell/stack/issues/comments/362941983","html_url":"https://github.com/commercialhaskell/stack/issues/3472#issuecomment-362941983","issue_url":"https://api.github.com/repos/commercialhaskell/stack/issues/3472","id":362941983,"user":{"login":"rajcspsg","id":10123965,"avatar_url":"https://avatars2.githubusercontent.com/u/10123965?v=4","gravatar_id":"","url":"https://api.github.com/users/rajcspsg","html_url":"https://github.com/rajcspsg","followers_url":"https://api.github.com/users/rajcspsg/followers","following_url":"https://api.github.com/users/rajcspsg/following{/other_user}","gists_url":"https://api.github.com/users/rajcspsg/gists{/gist_id}","starred_url":"https://api.github.com/users/rajcspsg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rajcspsg/subscriptions","organizations_url":"https://api.github.com/users/rajcspsg/orgs","repos_url":"https://api.github.com/users/rajcspsg/repos","events_url":"https://api.github.com/users/rajcspsg/events{/privacy}","received_events_url":"https://api.github.com/users/rajcspsg/received_events","type":"User","site_admin":false},"created_at":"2018-02-04T21:37:31Z","updated_at":"2018-02-04T21:37:31Z","author_association":"NONE","body":"@mgsloan . Looks like this issue is fixed. Now I'm able to stack set up in OpenSuse Tumbleweed 42.3.\r\nStack version 1.6.1.\r\nI think this issue can be closed now."}}
{"actor":{"display_login":"rajcspsg"}}