-
Notifications
You must be signed in to change notification settings - Fork 24
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
Add a bootstrap-haskell script, fixes #36 #40
Conversation
cc9064c
to
6a2847e
Compare
I added a PR for the script I had previously written (#41) for comparison. |
Hey! Anything I can do to help move this along? It would be great to have this ready when cabal 3.0 is released so there's a good story for the whole toolchain :) |
@m-renaud please try the latest version |
8c61516
to
2c7cd73
Compare
travis is forever broken here and I cannot figure out how to fix it |
@hasufell tried it out just now, works great other than the "wait for input not working". I downloaded the script to a local file and ran If I change the script to be executable ( So, it looks like our options are either:
My vote would be for (2), if they're on the ghcup site they already know what it does. At the bottom we could give instructions for how to uninstall ghcup (namely, Also, I noticed that the script runs
Was that intentional? |
.travis.yml
Outdated
@@ -15,16 +15,18 @@ addons: | |||
- gcc | |||
- git | |||
- libgmp-dev | |||
- libllvm5.0 | |||
# - libllvm5.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why these and below are commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason why these and below are commented out?
Because we don't use llvm code generator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe I should have commented on the lines below, but llvm-5.0
and llvm-5.0-dev
are both removed, and afaik at least one of those provides a linker in the environment. You mentioned in another comment that Travis is broken, I wouldn't be entirely surprised if this was why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt it. llvm is only used for llvm code generation. The linker is provided by binutils.
I noticed you commented out some of the llvm deps in the travis config, what's the rationale behind that? It looks like it may be the cause of the issue. |
Also, I just realized that by running just |
That's because you are upgrading to an older version while the script is running. See what the travis.sh does.
Why do you think that? It's gold linker messup afais and GHC just picks up whatever it wants.
See above, you're upgrading to an older version while running the script. Set |
Will look into it. |
Sorry, I don't think I was very clear in my previous comment, either that or I didn't follow your response. When I pipe the
The bootstrap-haskell script has the line Shouldn't it be |
ghcup
Outdated
|
||
FLAGS: | ||
-h, --help Prints help information | ||
|
||
ARGS: | ||
<VERSION> E.g. \"8.4.3\" or \"8.6.1\" | ||
[VERSION|TAG] E.g. \"8.4.3\" or \"8.6.1\" or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use 8.6.2 as an example since 8.6.1 was a broken release?
bootstrap-haskell
Outdated
|
||
_edo ghcup install | ||
|
||
_edo ghcup set |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Replacing this by the following results in the script finishing successfully:
recommendedGhcVer=`ghcup list -t ghc | grep recommended | cut -f2`
_edo ghcup set $recommendedGhcVer
No, the line is correct, I already explained it: You're upgrading to an older version while running the script. Set BOOTSTRAP_HASKELL_NO_UPGRADE=1 (after you've copied the script from this PR). Also see the commits of this PR. |
Ah, yes you're right. I see where my confusion came from: I hadn't realized that there was a required change to |
Yeah, I think it's a useful feature. Also removes the need to hack around and try to source ghcup. |
So, in order to merge this I would basically have to exclude this from the travis test... |
I think it would be reasonable to exclude this from the Travis test initially and figure how to add it in as a follow-up. |
The only issue remaining was the |
Yup, I think a reasonable solution for the first version of the script is to just do it without asking. |
I explicitly read from |
0b57187
to
1277427
Compare
If a GHC is already installed, we shouldn't treat it as an error.
No description provided.