Created
June 30, 2019 05:04
-
-
Save lauzi/ec67de88df4011f8e178ff5b0da542b9 to your computer and use it in GitHub Desktop.
stack setup fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯ # MacOS Mojave 10.14.4 | |
❯ rm -rf ~/.stack | |
❯ PATH=$HOME/.local/bin:/usr/bin:/bin:/usr/sbin stack setup -v | |
Version 2.1.1, Git revision f612ea85316bbc327a64e4ad8d9f0b150dc12d4b (7648 commits) x86_64 hpack-0.31.2 | |
2019-06-30 12:52:45.476934: [debug] Checking for project config at: /Users/lauzi/Projects/check-amazon/stack.yaml | |
2019-06-30 12:52:45.477196: [debug] Loading project config file stack.yaml | |
2019-06-30 12:52:45.499053: [debug] Migration executed: CREATE TABLE "config_cache"("id" INTEGER PRIMARY KEY,"directory" VARCHAR NOT NULL DEFAULT (hex(randomblob(16))),"type" VARCHAR NOT NULL,"pkg_src" VARCHAR NOT NULL,"active" BOOLEAN NOT NULL,"path_env_var" VARCHAR NOT NULL,"haddock" BOOLEAN NOT NULL DEFAULT 0,CONSTRAINT "unique_config_cache" UNIQUE ("directory","type")) | |
2019-06-30 12:52:45.499201: [debug] Migration executed: CREATE TABLE "config_cache_dir_option"("id" INTEGER PRIMARY KEY,"config_cache_id" INTEGER NOT NULL REFERENCES "config_cache","index" INTEGER NOT NULL,"option" VARCHAR NOT NULL,CONSTRAINT "unique_config_cache_dir_option" UNIQUE ("config_cache_id","index")) | |
2019-06-30 12:52:45.499440: [debug] Migration executed: CREATE TABLE "config_cache_no_dir_option"("id" INTEGER PRIMARY KEY,"config_cache_id" INTEGER NOT NULL REFERENCES "config_cache","index" INTEGER NOT NULL,"option" VARCHAR NOT NULL,CONSTRAINT "unique_config_cache_no_dir_option" UNIQUE ("config_cache_id","index")) | |
2019-06-30 12:52:45.499623: [debug] Migration executed: CREATE TABLE "config_cache_dep"("id" INTEGER PRIMARY KEY,"config_cache_id" INTEGER NOT NULL REFERENCES "config_cache","ghc_pkg_id" VARCHAR NOT NULL,CONSTRAINT "unique_config_cache_dep" UNIQUE ("config_cache_id","ghc_pkg_id")) | |
2019-06-30 12:52:45.499691: [debug] Migration executed: CREATE TABLE "config_cache_component"("id" INTEGER PRIMARY KEY,"config_cache_id" INTEGER NOT NULL REFERENCES "config_cache","component" BLOB NOT NULL,CONSTRAINT "unique_config_cache_component" UNIQUE ("config_cache_id","component")) | |
2019-06-30 12:52:45.499761: [debug] Migration executed: CREATE TABLE "precompiled_cache"("id" INTEGER PRIMARY KEY,"platform_ghc_dir" VARCHAR NOT NULL DEFAULT (hex(randomblob(16))),"compiler" VARCHAR NOT NULL,"cabal_version" VARCHAR NOT NULL,"package_key" VARCHAR NOT NULL,"options_hash" BLOB NOT NULL,"haddock" BOOLEAN NOT NULL DEFAULT 0,"library" VARCHAR NULL,CONSTRAINT "unique_precompiled_cache" UNIQUE ("platform_ghc_dir","compiler","cabal_version","package_key","options_hash","haddock")) | |
2019-06-30 12:52:45.499829: [debug] Migration executed: CREATE TABLE "precompiled_cache_sub_lib"("id" INTEGER PRIMARY KEY,"precompiled_cache_id" INTEGER NOT NULL REFERENCES "precompiled_cache","sub_lib" VARCHAR NOT NULL,CONSTRAINT "unique_precompiled_cache_sub_lib" UNIQUE ("precompiled_cache_id","sub_lib")) | |
2019-06-30 12:52:45.502381: [debug] Migration executed: CREATE TABLE "precompiled_cache_exe"("id" INTEGER PRIMARY KEY,"precompiled_cache_id" INTEGER NOT NULL REFERENCES "precompiled_cache","exe" VARCHAR NOT NULL,CONSTRAINT "unique_precompiled_cache_exe" UNIQUE ("precompiled_cache_id","exe")) | |
2019-06-30 12:52:45.502464: [debug] Migration executed: CREATE TABLE "docker_image_exe_cache"("id" INTEGER PRIMARY KEY,"image_hash" VARCHAR NOT NULL,"exe_path" VARCHAR NOT NULL,"exe_timestamp" TIMESTAMP NOT NULL,"compatible" BOOLEAN NOT NULL,CONSTRAINT "docker_image_exe_cache_unique" UNIQUE ("image_hash","exe_path","exe_timestamp")) | |
2019-06-30 12:52:45.502596: [debug] Migration executed: CREATE TABLE "compiler_cache"("id" INTEGER PRIMARY KEY,"actual_version" VARCHAR NOT NULL,"arch" VARCHAR NOT NULL,"ghc_path" VARCHAR NOT NULL,"ghc_size" INTEGER NOT NULL,"ghc_modified" INTEGER NOT NULL,"ghc_pkg_path" VARCHAR NOT NULL,"runghc_path" VARCHAR NOT NULL,"haddock_path" VARCHAR NOT NULL,"cabal_version" VARCHAR NOT NULL,"global_db" VARCHAR NOT NULL,"global_db_cache_size" INTEGER NOT NULL,"global_db_cache_modified" INTEGER NOT NULL,"info" BLOB NOT NULL,"global_dump" VARCHAR NOT NULL,CONSTRAINT "unique_compiler_info" UNIQUE ("ghc_path")) | |
2019-06-30 12:52:45.502654: [debug] Migration executed: CREATE TABLE "last_performed"("id" INTEGER PRIMARY KEY,"action" INTEGER NOT NULL,"timestamp" TIMESTAMP NOT NULL,CONSTRAINT "unique_action" UNIQUE ("action")) | |
2019-06-30 12:52:45.503533: [debug] SELECT COUNT(*) FROM "last_performed" WHERE ("action"=?) AND ("timestamp">=?); [PersistInt64 1,PersistUTCTime 2019-06-29 04:52:45.50349 UTC] | |
2019-06-30 12:52:45.506222: [debug] SELECT "id","action","timestamp" FROM "last_performed" WHERE "action"=?; [PersistInt64 1] | |
2019-06-30 12:52:45.507000: [debug] INSERT INTO "last_performed"("action","timestamp") VALUES(?,?); [PersistInt64 1,PersistUTCTime 2019-06-30 04:52:45.50349 UTC] | |
2019-06-30 12:52:45.507699: [debug] SELECT "id" FROM "last_performed" WHERE _ROWID_=last_insert_rowid(); [] | |
2019-06-30 12:52:45.508755: [debug] Using package location completions from a lock file | |
2019-06-30 12:52:46.595981: [debug] Asking for a supported GHC version | |
2019-06-30 12:52:46.596059: [debug] Installed tools: | |
- | |
2019-06-30 12:52:46.596087: [debug] Potential GHC builds: standard | |
2019-06-30 12:52:46.596112: [debug] Found already installed GHC builds: | |
2019-06-30 12:52:46.665956: [debug] Trying to setup GHC build: standard | |
2019-06-30 12:52:46.666025: [info] Preparing to install GHC to an isolated location. | |
2019-06-30 12:52:46.666055: [info] This will not interfere with any system-level installation. | |
2019-06-30 12:52:46.666392: [debug] Downloading from https://github.com/commercialhaskell/ghc/releases/download/ghc-8.2.2-release/ghc-8.2.2-x86_64-apple-darwin.tar.bz2 to /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.tar.bz2 ... | |
2019-06-30 12:52:46.666486: [debug] Will check against sha1 hash: 2449769c9e2791f65d666b7063778f0b22dea665 | |
2019-06-30 12:52:46.666530: [debug] Will check against sha256 hash: 7968bb7fbf454cdef47a36cb26621c8b9d42576e280500a5484778312d56b98d | |
2019-06-30 12:52:46.666589: [debug] Downloading /commercialhaskell/ghc/releases/download/ghc-8.2.2-release/ghc-8.2.2-x86_64-apple-darwin.tar.bz2 | |
2019-06-30 12:53:19.291125: [info] Downloaded ghc-8.2.2. | |
2019-06-30 12:53:19.291269: [debug] menv = fromList [("Apple_PubSub_Socket_Render","/private/tmp/com.apple.launchd.0WqDTSRZIf/Render"),("BROWSER","open"),("COLORFGBG","15;0"),("COLORTERM","truecolor"),("COMMAND_MODE","unix2003"),("DISPLAY","/private/tmp/com.apple.launchd.keECU3ptax/org.macosforge.xquartz:0"),("EDITOR","vim"),("GREP_COLOR","37;45"),("GREP_COLORS","mt=37;45"),("HOME","/Users/lauzi"),("ITERM_PROFILE","Default"),("ITERM_SESSION_ID","w0t2p0:3DBF295D-048C-46B2-8ECC-807FA7C7EB6D"),("LANG","en_US.UTF-8"),("LC_CTYPE","UTF-8"),("LESS","-F -g -i -M -R -S -w -X -z-4"),("LESS_TERMCAP_mb","\ESC[01;31m"),("LESS_TERMCAP_md","\ESC[01;31m"),("LESS_TERMCAP_me","\ESC[0m"),("LESS_TERMCAP_se","\ESC[0m"),("LESS_TERMCAP_so","\ESC[00;47;30m"),("LESS_TERMCAP_ue","\ESC[0m"),("LESS_TERMCAP_us","\ESC[01;32m"),("LOGNAME","lauzi"),("LSCOLORS","exfxcxdxbxGxDxabagacad"),("LS_COLORS","di=34:ln=35:so=32:pi=33:ex=31:bd=36;01:cd=33;01:su=31;40;07:sg=36;40;07:tw=32;40;07:ow=33;40;07:"),("OLDPWD","/Users/lauzi"),("PAGER","less"),("PATH","/Users/lauzi/.local/bin:/usr/bin:/bin:/usr/sbin"),("PROMPT_EOL_MARK",""),("PWD","/Users/lauzi/Projects/check-amazon"),("SECURITYSESSIONID","186a7"),("SHELL","/usr/local/bin/zsh"),("SHLVL","1"),("SSH_AUTH_SOCK","/private/tmp/com.apple.launchd.3pxEkLwoUA/Listeners"),("TERM","xterm-256color"),("TERM_PROGRAM","iTerm.app"),("TERM_PROGRAM_VERSION","3.2.9"),("TERM_SESSION_ID","w0t2p0:3DBF295D-048C-46B2-8ECC-807FA7C7EB6D"),("TMPDIR","/var/folders/9_/jvhhkcxx73z0v1l18f5zmmpm0000gp/T/"),("USER","lauzi"),("VIRTUAL_ENV_DISABLE_PROMPT","12"),("VISUAL","emacs"),("XPC_FLAGS","0x0"),("XPC_SERVICE_NAME","0"),("_","/Users/lauzi/.local/bin/stack"),("__CF_USER_TEXT_ENCODING","0x1F6:0x1:0xE")] | |
2019-06-30 12:53:19.291554: [debug] ziptool: bzip2 | |
2019-06-30 12:53:19.291585: [debug] make: make | |
2019-06-30 12:53:19.291605: [debug] tar: tar | |
2019-06-30 12:53:19.291636: [debug] Unpacking /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.tar.bz2 | |
2019-06-30 12:53:19.291742: [debug] Run process within /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/: /usr/bin/tar jxf /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.tar.bz2 | |
2019-06-30 12:53:40.433640: [debug] Process finished in 21142ms: /usr/bin/tar jxf /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.tar.bz2 | |
2019-06-30 12:53:40.433918: [debug] Run process within /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2/: /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2/configure --prefix=/Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2/ | |
2019-06-30 12:53:40.624494: [debug] checking build system type... x86_64-apple-darwin18.5.0 | |
2019-06-30 12:53:40.624666: [debug] checking host system type... x86_64-apple-darwin18.5.0 | |
2019-06-30 12:53:40.624891: [debug] checking target system type... x86_64-apple-darwin18.5.0 | |
2019-06-30 12:53:40.625183: [debug] Build platform inferred as: x86_64-apple-darwin | |
2019-06-30 12:53:40.631205: [debug] Host platform inferred as: x86_64-apple-darwin | |
2019-06-30 12:53:40.637298: [debug] Target platform inferred as: x86_64-apple-darwin | |
2019-06-30 12:53:40.675483: [debug] GHC build : x86_64-apple-darwin | |
2019-06-30 12:53:40.675541: [debug] GHC host : x86_64-apple-darwin | |
2019-06-30 12:53:40.675568: [debug] GHC target : x86_64-apple-darwin | |
2019-06-30 12:53:40.678531: [debug] checking for path to top of build tree... /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2 | |
2019-06-30 12:53:40.678896: [debug] checking for perl... /usr/bin/perl | |
2019-06-30 12:53:40.697986: [debug] checking for a BSD-compatible install... /usr/bin/install -c | |
2019-06-30 12:53:40.698085: [debug] checking whether ln -s works... yes | |
2019-06-30 12:53:40.698503: [debug] checking for gsed... sed | |
2019-06-30 12:53:40.869903: [debug] checking XCode version... 10.2.1 | |
2019-06-30 12:53:40.874174: [debug] configure: XCode version component 1: 10 | |
2019-06-30 12:53:40.874219: [debug] configure: XCode version component 2: 2 | |
2019-06-30 12:53:40.874708: [debug] checking for gcc... gcc | |
2019-06-30 12:53:41.012564: [debug] checking whether the C compiler works... yes | |
2019-06-30 12:53:41.012629: [debug] checking for C compiler default output file name... a.out | |
2019-06-30 12:53:41.057247: [debug] checking for suffix of executables... | |
2019-06-30 12:53:41.117473: [debug] checking whether we are cross compiling... no | |
2019-06-30 12:53:41.151283: [debug] checking for suffix of object files... o | |
2019-06-30 12:53:41.184246: [debug] checking whether we are using the GNU C compiler... yes | |
2019-06-30 12:53:41.219693: [debug] checking whether gcc accepts -g... yes | |
2019-06-30 12:53:41.274602: [debug] checking for gcc option to accept ISO C89... none needed | |
2019-06-30 12:53:41.299330: [debug] checking for llc-3.9... no | |
2019-06-30 12:53:41.299830: [debug] checking for llc... no | |
2019-06-30 12:53:41.300343: [debug] checking for opt-3.9... no | |
2019-06-30 12:53:41.300844: [debug] checking for opt... no | |
2019-06-30 12:53:41.328983: [debug] checking version of gcc... 10.0.1 | |
2019-06-30 12:53:41.329077: [debug] 9.0 | |
2019-06-30 12:53:41.357303: [debug] checking whether GCC supports -no-pie... yes | |
2019-06-30 12:53:41.423968: [debug] checking how to run the C preprocessor... gcc -E | |
2019-06-30 12:53:41.486013: [debug] checking for extra options to pass gcc when compiling via C... -fwrapv -fno-builtin | |
2019-06-30 12:53:41.547215: [debug] checking for gcc option to accept ISO C99... none needed | |
2019-06-30 12:53:41.602900: [debug] checking for gcc option to accept ISO C99... none needed | |
2019-06-30 12:53:41.655947: [debug] checking for gcc option to accept ISO C99... none needed | |
2019-06-30 12:53:41.682502: [debug] checking Setting up CFLAGS, LDFLAGS, IGNORE_LINKER_LD_FLAGS and CPPFLAGS... done | |
2019-06-30 12:53:41.718016: [debug] checking Setting up CONF_CC_OPTS_STAGE0, CONF_GCC_LINKER_OPTS_STAGE0, CONF_LD_LINKER_OPTS_STAGE0 and CONF_CPP_OPTS_STAGE0... done | |
2019-06-30 12:53:41.748505: [debug] checking Setting up CONF_CC_OPTS_STAGE1, CONF_GCC_LINKER_OPTS_STAGE1, CONF_LD_LINKER_OPTS_STAGE1 and CONF_CPP_OPTS_STAGE1... done | |
2019-06-30 12:53:41.781124: [debug] checking Setting up CONF_CC_OPTS_STAGE2, CONF_GCC_LINKER_OPTS_STAGE2, CONF_LD_LINKER_OPTS_STAGE2 and CONF_CPP_OPTS_STAGE2... done | |
2019-06-30 12:53:41.782426: [debug] checking for -ld.lld... no | |
2019-06-30 12:53:41.782679: [debug] checking for ld.lld... no | |
2019-06-30 12:53:41.782946: [debug] checking for -ld.gold... no | |
2019-06-30 12:53:41.783214: [debug] checking for ld.gold... no | |
2019-06-30 12:53:41.783473: [debug] checking for -ld... no | |
2019-06-30 12:53:41.783707: [debug] checking for ld... ld | |
2019-06-30 12:53:41.792667: [error] ld: unknown option: --version | |
2019-06-30 12:53:41.793147: [debug] configure: unknown linker version | |
2019-06-30 12:53:41.793198: [debug] configure: unable to convince 'gcc' to use linker 'ld' | |
2019-06-30 12:53:41.793509: [debug] checking for -ld... no | |
2019-06-30 12:53:41.793742: [debug] checking for ld... ld | |
2019-06-30 12:53:41.800678: [debug] checking whether ld is GNU ld... NO | |
2019-06-30 12:53:41.836928: [debug] checking whether ld understands --build-id... no | |
2019-06-30 12:53:41.872678: [debug] checking whether ld understands -no_compact_unwind... yes | |
2019-06-30 12:53:41.929444: [debug] checking whether ld understands -filelist... yes | |
2019-06-30 12:53:41.963705: [debug] checking for .subsections_via_symbols... yes | |
2019-06-30 12:53:42.008365: [debug] checking whether your assembler supports .ident directive... yes | |
2019-06-30 12:53:42.051456: [debug] checking for GNU non-executable stack support... no | |
2019-06-30 12:53:42.151450: [debug] checking for grep that handles long lines and -e... /usr/bin/grep | |
2019-06-30 12:53:42.153333: [debug] checking for egrep... /usr/bin/grep -E | |
2019-06-30 12:53:42.359473: [debug] checking for ANSI C header files... yes | |
2019-06-30 12:53:42.412552: [debug] checking for sys/types.h... yes | |
2019-06-30 12:53:42.471751: [debug] checking for sys/stat.h... yes | |
2019-06-30 12:53:42.532701: [debug] checking for stdlib.h... yes | |
2019-06-30 12:53:42.592291: [debug] checking for string.h... yes | |
2019-06-30 12:53:42.655705: [debug] checking for memory.h... yes | |
2019-06-30 12:53:42.717272: [debug] checking for strings.h... yes | |
2019-06-30 12:53:42.781823: [debug] checking for inttypes.h... yes | |
2019-06-30 12:53:42.842693: [debug] checking for stdint.h... yes | |
2019-06-30 12:53:42.907260: [debug] checking for unistd.h... yes | |
2019-06-30 12:53:42.997204: [debug] checking size of void *... 8 | |
2019-06-30 12:53:42.999134: [debug] checking for ar... /usr/bin/ar | |
2019-06-30 12:53:43.005509: [debug] checking whether /usr/bin/ar is GNU ar... no | |
2019-06-30 12:53:43.033294: [debug] checking for ar arguments... clqs | |
2019-06-30 12:53:43.052153: [debug] checking whether /usr/bin/ar supports @file... no | |
2019-06-30 12:53:43.056176: [debug] checking for ranlib... ranlib | |
2019-06-30 12:53:43.071372: [error] configure: WARNING: cache variable fp_cv_gcc_version contains a newline | |
2019-06-30 12:53:43.092512: [debug] configure: creating ./config.status | |
2019-06-30 12:53:43.229358: [debug] config.status: creating settings | |
2019-06-30 12:53:43.250943: [debug] config.status: creating mk/config.mk | |
2019-06-30 12:53:43.280763: [debug] config.status: creating mk/install.mk | |
2019-06-30 12:53:43.320789: [debug] **************************************************** | |
2019-06-30 12:53:43.320950: [debug] Configuration done, ready to 'make install' | |
2019-06-30 12:53:43.321019: [debug] (see README and INSTALL files for more info.) | |
2019-06-30 12:53:43.321075: [debug] **************************************************** | |
2019-06-30 12:53:43.331928: [error] configure: WARNING: cache variable fp_cv_gcc_version contains a newline | |
2019-06-30 12:53:43.353111: [debug] Process finished in 2919ms: /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2/configure --prefix=/Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2/ | |
2019-06-30 12:53:43.353537: [debug] Run process within /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2/: /usr/bin/make install | |
2019-06-30 12:53:43.360233: [error] mk/config.mk:533: *** missing separator. Stop. | |
2019-06-30 12:53:43.360442: [error] Received ExitFailure 2 when running | |
Raw command: /usr/bin/make install | |
Run from: /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2/ | |
2019-06-30 12:53:43.360530: [error] | |
Error: Error encountered while installing GHC with | |
make install | |
run in /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ghc-8.2.2/ | |
The following directories may now contain files, but won't be used by stack: | |
- /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2.temp/ | |
- /Users/lauzi/.stack/programs/x86_64-osx/ghc-8.2.2/ | |
For more information consider rerunning with --verbose flag | |
Installing GHC ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment