utdemir/ghc-musl

Error encountered while installing GHC

Opened this issue · 2 comments

nnmm commented

I'm on Ubuntu 22.04, with stack installed through curl -sSL https://get.haskellstack.org/ | sh and recently upgraded.

When I add

docker:
  enable: true
  image: utdemir/ghc-musl:v25-ghc944

to my project's stack.yaml, stack build fails with

$ stack build
musl libc (x86_64)
Version 1.2.3
Dynamic Program Loader
Usage: /lib/ld-musl-x86_64.so.1 [options] [--] pathname
Preparing to install GHC
(tinfo6-libc6-pre232) to an isolated
location. This will not interfere with
any system-level installation.
Already downloaded ghc-tinfo6-libc6-pre232-8.2.2.
utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: exec: line 3: utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: not found
make[1]: *** [ghc.mk:991: install_packages] Error 127
make: *** [Makefile:51: install] Error 2
Installing GHC ...

Error: [S-7441]
       Received ExitFailure 2 when running
       Raw command: /usr/bin/make install
       Run from: /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/

       Error encountered while
         installing GHC with
         make install
         run in
         /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/
Details

Version 2.11.1, Git revision c1167a6abc3f4978ccded5ba0246a57387da0e2f x86_64 hpack-0.35.2
2023-06-11 15:58:31.473010: [debug] Checking for project config at: /home/user/myproject/stack.yaml
2023-06-11 15:58:31.473225: [debug] Loading project config file stack.yaml
2023-06-11 15:58:31.478440: [debug] (SQL) SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2023-06-10 13:58:31.47840366 UTC]
2023-06-11 15:58:31.479059: [debug] Run process: /usr/bin/docker --version
2023-06-11 15:58:31.497138: [debug] Process finished in 18ms: /usr/bin/docker --version
2023-06-11 15:58:31.497409: [debug] Run process: /usr/bin/docker inspect utdemir/ghc-musl:v25-ghc944
2023-06-11 15:58:31.516042: [debug] Process finished in 19ms: /usr/bin/docker inspect utdemir/ghc-musl:v25-ghc944
2023-06-11 15:58:31.516478: [debug] (SQL) SELECT "id","image_hash","exe_path","exe_timestamp","compatible" FROM "docker_image_exe_cache" WHERE "image_hash"=? AND "exe_path"=? AND "exe_timestamp"=?; [PersistText "sha256:1b836718892c62ffdd1a21852fb3a20e1cd297bb1f05505d845fbe1d928c4a89",PersistText "/usr/local/bin/stack",PersistUTCTime 2023-06-11 13:51:44.348851623 UTC]
2023-06-11 15:58:31.516855: [debug] Run process within /home/user/myproject/: /usr/bin/docker create -e STACK_IN_CONTAINER=1 -e STACK_ROOT=/home/user/.stack -e STACK_PLATFORM_VARIANT=dk85569e7f830e7dc606115fd702e078fb -e HOME=/home/user/myproject/.stack-work/docker/_home -e PATH=/opt/host/bin:/home/user/myproject/.stack-work/docker/_home/.local/bin:/usr/local/.ghcup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -e PWD=/home/user/myproject -v /home/user:/home/user -v /home/user/.stack:/home/user/.stack -v /home/user/myproject:/home/user/myproject -v /home/user/myproject/.stack-work/docker/_home:/home/user/myproject/.stack-work/docker/_home -w /home/user/myproject --net=host -e USER=user -v /usr/local/bin/stack:/opt/host/bin/stack -i utdemir/ghc-musl:v25-ghc944 /opt/host/bin/stack --internal-re-exec-version=2.11.1 --internal-docker-entrypoint "DockerEntrypoint {deUser = Just (DockerUser {duUid = 1000, duGid = 1000, duGroups = [4,24,27,29,30,46,121,132,133,134,1000], duUmask = 2})}" run --verbose
2023-06-11 15:58:31.583668: [debug] Process finished in 67ms: /usr/bin/docker create -e STACK_IN_CONTAINER=1 -e STACK_ROOT=/home/user/.stack -e STACK_PLATFORM_VARIANT=dk85569e7f830e7dc606115fd702e078fb -e HOME=/home/user/myproject/.stack-work/docker/_home -e PATH=/opt/host/bin:/home/user/myproject/.stack-work/docker/_home/.local/bin:/usr/local/.ghcup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin -e PWD=/home/user/myproject -v /home/user:/home/user -v /home/user/.stack:/home/user/.stack -v /home/user/myproject:/home/user/myproject -v /home/user/myproject/.stack-work/docker/_home:/home/user/myproject/.stack-work/docker/_home -w /home/user/myproject --net=host -e USER=user -v /usr/local/bin/stack:/opt/host/bin/stack -i utdemir/ghc-musl:v25-ghc944 /opt/host/bin/stack --internal-re-exec-version=2.11.1 --internal-docker-entrypoint "DockerEntrypoint {deUser = Just (DockerUser {duUid = 1000, duGid = 1000, duGroups = [4,24,27,29,30,46,121,132,133,134,1000], duUmask = 2})}" run --verbose
2023-06-11 15:58:31.583913: [debug] Run process: /usr/bin/docker start -a -i 9276dbb6f33fcbe398db29b32e57047e513f047c42da0a07c43a9b284f294e92
Version 2.11.1, Git revision c1167a6abc3f4978ccded5ba0246a57387da0e2f x86_64 hpack-0.35.2
2023-06-11 13:58:31.785288: [debug] Checking for project config at: /home/user/myproject/stack.yaml
2023-06-11 13:58:31.785501: [debug] Loading project config file stack.yaml
2023-06-11 13:58:31.790905: [debug] Run process: /usr/sbin/groupadd -o --gid 1000 stack
2023-06-11 13:58:31.809104: [debug] Process finished in 18ms: /usr/sbin/groupadd -o --gid 1000 stack
2023-06-11 13:58:31.809464: [debug] Run process: /usr/sbin/useradd -oN --uid 1000 --gid 1000 --home /home/user/myproject/.stack-work/docker/_home stack
2023-06-11 13:58:31.848427: [debug] Process finished in 39ms: /usr/sbin/useradd -oN --uid 1000 --gid 1000 --home /home/user/myproject/.stack-work/docker/_home stack
2023-06-11 13:58:31.848594: [debug] Run process: /usr/sbin/groupadd -o --gid 4 group4
2023-06-11 13:58:31.864066: [debug] Process finished in 15ms: /usr/sbin/groupadd -o --gid 4 group4
2023-06-11 13:58:31.864223: [debug] Run process: /usr/sbin/groupadd -o --gid 24 group24
2023-06-11 13:58:31.880440: [debug] Process finished in 16ms: /usr/sbin/groupadd -o --gid 24 group24
2023-06-11 13:58:31.880755: [debug] Run process: /usr/sbin/groupadd -o --gid 27 group27
2023-06-11 13:58:31.897807: [debug] Process finished in 17ms: /usr/sbin/groupadd -o --gid 27 group27
2023-06-11 13:58:31.897987: [debug] Run process: /usr/sbin/groupadd -o --gid 29 group29
2023-06-11 13:58:31.913553: [debug] Process finished in 15ms: /usr/sbin/groupadd -o --gid 29 group29
2023-06-11 13:58:31.913715: [debug] Run process: /usr/sbin/groupadd -o --gid 30 group30
2023-06-11 13:58:31.929078: [debug] Process finished in 15ms: /usr/sbin/groupadd -o --gid 30 group30
2023-06-11 13:58:31.929315: [debug] Run process: /usr/sbin/groupadd -o --gid 46 group46
2023-06-11 13:58:31.944984: [debug] Process finished in 16ms: /usr/sbin/groupadd -o --gid 46 group46
2023-06-11 13:58:31.945155: [debug] Run process: /usr/sbin/groupadd -o --gid 121 group121
2023-06-11 13:58:31.961830: [debug] Process finished in 16ms: /usr/sbin/groupadd -o --gid 121 group121
2023-06-11 13:58:31.961999: [debug] Run process: /usr/sbin/groupadd -o --gid 132 group132
2023-06-11 13:58:31.989475: [debug] Process finished in 27ms: /usr/sbin/groupadd -o --gid 132 group132
2023-06-11 13:58:31.989650: [debug] Run process: /usr/sbin/groupadd -o --gid 133 group133
2023-06-11 13:58:32.008496: [debug] Process finished in 19ms: /usr/sbin/groupadd -o --gid 133 group133
2023-06-11 13:58:32.008683: [debug] Run process: /usr/sbin/groupadd -o --gid 134 group134
2023-06-11 13:58:32.024218: [debug] Process finished in 15ms: /usr/sbin/groupadd -o --gid 134 group134
2023-06-11 13:58:32.024390: [debug] Run process: /usr/sbin/groupadd -o --gid 1000 group1000
2023-06-11 13:58:32.039414: [debug] Process finished in 15ms: /usr/sbin/groupadd -o --gid 1000 group1000
2023-06-11 13:58:32.041750: [debug] (SQL) SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2023-06-10 13:58:32.041556829 UTC]
2023-06-11 13:58:32.043718: [debug] Using package location completions from a lock file
2023-06-11 13:58:32.052159: [debug] Loaded snapshot from Pantry database.
2023-06-11 13:58:32.218460: [debug] Prefetching git repos: []
2023-06-11 13:58:32.218525: [debug] []
2023-06-11 13:58:32.220312: [debug] Asking for a supported GHC version
2023-06-11 13:58:32.220355: [debug] Getting system compiler version
2023-06-11 13:58:32.221700: [debug] (SQL) SELECT "id","actual_version","arch","ghc_path","ghc_size","ghc_modified","ghc_pkg_path","runghc_path","haddock_path","cabal_version","global_db","global_db_cache_size","global_db_cache_modified","info","global_dump" FROM "compiler_cache" WHERE "ghc_path"=?; [PersistText "/usr/local/.ghcup/ghc/9.4.4/bin/ghc-9.4.4"]
2023-06-11 13:58:32.263747: [debug] Loaded compiler information from cache
2023-06-11 13:58:32.263909: [debug] Not using compiler at "/usr/local/.ghcup/ghc/9.4.4/bin/ghc-9.4.4": PrettyException UnwantedCompilerVersion
2023-06-11 13:58:32.264364: [debug] Installed tools: 
 - 
