{"action":"created","issue":{"url":"https://api.github.com/repos/typelead/eta/issues/106","repository_url":"https://api.github.com/repos/typelead/eta","labels_url":"https://api.github.com/repos/typelead/eta/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/typelead/eta/issues/106/comments","events_url":"https://api.github.com/repos/typelead/eta/issues/106/events","html_url":"https://github.com/typelead/eta/issues/106","id":185087705,"number":106,"title":"Windows support","user":{"login":"alexbiehl","id":1876617,"avatar_url":"https://avatars.githubusercontent.com/u/1876617?v=3","gravatar_id":"","url":"https://api.github.com/users/alexbiehl","html_url":"https://github.com/alexbiehl","followers_url":"https://api.github.com/users/alexbiehl/followers","following_url":"https://api.github.com/users/alexbiehl/following{/other_user}","gists_url":"https://api.github.com/users/alexbiehl/gists{/gist_id}","starred_url":"https://api.github.com/users/alexbiehl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexbiehl/subscriptions","organizations_url":"https://api.github.com/users/alexbiehl/orgs","repos_url":"https://api.github.com/users/alexbiehl/repos","events_url":"https://api.github.com/users/alexbiehl/events{/privacy}","received_events_url":"https://api.github.com/users/alexbiehl/received_events","type":"User","site_admin":false},"labels":[{"id":354190564,"url":"https://api.github.com/repos/typelead/eta/labels/bug","name":"bug","color":"ee0701","default":true},{"id":381497835,"url":"https://api.github.com/repos/typelead/eta/labels/build","name":"build","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":23,"created_at":"2016-10-25T11:18:37Z","updated_at":"2016-12-06T13:55:49Z","closed_at":null,"body":"I am trying to bootstrap `eta` on Windows and `stack exec eta-build install` fails with \n\n```\nConfiguring ghc-prim-0.4.0.0...\n# epm (for install)\nBuilding ghc-prim-0.4.0.0...\nPreprocessing library ghc-prim-0.4.0.0...\neta.exe: could not execute: C:\\Users\\abiehl\\AppData\\Roaming\\eta/../mingw/bin/gcc.exe\nError when running Shake build system:\n* install\nuser error (Development.Shake.cmd, system command failed\nCommand: epm build\nCurrent directory: C:\\Users\\abiehl\\git\\eta\\libraries\\ghc-prim\nExit code: 1\nStderr:\neta.exe: could not execute: C:\\Users\\abiehl\\AppData\\Roaming\\eta/../mingw/bin/gcc.exe\n)\n```\n\nSomehow it thinks a `gcc` is at `C:\\Users\\abiehl\\AppData\\Roaming\\eta/../mingw/bin/gcc.exe` which is of course not right! (a good `gcc` is on path through `stack exec`). \n\nTrying to manually build `ghc-prim` with \n`stack exec -- epm build --eta-options=\" -v4 -pgmP C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin\\gcc\"`\n\n```\nBuilding ghc-prim-0.4.0.0...\nPreprocessing library ghc-prim-0.4.0.0...\nThe ETA programming language compiler, Version 0.0.1 booted by GHC version 7.10.3\nwired-in package ghc-prim not found.\nwired-in package integer not found.\nwired-in package base not found.\nwired-in package rts mapped to rts-0.1.0.0-dd60ce55e5e6e7d613c6ae1fe388a75d\nwired-in package template-haskell not found.\nwired-in package ghc not found.\nwired-in package dph-seq not found.\nwired-in package dph-par not found.\nE   rts-0.1.0.0-dd60ce55e5e6e7d613c6ae1fe388a75d\nHsc static flags:\nwired-in package ghc-prim not found.\nwired-in package integer not found.\nwired-in package base not found.\nwired-in package rts mapped to rts-0.1.0.0-dd60ce55e5e6e7d613c6ae1fe388a75d\nwired-in package template-haskell not found.\nwired-in package ghc not found.\nwired-in package dph-seq not found.\nwired-in package dph-par not found.\n*** Chasing dependencies:\nChasing modules from: *GHC.CString,*GHC.Classes,*GHC.Magic,*GHC.Tuple,*GHC.Types,*GHC.JArray\nRunning the pipeline\nRunning phase Cpp HsSrcFile\nRunning phase HsPp HsSrcFile\nRunning the pipeline\nRunning phase Cpp HsSrcFile\nRunning phase HsPp HsSrcFile\nRunning the pipeline\nRunning phase Cpp HsSrcFile\nRunning phase HsPp HsSrcFile\nRunning the pipeline\nRunning phase Cpp HsSrcFile\nRunning phase HsPp HsSrcFile\nRunning the pipeline\nRunning phase Cpp HsSrcFile\nRunning phase HsPp HsSrcFile\nRunning the pipeline\nRunning phase Cpp HsSrcFile\nCreated temporary directory: C:\\Temp\\ghc13676_0\n*** C pre-processor:\n\"C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin\\gcc\" \"-include\" \"dist\\build\\autogen\\cabal_macros.h\" \"-v\" \"-I\" \"dist\\build\" \"-I\" \"dist\\build\" \"-I\" \"dist\\build\\autogen\" \"-I\" \"dist\\build\" \"-D__GLASGOW_HASKELL__=710\" \"-D__ETA_VERSION__=000\"\n\"-include\" \"C:\\Users\\abiehl\\AppData\\Roaming\\eta\\include\\ghcversion.h\" \"-D__GLASGOW_HASKELL_TH__=NO\" \"-D__SSE__=1\" \"-D__SSE2__=1\" \"-x\" \"assembler-with-cpp\" \".\\GHC\\JArray.hs\" \"-o\" \"C:\\Temp\\ghc13676_0\\ghc_1.hscpp\"\nUsing built-in specs.\nCOLLECT_GCC=C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin/realgcc.exe\nCOLLECT_LTO_WRAPPER=C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/lto-wrapper.exe\nTarget: x86_64-w64-mingw32\nConfigured with: ../gcc-5.2.0/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local --build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --target=x86_64-w64-mingw32 --with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include --libexecdir=/mingw64/lib --w\nith-gxx-include-dir=/mingw64/include/c++/5.2.0 --enable-bootstrap --with-arch=x86-64 --with-tune=generic --enable-languages=c,lto,c++,objc,obj-c++,fortran,ada --enable-shared --enable-static --enable-libatomic --enable-threads=posix --enable-graphite --enable-fully-dynam\nic-string --enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug --enable-version-specific-runtime-libs --disable-isl-version-check --enable-lto --enable-libgomp --disable-multilib --enable-checking=release --disable-rpath --disable-win32-registry\n--disable-nls --disable-werror --disable-symvers --with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64 --with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion='Rev3, Built by MSYS2 project' --with-bugurl=http://sourceforge.net/projects/msys2 --wit\nh-gnu-as --with-gnu-ld\nThread model: posix\ngcc version 5.2.0 (Rev3, Built by MSYS2 project)\nCOLLECT_GCC_OPTIONS='-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin' '-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin/../lib' '-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\gh\nc-7.10.3\\mingw\\bin/../lib/gcc/x86_64-w64-mingw32/5.2.0' '-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin/../libexec/gcc/x86_64-w64-mingw32/5.2.0' '-include' 'dist\\build\\autogen\\cabal_macros.h' '-v' '-I' 'dist\\build' '-I' 'dist\\build'\n '-I' 'dist\\build\\autogen' '-I' 'dist\\build' '-D' '__GLASGOW_HASKELL__=710' '-D' '__ETA_VERSION__=000' '-include' 'C:\\Users\\abiehl\\AppData\\Roaming\\eta\\include\\ghcversion.h' '-D' '__GLASGOW_HASKELL_TH__=NO' '-D' '__SSE__=1' '-D' '__SSE2__=1' '-o' 'C:\\Temp\\ghc13676_0\\ghc_1\n.hscpp' '-mtune=generic' '-march=x86-64'\n C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/cc1.exe -E -lang-asm -quiet -v -I dist\\build -I dist\\build -I dist\\build\\autogen -I dist\\build -iprefix C:/Users/abiehl/AppData/Local/Programs/stack/x86_\n64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/ -isystem C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/include -isystem C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows\n/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/include-fixed -D_REENTRANT -D __GLASGOW_HASKELL__=710 -D __ETA_VERSION__=000 -D __GLASGOW_HASKELL_TH__=NO -D __SSE__=1 -D __SSE2__=1 -include dist\\build\\autogen\\cabal_macros.h -include C:\\Users\\abiehl\\AppData\\Roam\ning\\eta\\include\\ghcversion.h .\\GHC\\JArray.hs -mtune=generic -march=x86-64 -fno-directives-only -o C:\\Temp\\ccGrlwBj.s\nignoring duplicate directory \"C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/include\"\nignoring duplicate directory \"C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/include-fixed\"\nignoring duplicate directory \"C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/5.2.0/include\"\nignoring nonexistent directory \"D:/develop/msys64/mingw64/include\"\nignoring nonexistent directory \"/mingw64/include\"\nignoring duplicate directory \"C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/5.2.0/include-fixed\"\nignoring duplicate directory \"C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/lib/gcc/../../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/include\"\nignoring nonexistent directory \"D:/develop/msys64/mingw64/x86_64-w64-mingw32/include\"\nignoring duplicate directory \"dist\\build\"\nignoring duplicate directory \"dist\\build\"\n#include \"...\" search starts here:\n#include <...> search starts here:\n dist\\build\n dist\\build\\autogen\n C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/include\n C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/include-fixed\n C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../include\n C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/../lib/gcc/x86_64-w64-mingw32/5.2.0/../../../../x86_64-w64-mingw32/include\nEnd of search list.\nCOLLECT_GCC_OPTIONS='-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin' '-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin/../lib' '-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\gh\nc-7.10.3\\mingw\\bin/../lib/gcc/x86_64-w64-mingw32/5.2.0' '-B' 'C:\\Users\\abiehl\\AppData\\Local\\Programs\\stack\\x86_64-windows\\ghc-7.10.3\\mingw\\bin/../libexec/gcc/x86_64-w64-mingw32/5.2.0' '-include' 'dist\\build\\autogen\\cabal_macros.h' '-v' '-I' 'dist\\build' '-I' 'dist\\build'\n '-I' 'dist\\build\\autogen' '-I' 'dist\\build' '-D' '__GLASGOW_HASKELL__=710' '-D' '__ETA_VERSION__=000' '-include' 'C:\\Users\\abiehl\\AppData\\Roaming\\eta\\include\\ghcversion.h' '-D' '__GLASGOW_HASKELL_TH__=NO' '-D' '__SSE__=1' '-D' '__SSE2__=1' '-o' 'C:\\Temp\\ghc13676_0\\ghc_1\n.hscpp' '-mtune=generic' '-march=x86-64'\n C:/Users/abiehl/AppData/Local/Programs/stack/x86_64-windows/ghc-7.10.3/mingw/bin/as.exe -v -I dist\\build -I dist\\build -I dist\\build\\autogen -I dist\\build -o C:\\Temp\\ccopr6Jw.o C:\\Temp\\ccGrlwBj.s\nGNU assembler version 2.25.1 (x86_64-w64-mingw32) using BFD version (GNU Binutils) 2.25.1\n.\\GHC\\JArray.hs: Assembler messages:\n\nGHC\\JArray.hs:1:0:\n     Error: junk at end of line, first unrecognized character is `{'\n\nGHC\\JArray.hs:2:0:\n     Error: no such instruction: `ghcforeignimportprim '\n\nGHC\\JArray.hs:3:0:\n     Error: junk at end of line, first unrecognized character is `{'\n\nGHC\\JArray.hs:4:0:  Error: no such instruction: `module GHC.JArray'\n\nGHC\\JArray.hs:5:0:\n     Error: junk at end of line, first unrecognized character is `('\n\nGHC\\JArray.hs:6:0:  Error: no such instruction: `jshortarray'\n\nGHC\\JArray.hs:7:0:  Error: no such instruction: `jchararray'\n\nGHC\\JArray.hs:8:0:  Error: no such instruction: `intarray'\n\nGHC\\JArray.hs:9:0:  Error: no such instruction: `jlongarray'\n\nGHC\\JArray.hs:10:0:  Error: no such instruction: `floatarray'\n\nGHC\\JArray.hs:11:0:  Error: no such instruction: `doublearray'\n\nGHC\\JArray.hs:12:0:  Error: no such instruction: `objectarray'\n\nGHC\\JArray.hs:13:0:  Error: no such instruction: `objectarrayat'\n\nGHC\\JArray.hs:14:0:  Error: no such instruction: `objectarrayset'\n\nGHC\\JArray.hs:15:0:\n     Error: junk at end of line, first unrecognized character is `)'\n\nGHC\\JArray.hs:17:0:  Error: no such instruction: `import GHC.Prim'\n\nGHC\\JArray.hs:18:0:  Error: no such instruction: `import GHC.Types'\n\nGHC\\JArray.hs:20:0:  Error: no such instruction: `type JByteArray'\n\nGHC\\JArray.hs:21:0:  Error: no such instruction: `type JShortArray'\n\nGHC\\JArray.hs:22:0:  Error: no such instruction: `type JCharArray'\n\nGHC\\JArray.hs:23:0:  Error: no such instruction: `type IntArray'\n\nGHC\\JArray.hs:24:0:  Error: no such instruction: `type JLongArray'\n\nGHC\\JArray.hs:25:0:  Error: no such instruction: `type FloatArray'\n\nGHC\\JArray.hs:26:0:  Error: no such instruction: `type DoubleArray'\n\nGHC\\JArray.hs:27:0:  Error: no such instruction: `type ObjectArray'\n*** Deleting temp files:\nDeleting: C:\\Temp\\ghc13676_0\\ghc_1.hscpp\nWarning: deleting non-existent C:\\Temp\\ghc13676_0\\ghc_1.hscpp\n*** Deleting temp dirs:\nDeleting: C:\\Temp\\ghc13676_0\n```\n\nWell it does find gcc now but it tries to assemble JArray.hs as is which is of course wrong. \n\nHow can I install `eta` and co on Windows?\n"},"comment":{"url":"https://api.github.com/repos/typelead/eta/issues/comments/265155129","html_url":"https://github.com/typelead/eta/issues/106#issuecomment-265155129","issue_url":"https://api.github.com/repos/typelead/eta/issues/106","id":265155129,"user":{"login":"jystic","id":134805,"avatar_url":"https://avatars.githubusercontent.com/u/134805?v=3","gravatar_id":"","url":"https://api.github.com/users/jystic","html_url":"https://github.com/jystic","followers_url":"https://api.github.com/users/jystic/followers","following_url":"https://api.github.com/users/jystic/following{/other_user}","gists_url":"https://api.github.com/users/jystic/gists{/gist_id}","starred_url":"https://api.github.com/users/jystic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jystic/subscriptions","organizations_url":"https://api.github.com/users/jystic/orgs","repos_url":"https://api.github.com/users/jystic/repos","events_url":"https://api.github.com/users/jystic/events{/privacy}","received_events_url":"https://api.github.com/users/jystic/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T13:55:49Z","updated_at":"2016-12-06T13:55:49Z","body":"https://github.com/jystic/unix-compat/pull/25 is merged and available on Hackage as [unix-compat-0.4.3.0](http://hackage.haskell.org/package/unix-compat-0.4.3.0)"}}
{"actor":{"display_login":"jystic"}}