Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: 1 dependencies of derivation 'haskell-language-server-exe-haskell-language-server-1.9.1.0.drv' failed to build #37

Open
harryprayiv opened this issue Mar 27, 2023 · 2 comments

Comments

@harryprayiv
Copy link

harryprayiv commented Mar 27, 2023

Build failed using the following command:
nix develop github:input-output-hk/devx#ghc8107 --no-write-lock-file --refresh

trace: No index state specified for cabal-install, using the latest index state that we know about (2023-03-25T00:00:00Z)!
trace: No index state specified for haskell-language-server, using the latest index state that we know about (2023-03-25T00:00:00Z)!
trace: No index state specified for hlint, using the latest index state that we know about (2023-03-25T00:00:00Z)!
error: builder for '/nix/store/6sfkiisgk19xl7j0f7ryrv9a1wxzdxwb-ghcide-lib-ghcide-1.9.1.0.drv' failed with exit code 1;
       last 10 log lines:
       >            prepd_expr <- corePrepExpr dflags hsc_env tidy_expr
       >            ....
       >     |
       > 272 |                        (icInteractiveModule (hsc_IC hsc_env)) prepd_expr
       >     |                                                               ^^^^^^^^^^
       > [57 of 73] Compiling Development.IDE.Core.Service ( src/Development/IDE/Core/Service.hs, dist/build/Development/IDE/Core/Service.o, dist/build/Development/IDE/Core/Service.dyn_o )
       > [58 of 73] Compiling Development.IDE.LSP.Notifications ( src/Development/IDE/LSP/Notifications.hs, dist/build/Development/IDE/LSP/Notifications.o, dist/build/Development/IDE/LSP/Notifications.dyn_o )
       > [59 of 73] Compiling Development.IDE.Core.Actions ( src/Development/IDE/Core/Actions.hs, dist/build/Development/IDE/Core/Actions.o, dist/build/Development/IDE/Core/Actions.dyn_o )
       > [68 of 73] Compiling Generics.SYB.GHC ( src/Generics/SYB/GHC.hs, dist/build/Generics/SYB/GHC.o, dist/build/Generics/SYB/GHC.dyn_o )
       > [69 of 73] Compiling Text.Fuzzy.Parallel ( src/Text/Fuzzy/Parallel.hs, dist/build/Text/Fuzzy/Parallel.o, dist/build/Text/Fuzzy/Parallel.dyn_o )
       For full logs, run 'nix log /nix/store/6sfkiisgk19xl7j0f7ryrv9a1wxzdxwb-ghcide-lib-ghcide-1.9.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/3ml4i7a3f94s1b5qlj711v9jq6mqvr2f-haskell-language-server-exe-haskell-language-server-1.9.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/y6v80y3504wgn5yw2nfazgibmxxw83dh-nix-shell-env.drv' failed to build
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/h7lf6qy8maqskizinckw85y9y7ab791i-ghcide-1.9.1.0.tar.gz
source root is ghcide-1.9.1.0
setting SOURCE_DATE_EPOCH to timestamp 1000000000 of file ghcide-1.9.1.0/test/src/Development/IDE/Test.hs
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
'/build/.attr-0h9ydb7s8pfhl5kfs3rmmwnmpi49yyiw7jgr5dpw9rmvv8sy0f2b' -> 'ghcide.cabal'
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
Configure flags:
--prefix=/nix/store/rarisc9aswsi6yf171b6sx2y7ra9mhvw-ghcide-lib-ghcide-1.9.1.0 lib:ghcide --package-db=clear --package-db=/nix/store/n>
Configuring library for ghcide-1.9.1.0..
@nix { "action": "setPhase", "phase": "buildPhase" }
building
Preprocessing library for ghcide-1.9.1.0..
Building library for ghcide-1.9.1.0..
[ 1 of 73] Compiling Control.Concurrent.Strict ( src/Control/Concurrent/Strict.hs, dist/build/Control/Concurrent/Strict.o, dist/build/>
[ 2 of 73] Compiling Development.IDE.Core.Debouncer ( src/Development/IDE/Core/Debouncer.hs, dist/build/Development/IDE/Core/Debouncer>
[ 3 of 73] Compiling Development.IDE.Core.FileUtils ( src/Development/IDE/Core/FileUtils.hs, dist/build/Development/IDE/Core/FileUtils>
[ 4 of 73] Compiling Development.IDE.Core.PositionMapping ( src/Development/IDE/Core/PositionMapping.hs, dist/build/Development/IDE/Co>
[ 5 of 73] Compiling Development.IDE.GHC.Compat.Core ( src/Development/IDE/GHC/Compat/Core.hs, dist/build/Development/IDE/GHC/Compat/C>

src/Development/IDE/GHC/Compat/Core.hs:404:5: warning: [-Wduplicate-exports]
    ‘defaultFixity’ is exported by ‘module BasicTypes’ and ‘defaultFixity’
    |
404 |     module BasicTypes,
    |     ^^^^^^^^^^^^^^^^^
@harryprayiv
Copy link
Author

nix develop github:input-output-hk/devx#ghc8107-minimal --no-write-lock-file --refresh --system x86_64-linux runs fine

@angerman
Copy link
Collaborator

Thanks @harryprayiv I guess ghcide is broken :-/ We need to get this matrix better. I hope #39 will move us to a bit better CI guarantees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants