Comments (13)
Gloria! It works! Thanks for your kind and patient.
Hope the issue will help people who meet the same problem on Windows:
- Enable long path support is not that enough, choose a short path is a wise one
- If one attempt fails, retry it with some clean up:
git clean -fdx
,rm -rf C:\sr
,rm -rf C:\bin
(in my ENV for example), etc. - Try another version of
ghc
to run a new build. Don't forget to do clean up
Thanks very much to @jneira!
from haskell-ide-engine.
Hi, a possible cause could be the path size. Try to put hie in the shortest path possible (f.e. C:\hie
)
If you dont have already done, change STACK_ROOT
env var to a short path too: C:\sr
, and do it too for other stack paths.
Change in %STACK_ROOT%\config.yaml
:
local-programs-path: C:/bin/stack
local-bin-path: C:/bin
Actual paths can vary but they should be short. You might have to put C:\bin
in your PATH
.
Even if those changes does not fix the issue i would keep them.
from haskell-ide-engine.
I realize maybe I misconfigure the MAX_PATHSIZE restriction before. And I use a short root path here (C:\hie
). However, I install stack
using scoop
, so the root of SNAPSHOT locates in a long path.
I'll try a clean rebuild after I confirm I enable long path. Please wait for my answer. Thanks for your quick reply.
from haskell-ide-engine.
Firstly, I would say that I confirm I've enabled the long path on Windows before. Before I begin a fresh build, I've set ENV as you adviced:
STACK_ROOT
:C:\sr
- Changed
%STACK_ROOT%\config.yaml
with the contents - Root of
hie
:C:\hie
Unfortunately, due to the bad network in China (so I use a VPN to access network, if not, several downloading process in stack
will fail), some build steps fail randomly. Then I restart a build process just type stack install.hs hie-8.8.3
as before, it recovers to build.
However, at the end of the build process, it fails just like the previous build:
....
haskell-ide-engine> [1 of 3] Compiling Paths_haskell_ide_engine
haskell-ide-engine> [2 of 3] Compiling RunTest
haskell-ide-engine> [3 of 3] Compiling Main
haskell-ide-engine> Linking .stack-work\dist\29cc6475\build\hie\hie.exe ...
haskell-ide-engine> realgcc.exe: error: CreateProcess: No such file or directory
haskell-ide-engine> `gcc.exe' failed in phase `Linker'. (Exit code: 1)
Completed 7 action(s).
So do I have to build successfully at one time instead of incremental compilation? If the answer is the former one, what can I do to do a real fresh rebuild? stack clean --full
and remove all things in STACK_ROOT
? Please forgive me for asking this stupid question. Thanks very much!
from haskell-ide-engine.
For example, this time it fails with:
haskell-lsp-types > [23 of 26] Compiling Language.Haskell.LSP.Types.Lens
haskell-lsp-types > [24 of 26] Compiling Language.Haskell.LSP.Types
haskell-lsp-types > [25 of 26] Compiling Language.Haskell.LSP.Types.MessageFuncs
haskell-lsp-types > [26 of 26] Compiling Language.Haskell.LSP.Types.Capabilities
haskell-lsp-types >
haskell-lsp-types > copy/register
haskell-lsp-types > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\haskell-lsp-types-0.20.0.0-F2ZJp2rR3mN69U5yLJ4qFo
haskell-lsp-types > Registering library for haskell-lsp-types-0.20.0.0..
-- While building package floskell-0.10.2 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.0.1.0_ghc-8.8.3.exe --builddir=.stack-work\dist\29cc6475 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 11
Progress 106/115
Does it mean I should restart with some clean process?
from haskell-ide-engine.
Does it mean I should restart with some clean process?
I think it should not be necessary, but i am not sure 100%
Looking for the error i've found several issues in the stack issue tracker and they were related with long paths. I am not totally sure that enable them in windows will fix all issues related with.
Some samity checks:
- what version of stack are you using, it should be 2.2 or superior, ideally the last one 2.3.1
- did you delete
.stack-work
after moving all dirs to short paths? - can you share the output of
stack path
?
from haskell-ide-engine.
Thanks!
I've checked these:
stack
Version 2.3.1, Git revision de2a7b694f07de7e6cf17f8c92338c16286b2878 (8103 commits) x86_64 hpack-0.33.0- Yes. Actually, I ran a frech
git clone * C:\hie
to create the new directory. ForC:\sr
, it is truly new with empty - OK.
snapshot-doc-root: C:\sr\snapshots\76593709\doc
local-doc-root: C:\hie\.stack-work\install\e0f04c34\doc
local-hoogle-root: C:\hie\.stack-work\hoogle\e0f04c34
stack-root: C:\sr
project-root: C:\hie
config-location: C:\hie\stack.yaml
bin-path: .;C:\sr\snapshots\bfddf871\bin;C:\sr\compiler-tools\x86_64-windows\ghc-8.8.3\bin;C:\bin\stack\x86_64-windows\ghc-8.8.3\bin;C:\bin\stack\x86_64-windows\ghc-8.8.3\mingw\bin;C:\bin\stack\x86_64-windows\msys2-20180531\mingw64\bin;C:\bin\stack\x86_64-windows\msys2-20180531\usr\bin;C:\bin\stack\x86_64-windows\msys2-20180531\usr\local\bin;C:\Cmder\bin;C:\Cmder\vendor\bin;C:\Program Files (x86)\Common Files\NetSarang;C:\Perl64\site\bin;C:\Perl64\bin;C:\VulkanSDK\1.1.114.0\Bin;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files (x86)\Calibre2\;C:\Program Files\dotnet\;C:\cquery\bin;C:\Program Files\doxygen\bin;C:\Program Files (x86)\kaitai-struct-compiler\bin;C:\Program Files\PuTTY\;C:\Program Files\nodejs\;C:\tcpdump;C:\Program Files\erl10.1\bin;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files (x86)\Yarn\bin\;C:\Program Files (x86)\Graphviz2.38\bin;C:\Program Files\Neovim\bin;C:\Program Files (x86)\LuaRocks;C:\Program Files (x86)\LuaRocks\systree\bin;C:\Program Files (x86)\Nmap;C:\texlive\2019\bin\win32;C:\demumble;C:\ccls;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\amber;C:\dirble;C:\Go\bin;C:\ngrep;C:\todor;C:\Program Files\LLVM\bin;C:\Program Files\Calibre2\;C:\Program Files\TortoiseGit\bin;C:\Program Files\Git\cmd;C:\Users\Winterreise\AppData\Roaming\local\bin;C:\Users\Winterreise\scoop\apps\openssl\current\bin;C:\Users\Winterreise\scoop\apps\Ghostscript\current\lib;C:\Users\Winterreise\scoop\shims;C:\Users\Winterreise\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\Winterreise\AppData\Local\Programs\Python\Python37\;C:\Ruby26\bin;C:\Users\Winterreise\.cargo\bin;C:\Users\Winterreise\go\bin;C:\Users\Winterreise\AppData\Roaming\npm;C:\Users\Winterreise\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Winterreise\AppData\Local\atom\bin;C:\rakudo\bin;C:\rakudo\share\perl6\site\bin;C:\Users\Winterreise\AppData\Local\hyper\app-3.0.2\resources\bin;C:\Users\Winterreise\AppData\Local\GitHubDesktop\bin;C:\Users\Winterreise\go\bin;C:\texlive\2020\bin\win32;C:\Users\Winterreise\AppData\Local\Programs\Fiddler;C:\Users\Winterreise\AppData\Roaming\cabal\bin;C:\Program Files\Git\cmd;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Cmder
programs: C:\bin\stack\x86_64-windows
compiler-exe: C:\bin\stack\x86_64-windows\ghc-8.8.3\bin\ghc-8.8.3.EXE
compiler-bin: C:\bin\stack\x86_64-windows\ghc-8.8.3\bin
compiler-tools-bin: C:\sr\compiler-tools\x86_64-windows\ghc-8.8.3\bin
local-bin: C:\bin
extra-include-dirs: C:\bin\stack\x86_64-windows\msys2-20180531\mingw64\include
extra-library-dirs: C:\bin\stack\x86_64-windows\msys2-20180531\mingw64\lib, C:\bin\stack\x86_64-windows\msys2-20180531\mingw64\bin
snapshot-pkg-db: C:\sr\snapshots\bfddf871\pkgdb
local-pkg-db: C:\hie\.stack-work\install\d87e6c7b\pkgdb
global-pkg-db: C:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
ghc-package-path: C:\hie\.stack-work\install\d87e6c7b\pkgdb;C:\sr\snapshots\bfddf871\pkgdb;C:\bin\stack\x86_64-windows\ghc-8.8.3\lib\package.conf.d
snapshot-install-root: C:\sr\snapshots\bfddf871
local-install-root: C:\hie\.stack-work\install\d87e6c7b
dist-dir: .stack-work\dist\29cc6475
local-hpc-root: C:\hie\.stack-work\install\d87e6c7b\hpc
local-bin-path: C:\bin
ghc-paths: C:\bin\stack\x86_64-windows
from haskell-ide-engine.
Is there any way to save the verbose compilation output?
from haskell-ide-engine.
After fresh retry three times (every time with delete C:\sr
, C:\bin
, and stack clean
in C:\hie
), floskell
always fails:
...
floskell > build
warp > configure
floskell > Preprocessing library for floskell-0.10.2..
floskell > Building library for floskell-0.10.2..
cabal-plan > [4 of 5] Compiling ProcessLazyByteString
cabal-plan > [5 of 5] Compiling Main
floskell > [ 1 of 12] Compiling Floskell.Attoparsec
floskell > [ 2 of 12] Compiling Floskell.Buffer
floskell > [ 3 of 12] Compiling Floskell.Config
warp > Configuring warp-3.3.10...
warp > build
yaml > [ 2 of 10] Compiling Data.Yaml.Include
warp > Preprocessing library for warp-3.3.10..
warp > Building library for warp-3.3.10..
yaml > [ 3 of 10] Compiling Data.Yaml.Builder
yaml > [ 4 of 10] Compiling Data.Yaml
yaml > [ 5 of 10] Compiling Data.Yaml.Config
warp > [ 1 of 33] Compiling Network.Wai.Handler.Warp.Date
warp > [ 2 of 33] Compiling Network.Wai.Handler.Warp.FdCache
warp > [ 3 of 33] Compiling Network.Wai.Handler.Warp.HashMap
warp > [ 4 of 33] Compiling Network.Wai.Handler.Warp.Imports
warp > [ 5 of 33] Compiling Network.Wai.Handler.Warp.FileInfoCache
yaml > [ 6 of 10] Compiling Data.Yaml.Aeson
yaml > [ 7 of 10] Compiling Data.Yaml.Parser
warp > [ 6 of 33] Compiling Network.Wai.Handler.Warp.Counter
warp > [ 7 of 33] Compiling Network.Wai.Handler.Warp.PackInt
warp > [ 8 of 33] Compiling Network.Wai.Handler.Warp.ReadInt
warp > [ 9 of 33] Compiling Network.Wai.Handler.Warp.Types
yaml > [ 8 of 10] Compiling Data.Yaml.Pretty
warp > [10 of 33] Compiling Network.Wai.Handler.Warp.RequestHeader
warp > [11 of 33] Compiling Network.Wai.Handler.Warp.Header
yaml > [ 9 of 10] Compiling Data.Yaml.TH
yaml > [10 of 10] Compiling Paths_yaml
warp > [12 of 33] Compiling Network.Wai.Handler.Warp.File
yaml >
yaml > copy/register
yaml > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\yaml-0.11.3.0-Dkap8elfvHPKfgtCmpAh8m
warp > [13 of 33] Compiling Network.Wai.Handler.Warp.HTTP2.Types
yaml > Registering library for yaml-0.11.3.0..
warp > [14 of 33] Compiling Network.Wai.Handler.Warp.HTTP2.File
warp > [15 of 33] Compiling Network.Wai.Handler.Warp.Conduit
warp > [16 of 33] Compiling Network.Wai.Handler.Warp.Buffer
warp > [17 of 33] Compiling Network.Wai.Handler.Warp.SendFile
warp > [18 of 33] Compiling Network.Wai.Handler.Warp.ResponseHeader
warp > [19 of 33] Compiling Network.Wai.Handler.Warp.IO
warp > [20 of 33] Compiling Network.Wai.Handler.Warp.Windows
warp > [21 of 33] Compiling Network.Wai.Handler.Warp.Recv
warp > [22 of 33] Compiling Paths_warp
warp > [23 of 33] Compiling Network.Wai.Handler.Warp.Settings
warp > [24 of 33] Compiling Network.Wai.Handler.Warp.Request
warp > [25 of 33] Compiling Network.Wai.Handler.Warp.HTTP2.Request
warp >
warp > Network\Wai\Handler\Warp\HTTP2\Request.hs:53:9: warning: [-Wdeprecations]
warp > In the use of ârequestBodyâ (imported from Network.Wai.Internal):
warp > Deprecated: "requestBody's name is misleading because it only gets a partial chunk of the body. Use getRequestBodyChunk instead."
warp > |
warp > 53 | , requestBody = body
warp > | ^^^^^^^^^^^
warp > [26 of 33] Compiling Network.Wai.Handler.Warp.HTTP2.PushPromise
warp > [27 of 33] Compiling Network.Wai.Handler.Warp.Response
haskell-lsp-types > [21 of 26] Compiling Language.Haskell.LSP.Types.WorkspaceFolders
warp > [28 of 33] Compiling Network.Wai.Handler.Warp.HTTP2.Response
haskell-lsp-types > [22 of 26] Compiling Language.Haskell.LSP.Types.DataTypesJSON
warp > [29 of 33] Compiling Network.Wai.Handler.Warp.HTTP2
cabal-plan > Linking .stack-work\dist\29cc6475\build\cabal-plan\cabal-plan.exe ...
warp > [30 of 33] Compiling Network.Wai.Handler.Warp.Run
warp > [31 of 33] Compiling Network.Wai.Handler.Warp.WithApplication
warp > [32 of 33] Compiling Network.Wai.Handler.Warp.Internal
warp > [33 of 33] Compiling Network.Wai.Handler.Warp
brittany > configure
warp >
warp > copy/register
warp > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\warp-3.3.10-8Jp6E13hF6jEvWIQwWRVu6
warp > Registering library for warp-3.3.10..
brittany > Configuring brittany-0.12.1.1...
brittany > build
hlint > configure
brittany > Preprocessing library for brittany-0.12.1.1..
brittany > Building library for brittany-0.12.1.1..
hlint > Configuring hlint-2.2.11...
hlint > build
hie-bios > configure
brittany > [ 1 of 30] Compiling Language.Haskell.Brittany.Internal.Prelude
hlint > Preprocessing library for hlint-2.2.11..
hlint > Building library for hlint-2.2.11..
hlint > [ 1 of 71] Compiling EmbedData
brittany > [ 2 of 30] Compiling Language.Haskell.Brittany.Internal.PreludeUtils
brittany > [ 3 of 30] Compiling Language.Haskell.Brittany.Internal.Obfuscation
hie-bios > Configuring hie-bios-0.5.0...
brittany > [ 4 of 30] Compiling Language.Haskell.Brittany.Internal.Config.Types
hie-bios > build
warp-tls > configure
hie-bios > Preprocessing library for hie-bios-0.5.0..
hie-bios > Building library for hie-bios-0.5.0..
hlint > [ 2 of 71] Compiling GHC.Util.ApiAnnotation
hlint > [ 3 of 71] Compiling GHC.Util.Brackets
hie-bios > [ 1 of 16] Compiling HIE.Bios.Config
hlint > [ 4 of 71] Compiling GHC.Util.DynFlags
hlint > [ 5 of 71] Compiling GHC.Util.FreeVars
warp-tls > Configuring warp-tls-3.2.11...
hlint > [ 6 of 71] Compiling GHC.Util.HsDecl
hie-bios > [ 2 of 16] Compiling HIE.Bios.Ghc.Gap
floskell > [ 4 of 12] Compiling Floskell.Fixities
brittany > [ 5 of 30] Compiling Language.Haskell.Brittany.Internal.Config.Types.Instances
hlint > [ 7 of 71] Compiling GHC.Util.HsType
hlint > [ 8 of 71] Compiling GHC.Util.LanguageExtensions.Type
hlint > [ 9 of 71] Compiling GHC.Util.Module
hlint > [10 of 71] Compiling GHC.Util.Outputable
hie-bios > [ 3 of 16] Compiling HIE.Bios.Ghc.Doc
floskell > [ 5 of 12] Compiling Floskell.Imports
hlint > [11 of 71] Compiling GHC.Util.Pat
haskell-lsp-types > [23 of 26] Compiling Language.Haskell.LSP.Types.Lens
brittany > [ 6 of 30] Compiling Language.Haskell.Brittany.Internal.Types
floskell >
hie-bios > [ 4 of 16] Compiling HIE.Bios.Internal.Log
floskell > [ 6 of 12] Compiling Floskell.Styles
hlint > [12 of 71] Compiling GHC.Util.RdrName
hie-bios > [ 5 of 16] Compiling HIE.Bios.Ghc.Load
floskell > src\Floskell\ConfigFile.hs:30:1: warning: [-Wunused-imports]
floskell > [ 7 of 12] Compiling Floskell.ConfigFile
hlint > [13 of 71] Compiling GHC.Util.Scope
floskell > The qualified import of âData.Aeson.Parserâ is redundant
hlint > [14 of 71] Compiling GHC.Util.SrcLoc
floskell > except perhaps to import instances from âData.Aeson.Parserâ
hlint > [15 of 71] Compiling GHC.Util.View
floskell > To import instances alone, use: import Data.Aeson.Parser()
floskell > |
floskell > 30 | import qualified Data.Aeson.Parser as JSON ( json' )
floskell > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hlint > [16 of 71] Compiling GHC.Util.HsExpr
hie-bios > [ 6 of 16] Compiling HIE.Bios.Types
warp-tls > build
hie-bios > [ 7 of 16] Compiling HIE.Bios.Flags
warp-tls > Preprocessing library for warp-tls-3.2.11..
warp-tls > Building library for warp-tls-3.2.11..
hlint > [17 of 71] Compiling HSE.Type
floskell > [ 8 of 12] Compiling Floskell.Types
hie-bios > [ 8 of 16] Compiling HIE.Bios.Environment
brittany > [ 7 of 30] Compiling Language.Haskell.Brittany.Internal.Utils
hie-bios >
hlint > [18 of 71] Compiling HSE.Util
haskell-lsp-types > [24 of 26] Compiling Language.Haskell.LSP.Types
hie-bios > src\HIE\Bios\Environment.hs:5:1: warning: [-Wunused-imports]
hie-bios > The import of âDynFlags, GhcLink, HscTargetâ
hie-bios > from module âGHCâ is redundant
hie-bios > |
hie-bios > 5 | import GHC (DynFlags(..), GhcLink(..), HscTarget(..), GhcMonad)
hie-bios > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
floskell > [ 9 of 12] Compiling Floskell.Printers
haskell-lsp-types > [25 of 26] Compiling Language.Haskell.LSP.Types.MessageFuncs
hie-bios > [ 9 of 16] Compiling HIE.Bios.Ghc.Api
floskell >
hlint > [19 of 71] Compiling HSE.Scope
floskell > src\Floskell\Printers.hs:72:1: warning: [-Wunused-imports]
floskell > The import of âData.Monoidâ is redundant
floskell > except perhaps to import instances from âData.Monoidâ
floskell > To import instances alone, use: import Data.Monoid()
floskell > |
floskell > 72 | import Data.Monoid ( (<>) )
floskell > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
warp-tls > [1 of 1] Compiling Network.Wai.Handler.WarpTLS
hie-bios > [10 of 16] Compiling HIE.Bios.Ghc.Logger
hie-bios >
hie-bios > src\HIE\Bios\Ghc\Logger.hs:13:1: warning: [-Wunused-imports]
hie-bios > The import of âSevError, Severityâ from module âGHCâ is redundant
hie-bios > |
hie-bios > 13 | import GHC (DynFlags(..), SrcSpan(..), Severity(SevError), GhcMonad)
hie-bios > | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hlint > [20 of 71] Compiling HSE.Match
haskell-lsp-types > [26 of 26] Compiling Language.Haskell.LSP.Types.Capabilities
hie-bios > [11 of 16] Compiling HIE.Bios.Ghc.Check
hlint > [21 of 71] Compiling HsColour
hlint > [22 of 71] Compiling Parallel
hie-bios > [12 of 16] Compiling HIE.Bios.Wrappers
hlint > [23 of 71] Compiling Paths_hlint
floskell > [10 of 12] Compiling Floskell.Pretty
hlint > [24 of 71] Compiling Timing
brittany > [ 8 of 30] Compiling Language.Haskell.Brittany.Internal.Transformations.Par
brittany > [ 9 of 30] Compiling Language.Haskell.Brittany.Internal.Transformations.Indent
brittany > [10 of 30] Compiling Language.Haskell.Brittany.Internal.Transformations.Floating
hlint > [25 of 71] Compiling Util
hlint > [26 of 71] Compiling GHC.Util.Unify
floskell >
floskell > Access violation in generated code when executing data at 0xffffffff816e4b40
floskell >
floskell > Attempting to reconstruct a stack trace...
floskell >
floskell > Frame Code address
floskell > * 0x461dab0 0xffffffff816e4b40
floskell > * 0x461dab8 0x2d006300680067
floskell > * 0x461dac0 0x2e0038002e0038
floskell > * 0x461dac8 0x690000005c0033
floskell > * 0x461dad0 0x5c006e C:\bin\stack\x86_64-windows\ghc-8.8.3\bin\ghc.exe+0x1c006e
floskell >
brittany > [11 of 30] Compiling Language.Haskell.Brittany.Internal.Transformations.Columns
hie-bios > [13 of 16] Compiling HIE.Bios.Cradle
brittany > [12 of 30] Compiling Language.Haskell.Brittany.Internal.Transformations.Alt
hie-bios >
hie-bios > src\HIE\Bios\Cradle.hs:664:25: warning: [-Wname-shadowing]
hie-bios > This binding for âenvâ shadows the existing binding
hie-bios > imported from âData.Conduit.Processâ at src\HIE\Bios\Cradle.hs:47:1-27
hie-bios > (and originally defined in âprocess-1.6.8.0:System.Process.Commonâ)
hie-bios > |
hie-bios > 664 | withHieBiosOutput env action = do
hie-bios > | ^^^
warp-tls > copy/register
warp-tls > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\warp-tls-3.2.11-8n9GwpNyxUTLAQ3riBLPOj
warp-tls > Registering library for warp-tls-3.2.11..
hlint > [27 of 71] Compiling GHC.Util
hie-bios > [14 of 16] Compiling HIE.Bios.Internal.Debug
hlint > [28 of 71] Compiling HSE.All
hie-bios > [15 of 16] Compiling HIE.Bios
haskell-lsp-types >
hie-bios > [16 of 16] Compiling Paths_hie_bios
haskell-lsp-types > copy/register
haskell-lsp-types > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\haskell-lsp-types-0.20.0.0-F2ZJp2rR3mN69U5yLJ4qFo
hie-bios > Preprocessing executable 'hie-bios' for hie-bios-0.5.0..
hie-bios > Building executable 'hie-bios' for hie-bios-0.5.0..
haskell-lsp-types > Registering library for haskell-lsp-types-0.20.0.0..
hie-bios > [1 of 2] Compiling Paths_hie_bios
hlint > [29 of 71] Compiling Refact
hie-bios > [2 of 2] Compiling Main
hlint > [30 of 71] Compiling Hint.Util
hlint > [31 of 71] Compiling Config.Type
brittany > [13 of 30] Compiling Language.Haskell.Brittany.Internal.ExactPrintUtils
hlint > [32 of 71] Compiling Test.Proof
hie-bios > Linking .stack-work\dist\29cc6475\build\hie-bios\hie-bios.exe ...
hlint > [33 of 71] Compiling Idea
hlint > [34 of 71] Compiling Test.Util
hlint > [35 of 71] Compiling Test.Translate
hlint > [36 of 71] Compiling Test.InputOutput
brittany > [14 of 30] Compiling Language.Haskell.Brittany.Internal.LayouterBasics
hlint > [37 of 71] Compiling Report
hlint > [38 of 71] Compiling CC
hlint > [39 of 71] Compiling Hint.Type
brittany > [15 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Type
hlint > [40 of 71] Compiling Hint.Unsafe
hlint > [41 of 71] Compiling Hint.Pragma
hlint > [42 of 71] Compiling Hint.Pattern
hlint > [43 of 71] Compiling Hint.NewType
hlint > [44 of 71] Compiling Hint.Naming
hlint > [45 of 71] Compiling Hint.Monad
cabal-plan > copy/register
cabal-plan > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\cabal-plan-0.6.2.0-KogkYK1Tjus3BNDaJNU9ye
cabal-plan > Installing executable cabal-plan in C:\sr\snapshots\7be7b3cf\bin
brittany > [16 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Stmt[boot]
brittany > [17 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.IE
hlint > [46 of 71] Compiling Hint.ListRec
brittany > [18 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Import
hlint > [47 of 71] Compiling Hint.List
brittany > [19 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Module
cabal-plan > Registering library for cabal-plan-0.6.2.0..
brittany > [20 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Expr[boot]
brittany > [21 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Pattern
hlint > [48 of 71] Compiling Hint.Lambda
hlint > [49 of 71] Compiling Hint.Import
brittany > [22 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Decl
hlint > [50 of 71] Compiling Hint.Extensions
hlint > [51 of 71] Compiling Hint.Export
hlint > [52 of 71] Compiling Hint.Duplicate
hlint > [53 of 71] Compiling Hint.Comment
hlint > [54 of 71] Compiling Hint.Bracket
brittany > [23 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Stmt
hlint > [55 of 71] Compiling Hint.Smell
brittany > [24 of 30] Compiling Language.Haskell.Brittany.Internal.Layouters.Expr
hlint > [56 of 71] Compiling Hint.Restrict
hlint > [57 of 71] Compiling Hint.Match
hlint > [58 of 71] Compiling Hint.All
hlint > [59 of 71] Compiling Config.Yaml
hlint > [60 of 71] Compiling Config.Haskell
hlint > [61 of 71] Compiling Config.Read
hlint > [62 of 71] Compiling Config.Compute
hlint > [63 of 71] Compiling Apply
hlint > [64 of 71] Compiling Test.Annotations
hlint > [65 of 71] Compiling Grep
hlint > [66 of 71] Compiling CmdLine
brittany > [25 of 30] Compiling Language.Haskell.Brittany.Internal.Config
hlint > [67 of 71] Compiling Test.All
hlint > [68 of 71] Compiling HLint
brittany > [26 of 30] Compiling Language.Haskell.Brittany.Internal.BackendUtils
hlint > [69 of 71] Compiling Language.Haskell.HLint4
hlint > [70 of 71] Compiling Language.Haskell.HLint3
hlint > [71 of 71] Compiling Language.Haskell.HLint
brittany > [27 of 30] Compiling Language.Haskell.Brittany.Internal.Backend
brittany > [28 of 30] Compiling Language.Haskell.Brittany.Internal
brittany > [29 of 30] Compiling Language.Haskell.Brittany
brittany > [30 of 30] Compiling Paths_brittany
hlint > Preprocessing executable 'hlint' for hlint-2.2.11..
hlint > Building executable 'hlint' for hlint-2.2.11..
hlint > [1 of 1] Compiling Main
hlint > Linking .stack-work\dist\29cc6475\build\hlint\hlint.exe ...
brittany > Preprocessing executable 'brittany' for brittany-0.12.1.1..
brittany > Building executable 'brittany' for brittany-0.12.1.1..
brittany > [1 of 2] Compiling Paths_brittany
brittany > [2 of 2] Compiling Main
brittany > Linking .stack-work\dist\29cc6475\build\brittany\brittany.exe ...
hie-bios >
hie-bios > copy/register
hie-bios > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\hie-bios-0.5.0-A4y7jm0FkDSLv0HlcBo7Ti
hie-bios > Installing executable hie-bios in C:\sr\snapshots\7be7b3cf\bin
hie-bios > Registering library for hie-bios-0.5.0..
hlint > copy/register
hlint > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\hlint-2.2.11-9dWMqXORscC6kW2f2Mfb7g
hlint > Installing executable hlint in C:\sr\snapshots\7be7b3cf\bin
hlint > Registering library for hlint-2.2.11..
brittany > copy/register
brittany > Installing library in C:\sr\snapshots\7be7b3cf\lib\x86_64-windows-ghc-8.8.3\brittany-0.12.1.1-Hall7t6UuGw5KSUfrVOrjx
brittany > Installing executable brittany in C:\sr\snapshots\7be7b3cf\bin
brittany > Registering library for brittany-0.12.1.1..
-- While building package floskell-0.10.2 using:
C:\sr\setup-exe-cache\x86_64-windows\Cabal-simple_Z6RU0evB_3.0.1.0_ghc-8.8.3.exe --builddir=.stack-work\dist\29cc6475 build --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 11
Progress 225/230
from haskell-ide-engine.
Ok, so it seems we are not hitting the final realgcc
problem (hopefully it will not be triggered if we reach the end of a clean build)
The floskell error is the same as in #1779 and it is caused by a ghc bug in versions >= 8.8.1 so i am afraid that we cant do much but workaround:
- using cabal to build the project
- using ghc-8.6.5 to build the project with
stack install.hs hie-8.6.5
(but your projects must use the same ghc)
from haskell-ide-engine.
Ok, thanks very much. The previous realgcc
problem maybe due to long path restrict. But I still feel strange about it. Why the previous builds success with floskell
? I can confirm that every time I build hie
with stack install.hs hie-8.8.3
.
from haskell-ide-engine.
The bug is pretty nasty and it seems it is not reproducible consistently . I guess it is trigerred by the first clean of STACK_ROOT
, once you have a fresh stack install you can't return to build it succesfully. Otoh cabal is not affected. There might be a confluence or several factors, like all really funny bugs. đ
If you want to know more about it you can read the ghc ticket about: https://gitlab.haskell.org/ghc/ghc/issues/17926
from haskell-ide-engine.
I've just seen that the fix for that bug will be backported to ghc.8.8.4, đ : https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3373
from haskell-ide-engine.
Related Issues (20)
- hie only loads the full suite of tests when configured without specifying the root file `Spec.hs` HOT 1
- HIE stops reporting messages to coc.nvim HOT 1
- stack build failing on Windows and ghc-8.8.3: Access violation in generated code HOT 2
- Is HIE working with cabal script files? HOT 1
- can't load .so/.DLL for libHSghc-prim-0.5.3-ghc8.6.5.so HOT 9
- bad module error handling with hlint enabled HOT 4
- unable to install on windows10 build 2004 HOT 2
- Fail on initialisation for. Could not obtain flags for HOT 2
- Self-dependency in test suite fails with hie HOT 3
- Can't install due to OFD issue
- Windows 10 build fail. HOT 2
- HLint needs to be called using `-X QuasiQuotes` when they are enabled
- Conflict between running cabal manually and using hie HOT 1
- macOS Big Sur beta build fail. HOT 3
- Can not parse platformConstants HOT 5
- Multiple stack.yaml files HOT 2
- Cannot use hie-wrapper and so on the language server cannot be initialized HOT 4
- macos failure to build package primitive HOT 2
- Fail to stack install with RedownloadHttpError HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
đ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. đđđ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google â¤ď¸ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haskell-ide-engine.