-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Enable dynamic linking in stack builds #2031
Conversation
31ef6fa
to
7a1e9fc
Compare
7a1e9fc
to
7bbef64
Compare
This trick fixed all of the stack descriptors except for 8.10.2 and 8.8.3 which failed with missing symbols:
|
These missing symbols errors are probably due to reusing previous compile artifacts. Does anyone know how to wipe out the circle CI cache? |
Prefixing cache keys with Anyways this should be something temporary, no?, until we discover why static linking has started to throw OOM. Theoretically users building with stack could be affected. |
No, it's not temporary. Users building with stack are better off using dynamic builds. |
Mmm maybe (woud like to know the reasons though) but the default configuration builds statically, no? so users not changing it on purpose will use it |
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.
lgtm, thanks for unblocking ci
We have known for a while that dynamic builds are preferable, there's a long list of user issues where the resolution is always: use a dynamic build. The most recent one is #2000 |
Yeah, but afaik not all linux envs needs the dynamic build. So maybe force the dynamic linking could cause problems there. But, well, let's see if some issue is opened by that. |
What makes you think that? All Linux and Mac environments would be better off with a dynamic build. I am only unsure about Windows. |
Mmm maybe i am overlooking it, sorry. I think dynamic build in windows is ignored and is static anyways (https://gitlab.haskell.org/ghc/ghc/-/wikis/windows-dynamic-linking) |
CircleCI is running OOM during linking (except in the 9.0.1 build for some reason).
I don't know what has changed, but perhaps we can simply avoid linking at all?
I don't use stack so this change is untested - let's see if it helps.