[GHC] #14041: ghc-8.2.1 installation fails on OpenBSD 6.1

GHC ghc-devs at haskell.org
Thu Jul 27 15:49:44 UTC 2017


#14041: ghc-8.2.1 installation fails on OpenBSD 6.1
-------------------------------------+-------------------------------------
           Reporter:                 |             Owner:  (none)
  romanzolotarev                     |
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:  Research needed
          Component:  None           |           Version:  8.2.1
           Keywords:                 |  Operating System:  OpenBSD
       Architecture:  x86_64         |   Type of failure:  Installing GHC
  (amd64)                            |  failed
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I have tried to install ghc-8.2.1 directly and via stack. Getting the same
 error:

 {{{
 ld.so: ghc-cabal: can't load library 'libgmp.so.9.0'
 }}}

 Seems like ghc requires 'libgmp.so.9.0', while OpenBSD 6.1 has
 'libgmp.so.10.0' by default.

 {{{
 # find / -name libgmp.so*
 /usr/local/lib/libgmp.so.10.0
 }}}

 ----

 Here are full logs:

 {{{

 OpenBSD 6.1 (GENERIC) #19: Sat Apr  1 13:42:46 MDT 2017

 Welcome to OpenBSD: The proactively secure Unix-like operating system.

 Please use the sendbug(1) utility to report bugs in the system.
 Before reporting a bug, please try to reproduce it with the latest
 version of the code.  With bug reports, please try to ensure that
 enough information to reproduce the problem is enclosed, and if a
 known fix for it exists, include that as well.

 # ./.cabal/bin/stack setup 8.2.1
 Preparing to install GHC to an isolated location.
 This will not interfere with any system-level installation.
 Already downloaded.
 Running /usr/local/bin/gmake install in directory
 /root/.stack/programs/x86_64-openbsd/ghc-8.2.1.temp/ghc-8.2.1/ exited with
 ExitFailure 2

 /usr/local/bin/gmake --no-print-directory -f ghc.mk install BINDIST=YES
 NO_INCLUDE_DEPS=YES
 "rm" -f utils/ghc-pkg/dist-install/build/Version.hs
 echo "module Version where"                    >> utils/ghc-pkg/dist-
 install/build/Version.hs
 echo "version, targetOS, targetARCH :: String" >> utils/ghc-pkg/dist-
 install/build/Version.hs
 echo "version    = \"8.2.1\""      >> utils/ghc-pkg/dist-
 install/build/Version.hs
 echo "targetOS   = \"openbsd\""        >> utils/ghc-pkg/dist-
 install/build/Version.hs
 echo "targetARCH = \"x86_64\""      >> utils/ghc-pkg/dist-
 install/build/Version.hs
 "rm" -f utils/ghc-pkg/dist/build/Version.hs
 echo "module Version where"                    >> utils/ghc-
 pkg/dist/build/Version.hs
 echo "version, targetOS, targetARCH :: String" >> utils/ghc-
 pkg/dist/build/Version.hs
 echo "version    = \"8.2.1\""      >> utils/ghc-pkg/dist/build/Version.hs
 echo "targetOS   = \"openbsd\""        >> utils/ghc-
 pkg/dist/build/Version.hs
 echo "targetARCH = \"x86_64\""      >> utils/ghc-pkg/dist/build/Version.hs
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo 'exeprog="hp2ps"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 cat utils/hp2ps/hp2ps.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hp2ps"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci-8.2.1"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci-8.2.1"
 echo '#!/bin/sh'                               >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci-8.2.1"
 echo 'exec "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 --interactive "$@"' >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci-8.2.1"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci-8.2.1"
 "rm" -f "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci"
 ln -s ghci-8.2.1 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghci"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/."
 && /usr/bin/install -c -m 644  includes/./*.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/./"
 &&   /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/rts"
 && /usr/bin/install -c -m 644  includes/rts/*.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/rts/"
 &&   /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/rts/prof"
 && /usr/bin/install -c -m 644  includes/rts/prof/*.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/rts/prof/"
 &&   /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/rts/storage"
 && /usr/bin/install -c -m 644  includes/rts/storage/*.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/rts/storage/"
 &&   /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/stg"
 && /usr/bin/install -c -m 644  includes/stg/*.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/stg/"
 &&  true
 /usr/bin/install -c -m 644  includes/ghcautoconf.h includes/ghcplatform.h
 includes/ghcversion.h includes/dist-
 derivedconstants/header/DerivedConstants.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include/"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo 'exeprog="haddock"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 cat utils/haddock/haddock.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock-ghc-8.2.1"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Classic.theme/"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Ocean
 .std-theme/"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/latex/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html
 /haddock-util.js
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/html/Classic.theme/haskell_icon.gif
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Classic.theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/html/Classic.theme/minus.gif
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Classic.theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/html/Classic.theme/plus.gif
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Classic.theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/html/Classic.theme/xhaddock.css
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Classic.theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean
 .std-theme/hslogo-16.png
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Ocean
 .std-theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean
 .std-theme/minus.gif
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Ocean
 .std-theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean
 .std-theme/ocean.css
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Ocean
 .std-theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean
 .std-theme/plus.gif
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Ocean
 .std-theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-api/resources/html/Ocean
 .std-theme/synopsis.png
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/Ocean
 .std-theme/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/html/solarized.css
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/html/highlight.js
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/html/"
 /usr/bin/install -c -m 644  utils/haddock/haddock-
 api/resources/latex/haddock.sty
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/latex/"
 "rm" -f "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock"
 ln -s haddock-ghc-8.2.1
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/haddock"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo 'exeprog="hsc2hs"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 echo 'HSC2HS_EXTRA="--cflag=-std=gnu99 --cflag=-fno-stack-protector
 --lflag=-Wl,-z,wxneeded"' >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 cat utils/hsc2hs/hsc2hs.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hsc2hs"
 /usr/bin/install -c -m 644  utils/hsc2hs/template-hsc.h
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo 'exeprog="ghc-pkg"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 cat utils/ghc-pkg/ghc-pkg.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg-8.2.1"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-pkg"
 ln -s ghc-pkg-8.2.1 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin
 /ghc-pkg"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo 'exeprog="hpc"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 cat utils/hpc/hpc.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/hpc"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo 'exeprog="runghc"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 echo 'ghcprog="ghc-8.2.1"' >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 cat utils/runghc/runghc.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc-8.2.1"
 "rm" -f "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runhaskell"
 ln -s runghc
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runhaskell"
 "rm" -f "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc"
 ln -s runghc-8.2.1
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/runghc"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"
 "rm" -f
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 create () { touch "$1" && chmod 755 "$1" ; } && create
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo '#!/bin/sh'                                       >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo
 'exedir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo 'exeprog="ghc-stage2"'                          >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo 'executablename="$exedir/$exeprog"'           >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo 'datadir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo 'bindir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo
 'topdir="/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 >> "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 echo 'executablename="$exedir/ghc"' >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 cat ghc/ghc.wrapper                         >>
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 chmod +x
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc-8.2.1"
 "rm" -f "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc"
 ln -s ghc-8.2.1 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/bin/ghc"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share/man"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share/man/man1"
 /usr/bin/install -c -m 644  docs/users_guide/build-man/ghc.1
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share/man/man1"
 #  driver/ghc-usage.txt driver/ghci-usage.txt includes/dist-
 derivedconstants/header/platformConstants settings = libraries to install
 #  "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1" =
 directory to install to
 #
 # The .dll case calls STRIP_CMD explicitly, instead of `install -s`,
 because
 # on Win64, "install -s" calls a strip that doesn't understand 64bit
 binaries.
 # For some reason, this means the DLLs end up non-executable, which means
 # executables that use them just segfault.
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"
 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
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"; true
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"/`basename
 $i` ;; *.dll) /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1" ; strip
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"/`basename
 $i` ;; *.so) /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1" ;; *.dylib)
 /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1";; *)
 /usr/bin/install -c -m 644  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"; esac; done
 gcc -E -undef -traditional -P -DINSTALLING
 -DLIB_DIR='"/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"'
 -DINCLUDE_DIR='"/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/include"'
 -DFFI_INCLUDE_DIR=/usr/local/include -DFFI_LIB_DIR=/usr/local/lib
 '-DFFI_LIB=' -x c -Iincludes -Iincludes/dist -Iincludes/dist-
 derivedconstants/header -Iincludes/dist-ghcconstants/header
 rts/package.conf.in -o rts/dist/package.conf.install.raw
 grep -v '^#pragma GCC' rts/dist/package.conf.install.raw | sed -e
 's/""//g' -e 's/:[    ]*,/: /g' >rts/dist/package.conf.install
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"
 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 \
         /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin"; \
 done
 "mv" "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin
 /ghc-stage2"
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/bin/ghc"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1"
 "rm" -rf
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/package.conf.d"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/package.conf.d"
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts"
 #  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a rts/dist/build
 /libHSrts-ghc8.2.1.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.1.so
 rts/dist/build/libHSrts_thr-ghc8.2.1.so rts/dist/build/libHSrts_thr_debug-
 ghc8.2.1.so rts/dist/build/libHSrts_l-ghc8.2.1.so rts/dist/build
 /libHSrts_thr_l-ghc8.2.1.so = libraries to install
 #  "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts" =
 directory to install to
 #
 # The .dll case calls STRIP_CMD explicitly, instead of `install -s`,
 because
 # on Win64, "install -s" calls a strip that doesn't understand 64bit
 binaries.
 # For some reason, this means the DLLs end up non-executable, which means
 # executables that use them just segfault.
 /usr/bin/install -c -m 755 -d
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts"
 for i in  rts/dist/build/libHSrts.a rts/dist/build/libHSrts_p.a
 rts/dist/build/libHSrts-ghc8.2.1.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.1.so
 rts/dist/build/libHSrts_thr-ghc8.2.1.so rts/dist/build/libHSrts_thr_debug-
 ghc8.2.1.so rts/dist/build/libHSrts_l-ghc8.2.1.so rts/dist/build
 /libHSrts_thr_l-ghc8.2.1.so; do case $i in *.a) /usr/bin/install -c -m 644
 $i  "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts";
 true
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts"/`basename
 $i` ;; *.dll) /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts" ; strip
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts"/`basename
 $i` ;; *.so) /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts" ;;
 *.dylib) /usr/bin/install -c -m 755  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts";; *)
 /usr/bin/install -c -m 644  $i
 "/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1/rts"; esac;
 done
 "utils/ghc-cabal/dist-install/build/tmp/ghc-cabal-bindist" copy libraries
 /ghc-prim dist-install "strip" ''
 '/root/.stack/programs/x86_64-openbsd/ghc-8.2.1'
 '/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/lib/ghc-8.2.1'
 '/root/.stack/programs/x86_64-openbsd/ghc-8.2.1/share/doc/ghc-8.2.1/html/libraries'
 'v p dyn'

 ld.so: ghc-cabal: can't load library 'libgmp.so.9.0'
 Killed
 gmake[1]: *** [ghc.mk:991: install_packages] Error 137
 gmake: *** [Makefile:51: install] Error 2


 Error: Error encountered while installing GHC with
          gmake install
          run in
 /root/.stack/programs/x86_64-openbsd/ghc-8.2.1.temp/ghc-8.2.1/

 The following directories may now contain files, but won't be used by
 stack:
   - /root/.stack/programs/x86_64-openbsd/ghc-8.2.1.temp/
   - /root/.stack/programs/x86_64-openbsd/ghc-8.2.1/

 Installing GHC ...
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14041>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list