Closed

Description
General summary/comments
I have been using stack for a while on this system and everything worked fine, but recently something broke.
Steps to reproduce
I'm running the latest version of stack on Arch Linux (Linux 4.14.8-1-ARCH). The problem occurs when I try to execute any commands that require ghc (for example stack build
or stack ghci
).
Expected
The project to build/ghci to open.
Actual
$ stack build --verbose
Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0
2017-12-27 00:30:13.554735: [debug] Checking for project config at: /media/storage/drive/coding/projects/haider/stack.yaml
@(Stack/Config.hs:842:9)
2017-12-27 00:30:13.554939: [debug] Loading project config file stack.yaml
@(Stack/Config.hs:868:13)
2017-12-27 00:30:13.555907: [debug] Decoding build plan from: /home/gleb/.stack/build-plan/lts-9.5.yaml
@(Stack/Snapshot.hs:150:5)
2017-12-27 00:30:13.555970: [debug] Trying to decode /home/gleb/.stack/build-plan-cache/lts-9.5.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 00:30:13.561408: [debug] Success decoding /home/gleb/.stack/build-plan-cache/lts-9.5.cache
@(Data/Store/VersionTagged.hs:70:13)
2017-12-27 00:30:13.561779: [debug] Run process: /sbin/ldconfig -p
@(System/Process/Log.hs:37:3)
2017-12-27 00:30:13.582767: [debug] Process finished in 20ms: /sbin/ldconfig -p
@(System/Process/Log.hs:44:3)
2017-12-27 00:30:13.583050: [debug] Run process: /usr/bin/gcc -v
@(System/Process/Log.hs:37:3)
2017-12-27 00:30:13.584277: [debug] Process finished in 1ms: /usr/bin/gcc -v
@(System/Process/Log.hs:44:3)
2017-12-27 00:30:13.584347: [debug] PIE disabled
@(Stack/Setup.hs:589:17)
2017-12-27 00:30:13.589657: [debug] Found shared library libtinfo.so.5 in /usr/lib
@(Stack/Setup.hs:578:38)
2017-12-27 00:30:13.589777: [debug] Found shared library libtinfo.so.6 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 00:30:13.589878: [debug] Found shared library libncursesw.so.6 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 00:30:13.589993: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 00:30:13.590158: [debug] Found shared library libgmp.so.3 in /usr/lib
@(Stack/Setup.hs:578:38)
2017-12-27 00:30:13.590244: [debug] Using tinfo6-nopie GHC build
@(Stack/Setup.hs:620:9)
2017-12-27 00:30:13.848443: [info] Preparing to install GHC (tinfo6-nopie) to an isolated location.
@(Stack/Setup.hs:877:5)
2017-12-27 00:30:13.848549: [info] This will not interfere with any system-level installation.
@(Stack/Setup.hs:886:5)
2017-12-27 00:30:13.849010: [debug] Downloading from https://github.com/commercialhaskell/ghc/releases/download/ghc-8.0.2-release/ghc-8.0.2-x86_64-fedora24-linux.tar.xz to /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2.tar.xz ...
@(Stack/Setup.hs:1460:5)
2017-12-27 00:30:13.849089: [debug] Will check against sha1 hash: 926b9ae1448df7894c0c4d5791d5eb5161a9cb52
@(Stack/Setup.hs:1474:13)
Already downloaded.
2017-12-27 00:30:14.079240: [debug] menv = fromList [("APPROOT","https://localhost:3443"),("BROWSER","yandex-browser-beta"),("COLORFGBG","15;0"),("COLORTERM","truecolor"),("DBUS_SESSION_BUS_ADDRESS","unix:path=/run/user/1000/bus"),("DISPLAY",":0"),("EDITOR","vim"),("HOME","/home/gleb"),("INVOCATION_ID","c4de387d09c1476c8ea2bf4c764fde02"),("JOURNAL_STREAM","9:19500"),("KONSOLE_DBUS_SERVICE",":1.6"),("KONSOLE_DBUS_SESSION","/Sessions/1"),("KONSOLE_DBUS_WINDOW","/Windows/1"),("KONSOLE_PROFILE_NAME","Profile 2"),("LANG","en_US.UTF-8"),("LANGUAGE",""),("LOGNAME","gleb"),("MAIL","/var/spool/mail/gleb"),("MOZ_PLUGIN_PATH","/usr/lib/mozilla/plugins"),("OLDPWD","/home/gleb"),("PATH","/usr/lib/hardening-wrapper/bin:/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/.vimpkg/bin:/home/gleb/.vimpkg/bin:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/perl5/perlbrew/etc/bashrc:/home/gleb/.stack/programs/x86_64-linux/ghc-7.10.2/bin:/home/gleb/.local/bin:/home/gleb/.yarn-global/bin:/home/gleb/.yarn-global/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/.vimpkg/bin:/home/gleb/.vimpkg/bin:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/perl5/perlbrew/etc/bashrc:/home/gleb/.stack/programs/x86_64-linux/ghc-7.10.2/bin:/home/gleb/.local/bin:/home/gleb/.yarn-global/bin:/home/gleb/.yarn-global/bin"),("PROFILEHOME",""),("PWD","/media/storage/drive/coding/projects/haider"),("SHELL","/bin/bash"),("SHELL_SESSION_ID","d3cb50b644324da9bf1faec60d351f51"),("SHLVL","3"),("TERM","xterm-256color"),("TERMINAL","konsole"),("USER","gleb"),("WINDOWID","18874374"),("WINDOWPATH","1"),("XAUTHORITY","/home/gleb/.Xauthority"),("XDG_RUNTIME_DIR","/run/user/1000"),("XDG_SEAT","seat0"),("XDG_SESSION_ID","c1"),("XDG_VTNR","1"),("_","/home/gleb/.local/bin/stack"),("drive","/media/storage/drive")]
@(Stack/Setup.hs:1010:5)
2017-12-27 00:30:14.079765: [debug] ziptool: xz
@(Stack/Setup.hs:1028:5)
2017-12-27 00:30:14.079815: [debug] make: make
@(Stack/Setup.hs:1029:5)
2017-12-27 00:30:14.079862: [debug] tar: tar
@(Stack/Setup.hs:1030:5)
2017-12-27 00:30:14.079933: [debug] Unpacking /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2.tar.xz
@(Stack/Setup.hs:1057:5)
2017-12-27 00:30:14.080093: [debug] Run process: /usr/bin/tar Jxf /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2.tar.xz
@(System/Process/Log.hs:37:3)
2017-12-27 00:30:23.868854: [debug] Process finished in 9788ms: /usr/bin/tar Jxf /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2.tar.xz
@(System/Process/Log.hs:44:3)
2017-12-27 00:30:23.869257: [debug] Run process: /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2.temp/ghc-8.0.2/configure --prefix=/home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.0.2/
@(System/Process/Log.hs:37:3)
Configuring GHC ...
$ stack ghci --verbose
Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0
2017-12-27 00:49:45.240240: [debug] Checking for project config at: /home/gleb/stack.yaml
@(Stack/Config.hs:842:9)
2017-12-27 00:49:45.240417: [debug] Checking for project config at: /home/stack.yaml
@(Stack/Config.hs:842:9)
2017-12-27 00:49:45.240473: [debug] Checking for project config at: /stack.yaml
@(Stack/Config.hs:842:9)
2017-12-27 00:49:45.240527: [debug] No project config file found, using defaults.
@(Stack/Config.hs:872:13)
2017-12-27 00:49:45.241184: [debug] Run from outside a project, using implicit global project config
@(Stack/Config.hs:559:13)
2017-12-27 00:49:45.241387: [debug] Using resolver: lts-10.1 from implicit global project's config file: /home/gleb/.stack/global-project/stack.yaml
@(Stack/Config.hs:573:32)
2017-12-27 00:49:45.241453: [debug] Decoding build plan from: /home/gleb/.stack/build-plan/lts-10.1.yaml
@(Stack/Snapshot.hs:150:5)
2017-12-27 00:49:45.241498: [debug] Trying to decode /home/gleb/.stack/build-plan-cache/lts-10.1.cache
@(Data/Store/VersionTagged.hs:66:5)
2017-12-27 00:49:45.246227: [debug] Success decoding /home/gleb/.stack/build-plan-cache/lts-10.1.cache
@(Data/Store/VersionTagged.hs:70:13)
2017-12-27 00:49:45.250000: [debug] Run process: /sbin/ldconfig -p
@(System/Process/Log.hs:37:3)
2017-12-27 00:49:45.251831: [debug] Process finished in 1ms: /sbin/ldconfig -p
@(System/Process/Log.hs:44:3)
2017-12-27 00:49:45.252041: [debug] Run process: /usr/bin/gcc -v
@(System/Process/Log.hs:37:3)
2017-12-27 00:49:45.253264: [debug] Process finished in 1ms: /usr/bin/gcc -v
@(System/Process/Log.hs:44:3)
2017-12-27 00:49:45.253352: [debug] PIE disabled
@(Stack/Setup.hs:589:17)
2017-12-27 00:49:45.257694: [debug] Found shared library libtinfo.so.5 in /usr/lib
@(Stack/Setup.hs:578:38)
2017-12-27 00:49:45.257797: [debug] Found shared library libtinfo.so.6 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 00:49:45.257888: [debug] Found shared library libncursesw.so.6 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 00:49:45.257964: [debug] Found shared library libgmp.so.10 in 'ldconfig -p' output
@(Stack/Setup.hs:565:29)
2017-12-27 00:49:45.258097: [debug] Found shared library libgmp.so.3 in /usr/lib
@(Stack/Setup.hs:578:38)
2017-12-27 00:49:45.258139: [debug] Using tinfo6-nopie GHC build
@(Stack/Setup.hs:620:9)
2017-12-27 00:49:45.485243: [info] Preparing to install GHC (tinfo6-nopie) to an isolated location.
@(Stack/Setup.hs:877:5)
2017-12-27 00:49:45.485348: [info] This will not interfere with any system-level installation.
@(Stack/Setup.hs:886:5)
2017-12-27 00:49:45.485800: [debug] Downloading from https://github.com/commercialhaskell/ghc/releases/download/ghc-8.2.2-release/ghc-8.2.2-x86_64-fedora27-linux.tar.xz to /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.tar.xz ...
@(Stack/Setup.hs:1460:5)
2017-12-27 00:49:45.485854: [debug] Will check against sha1 hash: 955325a4d551b0da3b06d8569dbfc417b8a01af3
@(Stack/Setup.hs:1474:13)
Already downloaded.
2017-12-27 00:49:46.029133: [debug] menv = fromList [("APPROOT","https://localhost:3443"),("BROWSER","yandex-browser-beta"),("COLORFGBG","15;0"),("COLORTERM","truecolor"),("DBUS_SESSION_BUS_ADDRESS","unix:path=/run/user/1000/bus"),("DISPLAY",":0"),("EDITOR","vim"),("HOME","/home/gleb"),("INVOCATION_ID","c4de387d09c1476c8ea2bf4c764fde02"),("JOURNAL_STREAM","9:19500"),("KONSOLE_DBUS_SERVICE",":1.6"),("KONSOLE_DBUS_SESSION","/Sessions/1"),("KONSOLE_DBUS_WINDOW","/Windows/1"),("KONSOLE_PROFILE_NAME","Profile 2"),("LANG","en_US.UTF-8"),("LANGUAGE",""),("LOGNAME","gleb"),("MAIL","/var/spool/mail/gleb"),("MOZ_PLUGIN_PATH","/usr/lib/mozilla/plugins"),("OLDPWD","/media/storage/drive/coding/projects/haider"),("PATH","/usr/lib/hardening-wrapper/bin:/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/.vimpkg/bin:/home/gleb/.vimpkg/bin:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/perl5/perlbrew/etc/bashrc:/home/gleb/.stack/programs/x86_64-linux/ghc-7.10.2/bin:/home/gleb/.local/bin:/home/gleb/.yarn-global/bin:/home/gleb/.yarn-global/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/.vimpkg/bin:/home/gleb/.vimpkg/bin:/home/gleb/.gem/ruby/2.3.0/bin:/home/gleb/perl5/perlbrew/etc/bashrc:/home/gleb/.stack/programs/x86_64-linux/ghc-7.10.2/bin:/home/gleb/.local/bin:/home/gleb/.yarn-global/bin:/home/gleb/.yarn-global/bin"),("PROFILEHOME",""),("PWD","/home/gleb"),("SHELL","/bin/bash"),("SHELL_SESSION_ID","d3cb50b644324da9bf1faec60d351f51"),("SHLVL","3"),("TERM","xterm-256color"),("TERMINAL","konsole"),("USER","gleb"),("WINDOWID","18874374"),("WINDOWPATH","1"),("XAUTHORITY","/home/gleb/.Xauthority"),("XDG_RUNTIME_DIR","/run/user/1000"),("XDG_SEAT","seat0"),("XDG_SESSION_ID","c1"),("XDG_VTNR","1"),("_","/home/gleb/.local/bin/stack"),("drive","/media/storage/drive")]
@(Stack/Setup.hs:1010:5)
2017-12-27 00:49:46.029608: [debug] ziptool: xz
@(Stack/Setup.hs:1028:5)
2017-12-27 00:49:46.029655: [debug] make: make
@(Stack/Setup.hs:1029:5)
2017-12-27 00:49:46.029702: [debug] tar: tar
@(Stack/Setup.hs:1030:5)
2017-12-27 00:49:46.029828: [debug] Unpacking /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.tar.xz
@(Stack/Setup.hs:1057:5)
2017-12-27 00:49:46.029973: [debug] Run process: /usr/bin/tar Jxf /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.tar.xz
@(System/Process/Log.hs:37:3)
2017-12-27 00:49:57.316705: [debug] Process finished in 11286ms: /usr/bin/tar Jxf /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.tar.xz
@(System/Process/Log.hs:44:3)
2017-12-27 00:49:57.316993: [debug] Run process: /home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2.temp/ghc-8.2.2/configure --prefix=/home/gleb/.stack/programs/x86_64-linux/ghc-tinfo6-nopie-8.2.2/
@(System/Process/Log.hs:37:3)
Configuring GHC ...
No matter how long I wait nothing happens after that, it just says "Configuring GHC...". I tried reinstalling stack, reinstalling libraries, installing older versions of ghc and stack.
Also, stack works fine when I'm logged in as root.
And global ghc installation works fine.
Stack version
$ stack --version
Version 1.6.3, Git revision b27e629b8c4ce369e3b8273f04db193b060000db (5454 commits) x86_64 hpack-0.20.0
Method of installation
Arch repositories.
$ sudo pacman -S stack