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

BuildFailure With Compile #472

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions message-index/messages/GHCup-08841/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: BuildFailure With Compile
summary: When using ghcup compile hls -g master --ghc 8.10.4; a build failure occurs.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The summary should probably reflect a more general summary of this error code. This error code can probably occur with more than just this given invocation of ghcup.

introduced: ghcup, version 0.1.19.4
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The introduced field should be just the number, i.e. 0.1.19.4.

severity: error
---

```
$ ghcup compile hls -g master --ghc 8.10.4
[ Warn ] New ghc version available. If you want to install this latest version, run 'ghcup install ghc 9.8.1'
[ Warn ] New stack version available. If you want to install this latest version, run 'ghcup install stack 2.13.1'
[ Info ] Fetching git repo https://github.com/haskell/haskell-language-server.git at ref master (this may take a while)
[ Info ] Examining git ref master
[ ... ] HLS version (from cabal file): 2.4.0.0
[ ... ] commit hash: 0f9be3ea7c6b189cfbf8660bf2766eb9180a78ce
[ Info ] Building HLS 2.4.0.0 for GHC version 8.10.4
[ cabal ] ghc-8.4.4, ghc-8.4.3, ghc-8.4.1, ghc-8.2.2, ghc-8.2.1, ghc-9.2.3.20220620
[ cabal ] (constraint from non-upgradeable package requires installed instance)
[ cabal ] [__1] fail (backjumping, conflict set: ghc, ghcide)
[ cabal ] After searching the rest of the dependency tree exhaustively, these were the
[ cabal ] goals I've had most trouble fulfilling: ghcide, ghc
[ cabal ]
[ Error ] [GHCup-08841] BuildFailed failed in dir /home/.../.ghcup/tmp/ghcup-eb35d2cd0af3dbd1: Process "cabal" with arguments ["v2-install",
[ ... ] "-w",
[ ... ] "ghc-8.10.4",
[ ... ] "--install-method=copy",
[ ... ] "--overwrite-policy=always",
[ ... ] "--disable-profiling",
[ ... ] "--disable-tests",
[ ... ] "--installdir=/home/tobzdaman619/.ghcup/tmp/ghcup-eb35d2cd0af3dbd1/out/8.10.4",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably want to pick a generic user name in this error message instead leaving your own one in place ;)

[ ... ] "--project-file=cabal.project",
[ ... ] "exe:haskell-language-server",
[ ... ] "exe:haskell-language-server-wrapper"] failed with exit code 1.
```
This occurs with all versions of cabal and ghc so far.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for contributing to the error message index! I think we still have to dig up a little bit more information on GHCup which explains under what circumstances this error occurs, so that we can present a good explanation of this error to the user of the error message index. At first glance it looks like this error occurs when ghcup tries to build some tool such as HLS or GHC, and the build process fails for some reason. I think we cannot get around the fact that we have to look at the GHCup codebase itself and find out more there. Do you know which constructor is responsible for this error message, and are there comments in the GHCup codebase which explain when this error is thrown?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, I have no clue :( I've posted every error I get in the original post. Where do you recommend I start looking for clues?