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 <b.dunphy....@gmail.com> 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 <b.dunphy....@gmail.com> 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_31x9wbn5rtw40000gn/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 : x86_64-apple-darwin > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.911641: [debug] GHC target : x86_64-apple-darwin > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.911688: [debug] LLVM target: x86_64-apple-darwin > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.920853: [debug] checking for path to top of build > tree... > /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3 > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.921531: [debug] checking for perl... /usr/bin/perl > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.957139: [debug] checking for a BSD-compatible > install... /usr/bin/install -c > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.958181: [debug] checking for gfind... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.958657: [debug] checking for find... /usr/bin/find > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.986325: [debug] checking whether ln -s works... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:46.987240: [debug] checking for gsed... sed > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.440242: [debug] checking XCode version... 9.4.1 > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.448446: [debug] configure: XCode version component 1: > 9 > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.448590: [debug] configure: XCode version component 2: > 4 > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.449328: [debug] checking for gcc... gcc > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.717543: [debug] checking whether the C compiler > works... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.717775: [debug] checking for C compiler default > output file name... a.out > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.775203: [debug] checking for suffix of executables... > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.857670: [debug] checking whether we are cross > compiling... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.912230: [debug] checking for suffix of object > files... o > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:47.961780: [debug] checking whether we are using the GNU > C compiler... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.008319: [debug] checking whether gcc accepts -g... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.084755: [debug] checking for gcc option to accept ISO > C89... none needed > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.196054: [debug] checking how to run the C > preprocessor... gcc -E > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.414129: [debug] checking for gcc option to accept ISO > C99... none needed > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.495898: [debug] checking for gcc option to accept ISO > C99... none needed > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.577256: [debug] checking for gcc option to accept ISO > C99... none needed > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.580191: [debug] checking for -ld.lld... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.581026: [debug] checking for ld.lld... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.581667: [debug] checking for -ld.gold... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.582313: [debug] checking for ld.gold... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.582954: [debug] checking for -ld... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.583402: [debug] checking for ld... ld > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.601721: [debug] ld: unknown option: --version > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.602233: [debug] configure: unknown linker version > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.602303: [debug] configure: unable to convince 'gcc' > to use linker 'ld' > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.603116: [debug] checking for -ld... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.603573: [debug] checking for ld... ld > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.604390: [debug] > /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/configure: > line 5423: $: command not found > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.613427: [debug] checking whether ld is GNU ld... NO > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.655424: [debug] checking whether ld understands > --build-id... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.704475: [debug] checking whether ld understands > -no_compact_unwind... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.796263: [debug] checking whether ld understands > -filelist... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.797184: [debug] checking for -strip... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.798145: [debug] checking for strip... strip > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.799150: [debug] checking for llc-5.0... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.799936: [debug] checking for llc... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.801065: [debug] checking for opt-5.0... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.801833: [debug] checking for opt... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.837439: [debug] checking version of gcc... 9.1.0 > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.879691: [debug] checking whether GCC supports > -no-pie... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.884082: [debug] checking for extra options to pass > gcc when compiling via C... -fwrapv -fno-builtin > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.923858: [debug] checking Setting up CFLAGS, LDFLAGS, > IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:48.970917: [debug] checking Setting up > CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, > CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.009940: [debug] checking Setting up > CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, > CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.044181: [debug] checking Setting up > CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, > CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.092469: [debug] checking for > .subsections_via_symbols... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.133655: [debug] checking whether your assembler > supports .ident directive... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.192272: [debug] checking for GNU non-executable stack > support... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.348679: [debug] checking for grep that handles long > lines and -e... /usr/bin/grep > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.352254: [debug] checking for egrep... /usr/bin/grep -E > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.630857: [debug] checking for ANSI C header files... > yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.696810: [debug] checking for sys/types.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.773082: [debug] checking for sys/stat.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.850212: [debug] checking for stdlib.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:49.927943: [debug] checking for string.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.008255: [debug] checking for memory.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.074850: [debug] checking for strings.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.146761: [debug] checking for inttypes.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.224774: [debug] checking for stdint.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.304690: [debug] checking for unistd.h... yes > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.415714: [debug] checking size of void *... 8 > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.424471: [debug] checking for -ar... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.425039: [debug] checking for ar... ar > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.449524: [debug] checking whether ar is GNU ar... no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.497272: [debug] checking for ar arguments... qcls > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.523907: [debug] checking whether ar supports @file... > no > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.527828: [debug] checking for ranlib... ranlib > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:50.574977: [debug] configure: creating ./config.status > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.095834: [debug] config.status: creating settings > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.120541: [debug] config.status: creating mk/config.mk > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.158235: [debug] config.status: creating mk/install.mk > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.246794: [debug] > **************************************************** > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.246932: [debug] Configuration done, ready to 'make > install' > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.247017: [debug] (see README and INSTALL files for > more info.) > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.247327: [debug] > **************************************************** > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.286527: [debug] Process finished in 4922ms: > /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:51.286843: [debug] Run process within > /Users/bryandunphy/.stack/programs/x86_64-osx/ghc-8.4.3.temp/ghc-8.4.3/: > /usr/bin/make install > @(src/Stack/Prelude.hs:96:3) > 2018-08-05 02:39:51.317496: [debug] /Applications/Xcode and > Accessories/Xcode.app/Contents/Developer/usr/bin/make --no-print-directory > -f ghc.mk install BINDIST=YES NO_INCLUDE_DEPS=YES > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.317810: [debug] make: /Applications/Xcode: No such > file or directory > @(src/Stack/Setup.hs:1097:54) > 2018-08-05 02:39:51.364393: [debug] make: *** [install] Error 1 > @(src/Stack/Setup.hs:1097:54) > 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/ > > On Aug 5, 2018, at 02:00:08, Michael Snoyman <mich...@snoyman.com> wrote: > > Please rerun with --verbose to get more information on how it's failing. > > On Sun, Aug 5, 2018, 12:54 AM Bryan Dunphy <b.dunphy....@gmail.com> 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/ >> >> >> -- 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/CAKT9ecNCGmWRF5zkpPxZTKZHOXNxTi_u5rWOhvu7GKsrXJ-gYA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.