2023-06-11 13:58:32.264483: [debug] Run process: /sbin/ldconfig -p
2023-06-11 13:58:32.265620: [debug] Process finished in 1ms: /sbin/ldconfig -p
2023-06-11 13:58:32.265797: [debug] Run process: /usr/bin/ldd --version
musl libc (x86_64)
Version 1.2.3
Dynamic Program Loader
Usage: /lib/ld-musl-x86_64.so.1 [options] [--] pathname
2023-06-11 13:58:32.266560: [debug] Process finished in 1ms: /usr/bin/ldd --version
2023-06-11 13:58:32.266620: [debug] Did not find a version of shared library libc6.
2023-06-11 13:58:32.266667: [debug] Did not find shared library libtinfo.so.5
2023-06-11 13:58:32.266742: [debug] Found shared library libtinfo.so.6 in /usr/lib/
2023-06-11 13:58:32.266772: [debug] Found shared library libncursesw.so.6 in /usr/lib/
2023-06-11 13:58:32.266806: [debug] Found shared library libgmp.so.10 in /usr/lib/
2023-06-11 13:58:32.266832: [debug] Did not find shared library libgmp.so.3
2023-06-11 13:58:32.266850: [debug] Potential GHC builds: tinfo6-libc6-pre232, ncurses6
2023-06-11 13:58:32.266892: [debug] Found already installed GHC builds: 
2023-06-11 13:58:32.542665: [debug] Trying to setup GHC build: tinfo6-libc6-pre232
2023-06-11 13:58:32.542750: [info] Preparing to install GHC (tinfo6-libc6-pre232) to an isolated location. This will not interfere with
any system-level installation.
2023-06-11 13:58:32.543016: [info] Preparing to download ghc-tinfo6-libc6-pre232-8.2.2 ...
2023-06-11 13:58:32.543059: [debug] Downloading from https://github.com/commercialhaskell/ghc/releases/download/ghc-8.2.2-release/ghc-8.2.2-x86_64-fedora27-linux-patch1.tar.xz to /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.tar.xz ...
2023-06-11 13:58:32.543088: [debug] Will check against sha1 hash: 124b0f81079cecfa5813cbed0b37cd4bff89345d
2023-06-11 13:58:32.543107: [debug] Will check against sha256 hash: 282094d67a786e975d71022f1c9650d19f6f5eeb6a618a9c14dd9cccf1eff9f7
2023-06-11 13:58:33.264049: [info] Already downloaded ghc-tinfo6-libc6-pre232-8.2.2.
2023-06-11 13:58:33.268149: [debug] menv = fromList [("GHCUP_INSTALL_BASE_PREFIX","/usr/local"),("HOME","/home/user/myproject/.stack-work/docker/_home"),("HOSTNAME","agape"),("PATH","/opt/host/bin:/home/user/myproject/.stack-work/docker/_home/.local/bin:/usr/local/.ghcup/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"),("PWD","/home/user/myproject"),("STACK_IN_CONTAINER","1"),("STACK_PLATFORM_VARIANT","dk85569e7f830e7dc606115fd702e078fb"),("STACK_ROOT","/home/user/.stack"),("USER","user")]
2023-06-11 13:58:33.268557: [debug] ziptool: xz
2023-06-11 13:58:33.268595: [debug] make: make
2023-06-11 13:58:33.268648: [debug] tar: tar
2023-06-11 13:58:33.268664: [info] Unpacking GHC into /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ ...
2023-06-11 13:58:33.268681: [debug] Unpacking /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.tar.xz
2023-06-11 13:58:33.268790: [debug] Run process within /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/: /usr/bin/tar Jxf /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.tar.xz
2023-06-11 13:58:45.971316: [debug] Process finished in 12702ms: /usr/bin/tar Jxf /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.tar.xz
2023-06-11 13:58:45.971483: [info] Configuring GHC ...
2023-06-11 13:58:45.971628: [debug] Run process within /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/: /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/configure --prefix=/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/
<bunch of conifigure output, removed because comment was too long>
2023-06-11 13:58:47.330296: [debug] ****************************************************
2023-06-11 13:58:47.330355: [debug] Configuration done, ready to 'make install'
2023-06-11 13:58:47.330374: [debug] (see README and INSTALL files for more info.)
2023-06-11 13:58:47.330574: [debug] ****************************************************
2023-06-11 13:58:47.343718: [debug] Process finished in 1372ms: /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/configure --prefix=/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/
2023-06-11 13:58:47.343777: [info] Installing GHC ...
2023-06-11 13:58:47.343915: [debug] Run process within /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/: /usr/bin/make install
2023-06-11 13:58:47.346085: [debug] /usr/bin/make --no-print-directory -f ghc.mk install BINDIST=YES NO_INCLUDE_DEPS=YES
2023-06-11 13:58:47.862059: [debug] "rm" -f utils/ghc-pkg/dist-install/build/Version.hs  
2023-06-11 13:58:47.863006: [debug] echo "module Version where"                    >> utils/ghc-pkg/dist-install/build/Version.hs
2023-06-11 13:58:47.863559: [debug] echo "version, targetOS, targetARCH :: String" >> utils/ghc-pkg/dist-install/build/Version.hs
2023-06-11 13:58:47.863947: [debug] echo "version    = \"8.2.2\""      >> utils/ghc-pkg/dist-install/build/Version.hs
2023-06-11 13:58:47.864356: [debug] echo "targetOS   = \"linux\""        >> utils/ghc-pkg/dist-install/build/Version.hs
2023-06-11 13:58:47.864774: [debug] echo "targetARCH = \"x86_64\""      >> utils/ghc-pkg/dist-install/build/Version.hs
2023-06-11 13:58:47.865433: [debug] "rm" -f utils/ghc-pkg/dist/build/Version.hs  
2023-06-11 13:58:47.866408: [debug] echo "module Version where"                    >> utils/ghc-pkg/dist/build/Version.hs
2023-06-11 13:58:47.867031: [debug] echo "version, targetOS, targetARCH :: String" >> utils/ghc-pkg/dist/build/Version.hs
2023-06-11 13:58:47.867544: [debug] echo "version    = \"8.2.2\""      >> utils/ghc-pkg/dist/build/Version.hs
2023-06-11 13:58:47.867955: [debug] echo "targetOS   = \"linux\""        >> utils/ghc-pkg/dist/build/Version.hs
2023-06-11 13:58:47.868399: [debug] echo "targetARCH = \"x86_64\""      >> utils/ghc-pkg/dist/build/Version.hs
2023-06-11 13:58:47.870289: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.871322: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"  
2023-06-11 13:58:47.872138: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.873626: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.874252: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.874839: [debug] echo 'exeprog="hp2ps"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.875392: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.875871: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.876299: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.876720: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.877233: [debug] cat utils/hp2ps/hp2ps.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.877985: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hp2ps"
2023-06-11 13:58:47.878844: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.879753: [debug] "rm" -f                                 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci-8.2.2"  
2023-06-11 13:58:47.880416: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                   "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci-8.2.2"
2023-06-11 13:58:47.881845: [debug] echo '#!/bin/sh'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci-8.2.2"
2023-06-11 13:58:47.882364: [debug] echo 'exec "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2" --interactive "$@"' >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci-8.2.2"
2023-06-11 13:58:47.882864: [debug] chmod +x                                 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci-8.2.2"
2023-06-11 13:58:47.883512: [debug] "rm" -f "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci"  
2023-06-11 13:58:47.884198: [debug] ln -s ghci-8.2.2 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghci"
2023-06-11 13:58:47.884956: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include"
2023-06-11 13:58:47.885903: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/." && /usr/bin/install -c -m 644  includes/./*.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/./" &&   /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/rts" && /usr/bin/install -c -m 644  includes/rts/*.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/rts/" &&   /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/rts/prof" && /usr/bin/install -c -m 644  includes/rts/prof/*.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/rts/prof/" &&   /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/rts/storage" && /usr/bin/install -c -m 644  includes/rts/storage/*.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/rts/storage/" &&   /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/stg" && /usr/bin/install -c -m 644  includes/stg/*.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/stg/" &&  true
2023-06-11 13:58:47.896011: [debug] /usr/bin/install -c -m 644  includes/ghcautoconf.h includes/ghcplatform.h includes/ghcversion.h includes/dist-derivedconstants/header/DerivedConstants.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/"
2023-06-11 13:58:47.897423: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include"
2023-06-11 13:58:47.898553: [debug] /usr/bin/install -c -m 644  rts/dist/build/ffi.h rts/dist/build/ffitarget.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include/"
2023-06-11 13:58:47.899663: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.900621: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"  
2023-06-11 13:58:47.901427: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.902944: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.903475: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.903920: [debug] echo 'exeprog="haddock"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.904424: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.904879: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.905391: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.905854: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.906238: [debug] cat utils/haddock/haddock.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.906924: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock-ghc-8.2.2"
2023-06-11 13:58:47.907776: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/"  
2023-06-11 13:58:47.908651: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Classic.theme/"  
2023-06-11 13:58:47.909369: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Ocean.std-theme/"  
2023-06-11 13:58:47.910064: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/latex/"
2023-06-11 13:58:47.910733: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/haddock-util.js "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/"  
2023-06-11 13:58:47.911496: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Classic.theme/haskell_icon.gif "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Classic.theme/"  
2023-06-11 13:58:47.912247: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Classic.theme/minus.gif "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Classic.theme/"  
2023-06-11 13:58:47.912995: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Classic.theme/plus.gif "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Classic.theme/"  
2023-06-11 13:58:47.913730: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Classic.theme/xhaddock.css "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Classic.theme/"  
2023-06-11 13:58:47.914483: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean.std-theme/hslogo-16.png "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Ocean.std-theme/"  
2023-06-11 13:58:47.915207: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean.std-theme/minus.gif "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Ocean.std-theme/"  
2023-06-11 13:58:47.915934: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean.std-theme/ocean.css "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Ocean.std-theme/"  
2023-06-11 13:58:47.916645: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean.std-theme/plus.gif "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Ocean.std-theme/"  
2023-06-11 13:58:47.917372: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean.std-theme/synopsis.png "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/Ocean.std-theme/"  
2023-06-11 13:58:47.918118: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/solarized.css "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/"  
2023-06-11 13:58:47.918862: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/highlight.js "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/html/"  
2023-06-11 13:58:47.919526: [debug] /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/latex/haddock.sty "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/latex/"
2023-06-11 13:58:47.920313: [debug] "rm" -f "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock"  
2023-06-11 13:58:47.921309: [debug] ln -s haddock-ghc-8.2.2 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/haddock"
2023-06-11 13:58:47.922267: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.923207: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"  
2023-06-11 13:58:47.923949: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.925504: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.925995: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.926535: [debug] echo 'exeprog="hsc2hs"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.927063: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.927620: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.928102: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.928622: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.929062: [debug] echo 'HSC2HS_EXTRA="--cflag=-fno-stack-protector --lflag=-fuse-ld=gold"' >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.929493: [debug] cat utils/hsc2hs/hsc2hs.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.930200: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hsc2hs"
2023-06-11 13:58:47.930907: [debug] /usr/bin/install -c -m 644  utils/hsc2hs/template-hsc.h "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"
2023-06-11 13:58:47.931969: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.932765: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"  
2023-06-11 13:58:47.933477: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.934916: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.935434: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.935848: [debug] echo 'exeprog="ghc-pkg"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.936288: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.936706: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.937119: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.937721: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.938119: [debug] cat utils/ghc-pkg/ghc-pkg.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.938772: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg-8.2.2"
2023-06-11 13:58:47.939483: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.940361: [debug] "rm" -f "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg"  
2023-06-11 13:58:47.940975: [debug] ln -s ghc-pkg-8.2.2 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-pkg"
2023-06-11 13:58:47.941781: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.942613: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"  
2023-06-11 13:58:47.943353: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.944663: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.945052: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.945510: [debug] echo 'exeprog="hpc"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.945910: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.946391: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.946802: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.947243: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.947642: [debug] cat utils/hpc/hpc.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.948302: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/hpc"
2023-06-11 13:58:47.949145: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.950020: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"  
2023-06-11 13:58:47.950690: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.951972: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.952421: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.952861: [debug] echo 'exeprog="runghc"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.953395: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.953894: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.954383: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.954829: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.955266: [debug] echo 'ghcprog="ghc-8.2.2"' >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.955656: [debug] cat utils/runghc/runghc.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.956360: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc-8.2.2"
2023-06-11 13:58:47.957138: [debug] "rm" -f "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runhaskell"  
2023-06-11 13:58:47.958167: [debug] ln -s runghc "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runhaskell"
2023-06-11 13:58:47.958990: [debug] "rm" -f "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc"  
2023-06-11 13:58:47.959958: [debug] ln -s runghc-8.2.2 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/runghc"
2023-06-11 13:58:47.960926: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"
2023-06-11 13:58:47.961933: [debug] "rm" -f                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"  
2023-06-11 13:58:47.962628: [debug] create () { touch "$1" && chmod 755 "$1" ; } && create                                           "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.963939: [debug] echo '#!/bin/sh'                                       >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.964326: [debug] echo 'exedir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"'                    >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.964782: [debug] echo 'exeprog="ghc-stage2"'                          >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.965204: [debug] echo 'executablename="$exedir/$exeprog"'           >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.965651: [debug] echo 'datadir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share"'                             >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.966084: [debug] echo 'bindir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.966492: [debug] echo 'topdir="/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"'                               >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.966902: [debug] echo 'executablename="$exedir/ghc"' >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.967288: [debug] cat ghc/ghc.wrapper                         >> "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.967941: [debug] chmod +x                                         "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc-8.2.2"
2023-06-11 13:58:47.968893: [debug] "rm" -f "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc"  
2023-06-11 13:58:47.970002: [debug] ln -s ghc-8.2.2 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/bin/ghc"
2023-06-11 13:58:47.970732: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share/man"
2023-06-11 13:58:47.971618: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share/man/man1"
2023-06-11 13:58:47.972279: [debug] /usr/bin/install -c -m 644  docs/users_guide/build-man/ghc.1 "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share/man/man1"
2023-06-11 13:58:47.973256: [debug] #  driver/ghc-usage.txt driver/ghci-usage.txt includes/dist-derivedconstants/header/platformConstants settings = libraries to install
2023-06-11 13:58:47.973771: [debug] #  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2" = directory to install to
2023-06-11 13:58:47.974160: [debug] #
2023-06-11 13:58:47.974572: [debug] # The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because
2023-06-11 13:58:47.974946: [debug] # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries.
2023-06-11 13:58:47.975320: [debug] # For some reason, this means the DLLs end up non-executable, which means
2023-06-11 13:58:47.975709: [debug] # executables that use them just segfault.
2023-06-11 13:58:47.976085: [debug] /usr/bin/install -c -m 755 -d  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"
2023-06-11 13:58:47.976801: [debug] for i in  driver/ghc-usage.txt driver/ghci-usage.txt includes/dist-derivedconstants/header/platformConstants settings; do case $i in *.a) /usr/bin/install -c -m 644  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"; true  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"/`basename $i` ;; *.dll) /usr/bin/install -c -m 755  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2" ; :  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"/`basename $i` ;; *.so) /usr/bin/install -c -m 755  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2" ;; *.dylib) /usr/bin/install -c -m 755  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2";; *) /usr/bin/install -c -m 644  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"; esac; done
2023-06-11 13:58:47.979462: [debug] gcc -E -undef -traditional -P -DINSTALLING -DLIB_DIR='"/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"' -DINCLUDE_DIR='"/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/include"' -DFFI_INCLUDE_DIR= -DFFI_LIB_DIR= '-DFFI_LIB="Cffi"' -x c -Iincludes -Iincludes/dist -Iincludes/dist-derivedconstants/header -Iincludes/dist-ghcconstants/header rts/package.conf.in -o rts/dist/package.conf.install.raw
2023-06-11 13:58:47.987206: [debug] grep -v '^#pragma GCC' rts/dist/package.conf.install.raw | sed -e 's/""//g' -e 's/:[ 	]*,/: /g' >rts/dist/package.conf.install
2023-06-11 13:58:47.990197: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"
2023-06-11 13:58:47.991318: [debug] for i in utils/unlit/dist/build/tmp/unlit utils/hp2ps/dist/build/tmp/hp2ps utils/hp2ps/dist/build/tmp/hp2ps utils/haddock/dist/build/tmp/haddock utils/haddock/dist/build/tmp/haddock utils/hsc2hs/dist-install/build/tmp/hsc2hs utils/hsc2hs/dist-install/build/tmp/hsc2hs utils/ghc-pkg/dist-install/build/tmp/ghc-pkg utils/ghc-pkg/dist-install/build/tmp/ghc-pkg utils/hpc/dist-install/build/tmp/hpc utils/hpc/dist-install/build/tmp/hpc utils/runghc/dist-install/build/tmp/runghc utils/runghc/dist-install/build/tmp/runghc ghc/stage2/build/tmp/ghc-stage2 ghc/stage2/build/tmp/ghc-stage2 iserv/stage2/build/tmp/ghc-iserv iserv/stage2_p/build/tmp/ghc-iserv-prof iserv/stage2_dyn/build/tmp/ghc-iserv-dyn; do \
2023-06-11 13:58:47.991480: [debug] 	/usr/bin/install -c -m 755  $i "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin"; \
2023-06-11 13:58:47.991527: [debug] done
2023-06-11 13:58:48.084854: [debug] "mv" "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin/ghc-stage2" "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/bin/ghc"
2023-06-11 13:58:48.090306: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2"
2023-06-11 13:58:48.091281: [debug] "rm" -rf "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/package.conf.d"  
2023-06-11 13:58:48.092142: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/package.conf.d"
2023-06-11 13:58:48.092857: [debug] /usr/bin/install -c -m 755 -d "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts"
2023-06-11 13:58:48.093626: [debug] #  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts-ghc8.2.2.so rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libHSrts_debug-ghc8.2.2.so rts/dist/build/libHSrts_thr-ghc8.2.2.so rts/dist/build/libHSrts_thr_debug-ghc8.2.2.so rts/dist/build/libHSrts_l-ghc8.2.2.so rts/dist/build/libHSrts_thr_l-ghc8.2.2.so rts/dist/build/libffi.so rts/dist/build/libffi.so.6 rts/dist/build/libffi.so.6.0.4 rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a = libraries to install
2023-06-11 13:58:48.094015: [debug] #  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts" = directory to install to
2023-06-11 13:58:48.094345: [debug] #
2023-06-11 13:58:48.094732: [debug] # The .dll case calls STRIP_CMD explicitly, instead of `install -s`, because
2023-06-11 13:58:48.095150: [debug] # on Win64, "install -s" calls a strip that doesn't understand 64bit binaries.
2023-06-11 13:58:48.095556: [debug] # For some reason, this means the DLLs end up non-executable, which means
2023-06-11 13:58:48.095952: [debug] # executables that use them just segfault.
2023-06-11 13:58:48.096696: [debug] /usr/bin/install -c -m 755 -d  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts"
2023-06-11 13:58:48.097482: [debug] for i in  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build/libHSrts-ghc8.2.2.so rts/dist/build/libHSrts_l.a rts/dist/build/libHSrts_debug.a rts/dist/build/libHSrts_thr.a rts/dist/build/libHSrts_thr_debug.a rts/dist/build/libHSrts_thr_l.a rts/dist/build/libHSrts_thr_p.a rts/dist/build/libHSrts_debug-ghc8.2.2.so rts/dist/build/libHSrts_thr-ghc8.2.2.so rts/dist/build/libHSrts_thr_debug-ghc8.2.2.so rts/dist/build/libHSrts_l-ghc8.2.2.so rts/dist/build/libHSrts_thr_l-ghc8.2.2.so rts/dist/build/libffi.so rts/dist/build/libffi.so.6 rts/dist/build/libffi.so.6.0.4 rts/dist/build/libCffi.a rts/dist/build/libCffi_p.a rts/dist/build/libCffi_l.a rts/dist/build/libCffi_debug.a rts/dist/build/libCffi_thr.a rts/dist/build/libCffi_thr_debug.a rts/dist/build/libCffi_thr_l.a rts/dist/build/libCffi_thr_p.a; do case $i in *.a) /usr/bin/install -c -m 644  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts"; true  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts"/`basename $i` ;; *.dll) /usr/bin/install -c -m 755  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts" ; :  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts"/`basename $i` ;; *.so) /usr/bin/install -c -m 755  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts" ;; *.dylib) /usr/bin/install -c -m 755  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts";; *) /usr/bin/install -c -m 644  $i  "/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2/rts"; esac; done
2023-06-11 13:58:48.181061: [debug] "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries/ghc-prim dist-install ":" '' '/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2' '/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/lib/ghc-8.2.2' '/home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/share/doc/ghc-8.2.2/html/libraries' 'v p dyn'  
2023-06-11 13:58:48.181844: [error] utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist: exec: line 3: utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: not found
2023-06-11 13:58:48.181942: [error] make[1]: *** [ghc.mk:991: install_packages] Error 127
2023-06-11 13:58:48.182582: [error] make: *** [Makefile:51: install] Error 2
2023-06-11 13:58:48.183132: [debug] Checking for project config at: /home/user/myproject/stack.yaml
2023-06-11 13:58:48.183205: [debug] Loading project config file stack.yaml
2023-06-11 13:58:48.185980: [debug] (SQL) SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2023-06-10 13:58:48.185954565 UTC]
2023-06-11 13:58:48.186290: [error] 
Error: [S-7441]
       Received ExitFailure 2 when running
       Raw command: /usr/bin/make install
       Run from: /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/
       
       Error encountered while installing GHC with
         make install
         run in
         /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/ghc-8.2.2/
       
       The following directories may now contain files, but won't be used by Stack:
       * /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2.temp/
       * /home/user/.stack/programs/x86_64-linux-dk85569e7f830e7dc606115fd702e078fb/ghc-tinfo6-libc6-pre232-8.2.2/
       
       For more information consider rerunning with --verbose flag.
       
2023-06-11 15:58:48.754607: [debug] Run process: /usr/bin/docker rm -f 9276dbb6f33fcbe398db29b32e57047e513f047c42da0a07c43a9b284f294e92
2023-06-11 15:58:48.820750: [debug] Process finished in 66ms: /usr/bin/docker rm -f 9276dbb6f33fcbe398db29b32e57047e513f047c42da0a07c43a9b284f294e92

Hey, thanks for taking time to open an issue!

As far as I can see, the curious part is that stack is trying to build the GHC itself, instead of using the one from the compiler. This is likely to fail, as the container is missing a lot of tooling for that. So the ideal is to convince stack to use the compiler that is already in the container. Which stackage resolver you are using?

I saw this on the "details" section:

/usr/local/.ghcup/ghc/9.4.4/bin/ghc-9.4.4": PrettyException UnwantedCompilerVersion

So, can you try convincing stack to use the "GHC 9.4.4"? A couple of ways I can think of:

  • Use a resolver that uses GHC 9.4.4
  • I think you could also convince stack to be more lenient when checking compiler versions. See the compiler-check section on stack docs.

Hope it helps!

nnmm commented

Thanks for your comment @utdemir! I was using lts-10.1 (it's an old project), I don't get the error anymore with lts-21.16, though I'll need to upgrade all packages in my project too.