[GHC] #12479: build fail of commercialhaskell.com with stack build on mac os x sierra beta 4
GHC
ghc-devs at haskell.org
Wed Aug 10 15:27:57 UTC 2016
#12479: build fail of commercialhaskell.com with stack build on mac os x sierra
beta 4
-------------------------------------+-------------------------------------
Reporter: stephenb | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.0.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: Compile-time
Unknown/Multiple | crash
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
Hi,
git clone (commit dfe55e97ed86567aafca2e5f3c19096e2a4cb50f - Sep 20th
2016) of commercialhaskell.com from github:
{{{
https://github.com/commercialhaskell/commercialhaskell.com.git
}}}
follow instructions from that repo exactly for os x (stacksetup installed
ghc-7.10.2, but i have seen similar issue with 8):
{{{
$ brew install icu4c
Add the following to your ~/.stack/stack.yaml:
extra-include-dirs:
- /usr/local/opt/icu4c/include
extra-lib-dirs:
- /usr/local/opt/icu4c/lib
Now:
$ stack build
}}}
Hit one minor issue in build process with icu4c, resolving with following
stack build:
{{{
stack build --extra-lib-dirs=/usr/local/opt/icu4c/lib --extra-include-
dirs=/usr/local/opt/icu4c/include
}}}
reach build of yesod-auth, with a failure:
{{{
yesod-auth-1.4.6: configure
yesod-auth-1.4.6: build
texmath-0.8.2.2: copy/register
Progress: 35/38
-- While building package yesod-auth-1.4.6 using:
/Users/stephen/.stack/setup-exe-cache/x86_64-osx/setup-Simple-
Cabal-1.22.4.0-ghc-7.10.2 --builddir=.stack-
work/dist/x86_64-osx/Cabal-1.22.4.0 build --ghc-options " -ddump-hi
-ddump-to-file"
Process exited with code: ExitFailure 1
Logs have been written to:
/Users/stephen/Documents/github/commercialhaskell.com/.stack-work/logs
/yesod-auth-1.4.6.log
Configuring yesod-auth-1.4.6...
Building yesod-auth-1.4.6...
Preprocessing library yesod-auth-1.4.6...
[ 1 of 11] Compiling Yesod.PasswordStore ( Yesod/PasswordStore.hs,
.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Yesod/PasswordStore.o )
/private/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/stack49268
/yesod-auth-1.4.6/Yesod/PasswordStore.hs:166:31: Warning:
Defaulting the following constraint(s) to type ‘Integer’
(Integral b0)
arising from a use of ‘^’ at Yesod/PasswordStore.hs:166:31
(Num b0)
arising from the literal ‘32’ at
Yesod/PasswordStore.hs:166:32-33
In the first argument of ‘(-)’, namely ‘2 ^ 32’
In the first argument of ‘(*)’, namely ‘(2 ^ 32 - 1)’
In the second argument of ‘(>)’, namely ‘(2 ^ 32 - 1) * hLen’
/private/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/stack49268
/yesod-auth-1.4.6/Yesod/PasswordStore.hs:419:1: Warning:
Defined but not used: ‘toStrict’
/private/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/stack49268
/yesod-auth-1.4.6/Yesod/PasswordStore.hs:422:1: Warning:
Defined but not used: ‘fromStrict’
[ 2 of 11] Compiling Yesod.Auth.Message ( Yesod/Auth/Message.hs,
.stack-work/dist/x86_64-osx/Cabal-1.22.4.0/build/Yesod/Auth/Message.o )
/private/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/stack49268
/yesod-auth-1.4.6/Yesod/Auth/Message.hs:22:1: Warning:
The import of ‘Data.Monoid’ is redundant
except perhaps to import instances from ‘Data.Monoid’
To import instances alone, use: import Data.Monoid()
[ 3 of 11] Compiling Yesod.Auth.Routes ( Yesod/Auth/Routes.hs, .stack-
work/dist/x86_64-osx/Cabal-1.22.4.0/build/Yesod/Auth/Routes.o )
[ 4 of 11] Compiling Yesod.Auth ( Yesod/Auth.hs, .stack-
work/dist/x86_64-osx/Cabal-1.22.4.0/build/Yesod/Auth.o )
ghc: panic! (the 'impossible' happened)
(GHC version 7.10.2 for x86_64-apple-darwin):
Loading temp shared object failed:
dlopen(/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/ghc64990_0/libghc_21.dylib,
5): no suitable image found. Did find:
/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/ghc64990_0/libghc_21.dylib:
malformed mach-o: load commands size (34176) > 32768
Please report this as a GHC bug:
http://www.haskell.org/ghc/reportabug
}}}
So reporting.... I've seen the same error attempting to brew install
haskell-stack on sierra betas 3 and 4, but on those occasions, an issue
with libghc_44.dylib causing the problem.
{{{
[ 4 of 87] Compiling System.Process.Read ( src/System/Process/Read.hs,
dist/dist-sandbox-558713ad/build/System/Process/Read.o )
ghc: panic! (the 'impossible' happened)
(GHC version 8.0.1 for x86_64-apple-darwin):
Loading temp shared object failed:
dlopen(/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/ghc67839_0/libghc_44.dylib,
5): no suitable image found. Did find:
/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/ghc67839_0/libghc_44.dylib:
malformed mach-o: load commands size (40560) > 32768
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
}}}
stack version:
{{{
Version 1.1.2, Git revision cebe10e845fed4420b6224d97dcabf20477bbd4b (3646
commits) x86_64 hpack-0.14.0
}}}
stack exec env returns:
{{{
stack exec env
Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.tEAdTiAWFI/Render
GHC_PACKAGE_PATH=/Users/stephen/Documents/github/commercialhaskell.com
/.stack-
work/install/x86_64-osx/lts-3.0/7.10.2/pkgdb:/Users/stephen/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/pkgdb:/Users/stephen/.stack/programs/x86_64-osx/ghc-7.10.2/lib/ghc-7.10.2/package.conf.d
HASKELL_DIST_DIR=.stack-work/dist/x86_64-osx/Cabal-1.22.4.0
HASKELL_PACKAGE_SANDBOX=/Users/stephen/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/pkgdb
HASKELL_PACKAGE_SANDBOXES=/Users/stephen/Documents/github/commercialhaskell.com
/.stack-
work/install/x86_64-osx/lts-3.0/7.10.2/pkgdb:/Users/stephen/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/pkgdb:
HOME=/Users/stephen
LANG=en_IE.UTF-8
LOGNAME=stephen
NAME=Stephen Barrett
OLDPWD=/Users/stephen/Documents/github
PATH=/Users/stephen/Documents/github/commercialhaskell.com/.stack-
work/install/x86_64-osx/lts-3.0/7.10.2/bin:/Users/stephen/.stack/snapshots/x86_64-osx/lts-3.0/7.10.2/bin:/Users/stephen/.stack/programs/x86_64-osx/ghc-7.10.2/bin:/Users/stephen/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
PWD=/Users/stephen/Documents/github/commercialhaskell.com
SECURITYSESSIONID=186a6
SHELL=/bin/bash
SHLVL=1
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.RTM6V8Lo2y/Listeners
STACK_EXE=/Library/Haskell/ghc-8.0.1-x86_64/bin/stack
TERM=xterm-256color
TERM_PROGRAM=Apple_Terminal
TERM_PROGRAM_VERSION=377
TERM_SESSION_ID=020844C9-1E8A-410E-8892-43DC0C5A8C0B
TMPDIR=/var/folders/3k/ycnfbqgx33n7qdytkl9ryx7m0000gn/T/
USER=stephen
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
_=/usr/local/bin/stack
__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x6C
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/12479>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list