Re: stack setup ExitFailure 2 installing ghc os Mac OS High Sierra

2018-08-06 Thread Michael Snoyman
That sounds like a bug in the GHC install scripts. Can I recommend you file
an upstream issue about it?

On Sun, Aug 5, 2018 at 11:01 AM Bryan Dunphy  wrote:

> After glancing at the output, I renamed “Xcode And Accessories” to
> “Xcode+Accessories” so it works now. Someone should REALLY fix the “choke
> on paths with spaces in them” problem, however.
>
> On Aug 5, 2018, at 02:42:42, Bryan Dunphy  wrote:
>
> Here’s the complete output :
>
> stack build --verbose
> Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807
> commits) x86_64 hpack-0.28.2
> 2018-08-05 02:39:01.717724: [debug] Checking for project config at:
> /Users/bryandunphy/Development/Haskell/helloworld/stack.yaml
> @(src/Stack/Config.hs:850:9)
> 2018-08-05 02:39:01.718169: [debug] Loading project config file stack.yaml
> @(src/Stack/Config.hs:876:13)
> 2018-08-05 02:39:01.743051: [debug] Decoding build plan from:
> /Users/bryandunphy/.stack/build-plan/lts-12.4.yaml
> @(src/Stack/Snapshot.hs:164:5)
> 2018-08-05 02:39:01.743118: [debug] Trying to decode
> /Users/bryandunphy/.stack/build-plan-cache/lts-12.4.cache
> @(src/Stack/Snapshot.hs:156:32)
> 2018-08-05 02:39:01.756391: [debug] Success decoding
> /Users/bryandunphy/.stack/build-plan-cache/lts-12.4.cache
> @(src/Stack/Snapshot.hs:156:32)
> 2018-08-05 02:39:01.756776: [debug] Potential GHC builds: standard
> @(src/Stack/Setup.hs:632:9)
> 2018-08-05 02:39:01.756845: [debug] Found already installed GHC builds:
> @(src/Stack/Setup.hs:458:13)
> 2018-08-05 02:39:02.037408: [debug] Trying to setup GHC build: standard
> @(src/Stack/Setup.hs:956:9)
> 2018-08-05 02:39:02.037494: [info] Preparing to install GHC to an
> isolated location.
> @(src/Stack/Setup.hs:890:5)
> 2018-08-05 02:39:02.037561: [info] This will not interfere with any
> system-level installation.
> @(src/Stack/Setup.hs:899:5)
> 2018-08-05 02:39:02.038081: [debug] Downloading from
> https://github.com/commercialhaskell/ghc/releases/download/ghc-8.4.3-release/ghc-8.4.3-x86_64-apple-darwin.tar.bz2
> to /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2 ...
> @(src/Stack/Setup.hs:1525:5)
> 2018-08-05 02:39:02.038263: [debug] Will check against sha1 hash:
> 4509e4c1084b8b180075141a34a893c84697feba
> @(src/Stack/Setup.hs:1538:13)
> 2018-08-05 02:39:02.038451: [debug] Will check against sha256 hash:
> 769456a7e4a7f22731834d415ea5687f620581cd83c590cc06fdb2ae2806c40c
> @(src/Stack/Setup.hs:1538:13)
> 2018-08-05 02:39:03.428209: [info] Already downloaded.
> @(src/Stack/Setup.hs:1557:14)
> 2018-08-05 02:39:03.989497: [debug] menv = fromList
> [("Apple_PubSub_Socket_Render","/private/tmp/com.apple.launchd.0wVwrywSKG/Render"),("HOME","/Users/bryandunphy"),("LANG","en_US.UTF-8"),("LOGNAME","bryandunphy"),("PATH","/Users/bryandunphy/.local/bin:/Users/bryandunphy/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands"),("PWD","/Users/bryandunphy/Development/Haskell/helloworld"),("SHELL","/bin/bash"),("SHLVL","1"),("SSH_AUTH_SOCK","/private/tmp/com.apple.launchd.bBcd2wMPVu/Listeners"),("TERM","xterm-256color"),("TERM_PROGRAM","Apple_Terminal"),("TERM_PROGRAM_VERSION","404"),("TERM_SESSION_ID","DF9E8089-2CEF-4542-978C-D0D0482347F4"),("TMPDIR","/var/folders/rj/0sbf7mxx0_n_31x9wbn5rtw4gn/T/"),("USER","bryandunphy"),("XPC_FLAGS","0x0"),("XPC_SERVICE_NAME","0"),("_","/usr/local/bin/stack"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")]
> @(src/Stack/Setup.hs:1067:5)
> 2018-08-05 02:39:03.989943: [debug] ziptool: bzip2
> @(src/Stack/Setup.hs:1085:5)
> 2018-08-05 02:39:03.990003: [debug] make: make
> @(src/Stack/Setup.hs:1086:5)
> 2018-08-05 02:39:03.990032: [debug] tar: tar
> @(src/Stack/Setup.hs:1087:5)
> 2018-08-05 02:39:03.990098: [debug] Unpacking
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
> @(src/Stack/Setup.hs:1123:5)
> 2018-08-05 02:39:03.990269: [debug] Run process within
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/: /usr/bin/tar
> jxf /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
> @(src/Stack/Prelude.hs:96:3)
> 2018-08-05 02:39:46.364322: [debug] Process finished in 42374ms:
> /usr/bin/tar jxf
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
> @(src/Stack/Prelude.hs:96:3)
> 2018-08-05 02:39:46.364798: [debug] Run process within
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/:
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/configure
> --prefix=/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3/
> @(src/Stack/Prelude.hs:96:3)
> 2018-08-05 02:39:46.828217: [debug] checking build system type...
> x86_64-apple-darwin17.7.0
> @(src/Stack/Setup.hs:1097:54)
> 2018-08-05 02:39:46.828559: [debug] checking host system type...
> x86_64-apple-darwin17.7.0
> @(src/Stack/Setup.hs:1097:54)
> 2018-08-05 02:39:46.828977: [debug] checking target system type...
> x86_64-apple-darwin17.7.0

Re: stack setup ExitFailure 2 installing ghc os Mac OS High Sierra

2018-08-05 Thread Bryan Dunphy
After glancing at the output, I renamed “Xcode And Accessories” to 
“Xcode+Accessories” so it works now. Someone should REALLY fix the “choke on 
paths with spaces in them” problem, however.

> On Aug 5, 2018, at 02:42:42, Bryan Dunphy  wrote:
> 
> Here’s the complete output :
> 
> stack build --verbose
> Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 
> commits) x86_64 hpack-0.28.2
> 2018-08-05 02:39:01.717724: [debug] Checking for project config at: 
> /Users/bryandunphy/Development/Haskell/helloworld/stack.yaml
> @(src/Stack/Config.hs:850:9)
> 2018-08-05 02:39:01.718169: [debug] Loading project config file stack.yaml
> @(src/Stack/Config.hs:876:13)
> 2018-08-05 02:39:01.743051: [debug] Decoding build plan from: 
> /Users/bryandunphy/.stack/build-plan/lts-12.4.yaml
> @(src/Stack/Snapshot.hs:164:5)
> 2018-08-05 02:39:01.743118: [debug] Trying to decode 
> /Users/bryandunphy/.stack/build-plan-cache/lts-12.4.cache
> @(src/Stack/Snapshot.hs:156:32)
> 2018-08-05 02:39:01.756391: [debug] Success decoding 
> /Users/bryandunphy/.stack/build-plan-cache/lts-12.4.cache
> @(src/Stack/Snapshot.hs:156:32)
> 2018-08-05 02:39:01.756776: [debug] Potential GHC builds: standard
> @(src/Stack/Setup.hs:632:9)
> 2018-08-05 02:39:01.756845: [debug] Found already installed GHC builds: 
> @(src/Stack/Setup.hs:458:13)
> 2018-08-05 02:39:02.037408: [debug] Trying to setup GHC build: standard
> @(src/Stack/Setup.hs:956:9)
> 2018-08-05 02:39:02.037494: [info] Preparing to install GHC to an isolated 
> location.
> @(src/Stack/Setup.hs:890:5)
> 2018-08-05 02:39:02.037561: [info] This will not interfere with any 
> system-level installation.
> @(src/Stack/Setup.hs:899:5)
> 2018-08-05 02:39:02.038081: [debug] Downloading from 
> https://github.com/commercialhaskell/ghc/releases/download/ghc-8.4.3-release/ghc-8.4.3-x86_64-apple-darwin.tar.bz2
>  
> 
>  to /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2 ...
> @(src/Stack/Setup.hs:1525:5)
> 2018-08-05 02:39:02.038263: [debug] Will check against sha1 hash: 
> 4509e4c1084b8b180075141a34a893c84697feba
> @(src/Stack/Setup.hs:1538:13)
> 2018-08-05 02:39:02.038451: [debug] Will check against sha256 hash: 
> 769456a7e4a7f22731834d415ea5687f620581cd83c590cc06fdb2ae2806c40c
> @(src/Stack/Setup.hs:1538:13)
> 2018-08-05 02:39:03.428209: [info] Already downloaded.
> @(src/Stack/Setup.hs:1557:14)
> 2018-08-05 02:39:03.989497: [debug] menv = fromList 
> [("Apple_PubSub_Socket_Render","/private/tmp/com.apple.launchd.0wVwrywSKG/Render"),("HOME","/Users/bryandunphy"),("LANG","en_US.UTF-8"),("LOGNAME","bryandunphy"),("PATH","/Users/bryandunphy/.local/bin:/Users/bryandunphy/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands"),("PWD","/Users/bryandunphy/Development/Haskell/helloworld"),("SHELL","/bin/bash"),("SHLVL","1"),("SSH_AUTH_SOCK","/private/tmp/com.apple.launchd.bBcd2wMPVu/Listeners"),("TERM","xterm-256color"),("TERM_PROGRAM","Apple_Terminal"),("TERM_PROGRAM_VERSION","404"),("TERM_SESSION_ID","DF9E8089-2CEF-4542-978C-D0D0482347F4"),("TMPDIR","/var/folders/rj/0sbf7mxx0_n_31x9wbn5rtw4gn/T/"),("USER","bryandunphy"),("XPC_FLAGS","0x0"),("XPC_SERVICE_NAME","0"),("_","/usr/local/bin/stack"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")]
> @(src/Stack/Setup.hs:1067:5)
> 2018-08-05 02:39:03.989943: [debug] ziptool: bzip2
> @(src/Stack/Setup.hs:1085:5)
> 2018-08-05 02:39:03.990003: [debug] make: make
> @(src/Stack/Setup.hs:1086:5)
> 2018-08-05 02:39:03.990032: [debug] tar: tar
> @(src/Stack/Setup.hs:1087:5)
> 2018-08-05 02:39:03.990098: [debug] Unpacking 
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
> @(src/Stack/Setup.hs:1123:5)
> 2018-08-05 02:39:03.990269: [debug] Run process within 
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/: /usr/bin/tar 
> jxf /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
> @(src/Stack/Prelude.hs:96:3)
> 2018-08-05 02:39:46.364322: [debug] Process finished in 42374ms: /usr/bin/tar 
> jxf /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
> @(src/Stack/Prelude.hs:96:3)
> 2018-08-05 02:39:46.364798: [debug] Run process within 
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/: 
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/configure
>  --prefix=/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3/
> @(src/Stack/Prelude.hs:96:3)
> 2018-08-05 02:39:46.828217: [debug] checking build system type... 
> x86_64-apple-darwin17.7.0
> @(src/Stack/Setup.hs:1097:54)
> 2018-08-05 02:39:46.828559: [debug] checking host system type... 
> x86_64-apple-darwin17.7.0
> @(src/Stack/Setup.hs:1097:54)
> 2018-08-05 02:39:46.828977: [debug] checking target system type... 
> x86_64-apple-darwin17.7.0
> 

Re: stack setup ExitFailure 2 installing ghc os Mac OS High Sierra

2018-08-05 Thread Bryan Dunphy
Here’s the complete output :

stack build --verbose
Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807 
commits) x86_64 hpack-0.28.2
2018-08-05 02:39:01.717724: [debug] Checking for project config at: 
/Users/bryandunphy/Development/Haskell/helloworld/stack.yaml
@(src/Stack/Config.hs:850:9)
2018-08-05 02:39:01.718169: [debug] Loading project config file stack.yaml
@(src/Stack/Config.hs:876:13)
2018-08-05 02:39:01.743051: [debug] Decoding build plan from: 
/Users/bryandunphy/.stack/build-plan/lts-12.4.yaml
@(src/Stack/Snapshot.hs:164:5)
2018-08-05 02:39:01.743118: [debug] Trying to decode 
/Users/bryandunphy/.stack/build-plan-cache/lts-12.4.cache
@(src/Stack/Snapshot.hs:156:32)
2018-08-05 02:39:01.756391: [debug] Success decoding 
/Users/bryandunphy/.stack/build-plan-cache/lts-12.4.cache
@(src/Stack/Snapshot.hs:156:32)
2018-08-05 02:39:01.756776: [debug] Potential GHC builds: standard
@(src/Stack/Setup.hs:632:9)
2018-08-05 02:39:01.756845: [debug] Found already installed GHC builds: 
@(src/Stack/Setup.hs:458:13)
2018-08-05 02:39:02.037408: [debug] Trying to setup GHC build: standard
@(src/Stack/Setup.hs:956:9)
2018-08-05 02:39:02.037494: [info] Preparing to install GHC to an isolated 
location.
@(src/Stack/Setup.hs:890:5)
2018-08-05 02:39:02.037561: [info] This will not interfere with any 
system-level installation.
@(src/Stack/Setup.hs:899:5)
2018-08-05 02:39:02.038081: [debug] Downloading from 
https://github.com/commercialhaskell/ghc/releases/download/ghc-8.4.3-release/ghc-8.4.3-x86_64-apple-darwin.tar.bz2
 to /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2 ...
@(src/Stack/Setup.hs:1525:5)
2018-08-05 02:39:02.038263: [debug] Will check against sha1 hash: 
4509e4c1084b8b180075141a34a893c84697feba
@(src/Stack/Setup.hs:1538:13)
2018-08-05 02:39:02.038451: [debug] Will check against sha256 hash: 
769456a7e4a7f22731834d415ea5687f620581cd83c590cc06fdb2ae2806c40c
@(src/Stack/Setup.hs:1538:13)
2018-08-05 02:39:03.428209: [info] Already downloaded.
@(src/Stack/Setup.hs:1557:14)
2018-08-05 02:39:03.989497: [debug] menv = fromList 
[("Apple_PubSub_Socket_Render","/private/tmp/com.apple.launchd.0wVwrywSKG/Render"),("HOME","/Users/bryandunphy"),("LANG","en_US.UTF-8"),("LOGNAME","bryandunphy"),("PATH","/Users/bryandunphy/.local/bin:/Users/bryandunphy/Library/Haskell/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands"),("PWD","/Users/bryandunphy/Development/Haskell/helloworld"),("SHELL","/bin/bash"),("SHLVL","1"),("SSH_AUTH_SOCK","/private/tmp/com.apple.launchd.bBcd2wMPVu/Listeners"),("TERM","xterm-256color"),("TERM_PROGRAM","Apple_Terminal"),("TERM_PROGRAM_VERSION","404"),("TERM_SESSION_ID","DF9E8089-2CEF-4542-978C-D0D0482347F4"),("TMPDIR","/var/folders/rj/0sbf7mxx0_n_31x9wbn5rtw4gn/T/"),("USER","bryandunphy"),("XPC_FLAGS","0x0"),("XPC_SERVICE_NAME","0"),("_","/usr/local/bin/stack"),("__CF_USER_TEXT_ENCODING","0x1F5:0x0:0x0")]
@(src/Stack/Setup.hs:1067:5)
2018-08-05 02:39:03.989943: [debug] ziptool: bzip2
@(src/Stack/Setup.hs:1085:5)
2018-08-05 02:39:03.990003: [debug] make: make
@(src/Stack/Setup.hs:1086:5)
2018-08-05 02:39:03.990032: [debug] tar: tar
@(src/Stack/Setup.hs:1087:5)
2018-08-05 02:39:03.990098: [debug] Unpacking 
/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
@(src/Stack/Setup.hs:1123:5)
2018-08-05 02:39:03.990269: [debug] Run process within 
/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/: /usr/bin/tar jxf 
/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
@(src/Stack/Prelude.hs:96:3)
2018-08-05 02:39:46.364322: [debug] Process finished in 42374ms: /usr/bin/tar 
jxf /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.tar.bz2
@(src/Stack/Prelude.hs:96:3)
2018-08-05 02:39:46.364798: [debug] Run process within 
/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/: 
/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/configure
 --prefix=/Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3/
@(src/Stack/Prelude.hs:96:3)
2018-08-05 02:39:46.828217: [debug] checking build system type... 
x86_64-apple-darwin17.7.0
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.828559: [debug] checking host system type... 
x86_64-apple-darwin17.7.0
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.828977: [debug] checking target system type... 
x86_64-apple-darwin17.7.0
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.829568: [debug] Build platform inferred as: 
x86_64-apple-darwin
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.839724: [debug] Host platform inferred as: 
x86_64-apple-darwin
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.849679: [debug] Target platform inferred as: 
x86_64-apple-darwin
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.911401: [debug] GHC build  : x86_64-apple-darwin
@(src/Stack/Setup.hs:1097:54)
2018-08-05 02:39:46.911524: [debug] GHC host   : 

Re: stack setup ExitFailure 2 installing ghc os Mac OS High Sierra

2018-08-05 Thread Michael Snoyman
Please rerun with --verbose to get more information on how it's failing.

On Sun, Aug 5, 2018, 12:54 AM Bryan Dunphy  wrote:

>  stack --version
>
> Version 1.7.1, Git revision 681c800873816c022739ca7ed14755e85a579565 (5807
> commits) x86_64 hpack-0.28.2
>
>
>
> message is:
>
>
> stack build
>
> Preparing to install GHC to an isolated location.
>
> This will not interfere with any system-level installation.
>
> Already downloaded.
>
> Installing GHC ...
>   Received ExitFailure 2 when running
>
> Raw command: /usr/bin/make install
>
> Run from:
> /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/
>
>
>
> This happens EVERY TIME I try to run "stack build" or "stack setup". How
> do I fix it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "haskell-stack" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to haskell-stack+unsubscr...@googlegroups.com.
> To post to this group, send email to haskell-stack@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/haskell-stack/33f648fa-fc00-427c-a805-1c273b4ffde9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to haskell-stack+unsubscr...@googlegroups.com.
To post to this group, send email to haskell-stack@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/haskell-stack/CAKT9ecNSFz7sbpfCzKR-z%2BRio9uxOPzmNy9s2wrMRMMfSysBYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.